/* VIORA visual system — October 2026.
   Shared, readable refinements for the homepage and Web Solutions page.
   Keep the existing logo, blue palette, serif titles and glass navigation. */
:root {
  --type-title: clamp(44px, 4vw, 56px);
  --type-body: 16px;
  --space-section: clamp(80px, 6.5vw, 96px);
  --page-gutter: max(6vw, calc((100vw - 1240px) / 2));
  --text-secondary: #455b70;
  --rule: rgba(69, 105, 145, .2);
}

.section,
.about-story {
  padding: var(--space-section) var(--page-gutter);
}
#main h2,
.web-page #main h2 {
  font-size: var(--type-title);
  line-height: 1.08;
  letter-spacing: -.035em;
}
#main h2 em { color: #226eae; }
.section-heading,
.portfolio-heading { gap: 48px; margin-bottom: 40px; }
.section-heading > p,
.portfolio-intro > p { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.eyebrow { font-size: 12px; letter-spacing: .16em; }
.button { font-size: 15px; min-height: 52px; padding: 15px 24px; }
:where(a, button, summary):focus-visible { outline: 2px solid #226eae; outline-offset: 5px; }

/* One full viewport; no extra scroll runway or fade-out of the headline. */
.hero-scroll { height: auto; }
.hero {
  position: relative;
  height: 100vh;
  min-height: 0;
  display: flex;
  align-items: center;
}
.hero::after { display: none; }
.hero-content {
  width: 100%;
  padding: 104px var(--page-gutter) 40px;
}
.hero h1 {
  font-size: clamp(64px, 5.55vw, 80px);
  line-height: 1.06;
  letter-spacing: -.035em;
  max-width: 720px;
  margin: 0 0 24px;
}
.hero-description {
  font-size: 18px;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 0 32px;
  color: var(--text-secondary);
}
.hero-actions { gap: 16px; flex-wrap: wrap; }
.hero-actions .button { min-width: 200px; }
.hero-actions .solution-secondary {
  color: #226eae;
  background: #edf5ff40;
  border: 1px solid #226eae;
}
.hero-actions .solution-secondary:hover { background: #d6e9ff; }
.hero-art { left: 36%; width: 72%; top: 5%; height: 92%; }

/* Equal, open solution columns. No hidden service offering. */
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.solution-panel { position: relative; min-width: 0; display: flex; flex-direction: column; scroll-margin-top: 120px; }
.solution-panel + .solution-panel::before {
  content: ''; position: absolute; left: -32px; top: 0; bottom: 0;
  width: 1px; background: var(--rule);
}
.solution-media { aspect-ratio: 2 / 1; overflow: hidden; border-radius: 4px; margin-bottom: 28px; background: #d6e5f4; }
.solution-media > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.solution-panel h3 { font: 400 clamp(27px, 2.6vw, 36px)/1.2 Arial, sans-serif; letter-spacing: -.04em; margin: 0 0 16px; }
.solution-panel > p { font-size: 17px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 20px; max-width: 55ch; }
.solution-capabilities { list-style: none; padding: 0; margin: 0 0 24px; color: var(--text-secondary); font-size: 16px; line-height: 1.9; }
.solution-link { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 14px; font-size: 16px; color: #226eae; padding: 8px 0; border-bottom: 1px solid currentColor; }
.solution-link:hover { color: #071523; }
.solution-call-visual {
  display: flex; align-items: center; justify-content: center; gap: 6%; padding: 24px;
  background: radial-gradient(ellipse at 22% 55%, #f5faff, transparent 65%), linear-gradient(135deg, #c7daf0, #e1edfa 55%, #c6dbf2);
}
.solution-wave {
  width: 30%; aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid #fff; border-radius: 50%; color: #2889e5;
  background: #edf5ff80; box-shadow: 0 10px 30px #39679516;
}
.solution-wave svg { width: 85%; }
.solution-call-steps { display: grid; gap: 12px; flex: 1; }
.solution-call-steps > span { display: flex; align-items: center; gap: 12px; background: #f6faffb0; padding: 12px 14px; border-radius: 32px; font-size: 13px; color: #16334d; }
.solution-call-steps svg { width: 22px; height: 22px; flex-shrink: 0; color: #226eae; }

/* Shorter sections, with a consistent hierarchy and clear enquiry links. */
.portfolio-art { padding: 26px 20px 20px; }
.portfolio-project-heading { margin-top: 20px; }
.portfolio-project-heading h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; }
.portfolio-project-detail { font-size: 14px; }
.portfolio-project-type { display: block; font-size: 12px; color: #455b70; }
.portfolio-category { font-size: 12px; }
.portfolio-enquire { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; margin-top: 16px; color: #226eae; }
.portfolio-enquire .icon-arrow { width: 16px; height: 16px; }
.immersive-heading { padding: 64px var(--page-gutter) 40px; }
.immersive-stage { height: 60vh; min-height: 430px; max-height: 620px; }
.immersive-content h3 { font-size: clamp(56px, 6vw, 88px); letter-spacing: -.035em; }
.immersive-selector { padding-block: 28px; }
.immersive-footnote { padding-block: 20px; }
.process-flow { margin-top: 40px; }
.process-step-copy > p { font-size: 16px; line-height: 1.65; }
.process-step-copy > .process-outcome { font-size: 12px; }
.process-step h3 { font-size: 26px; }
.about-story { row-gap: 24px; column-gap: 64px; }
.about-photo { min-height: 480px; }
.about-story .about-copy p { font-size: 16px; line-height: 1.65; margin-bottom: 20px; }
.about-story .about-copy .lead { font-size: 18px; }
.about-more { border-block: 1px solid var(--rule); margin: 24px 0; }
.about-more summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; list-style: none; color: #226eae; font-size: 15px; }
.about-more summary::-webkit-details-marker { display: none; }
.about-more summary span { font-size: 22px; transition: transform .2s; }
.about-more[open] summary span { transform: rotate(45deg); }
.about-story .about-copy .about-more p { font-size: 16px; }
.sector-panels { margin: 0; }
.sector-panel { height: 500px; }
#faq-heading { margin-bottom: 36px; max-width: 700px; }
.faq-answer { max-width: 76ch; }
.faq-answer p { font-size: 16px; line-height: 1.7; }

/* Contact: supporting details follow the form on narrow screens. */
.contact {
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas: 'intro form' 'details form';
  column-gap: 7%; row-gap: 24px; align-items: start;
}
.contact-copy { grid-area: intro; }
.contact-details { grid-area: details; }
#enquiry-form { grid-area: form; padding: 28px; }
.contact-copy > p:not(.eyebrow) { max-width: 40ch; font-size: 16px; line-height: 1.65; }
.contact-details dl { margin: 0; }
.contact dt { font-size: 12px; }
.contact dd { font-size: 16px; }
.contact-details dt:first-child { margin-top: 0; }
.field label { font-size: 14px; margin-bottom: 10px; }
#enquiry-form .form-grid { gap: 24px 20px; }
#enquiry-form .field input,
#enquiry-form .field select,
#enquiry-form .field textarea { font-size: 16px; }

/* Service page: keep the existing PrimeRide desktop and phone mockups. */
.web-wrap { width: calc(100% - 2 * var(--page-gutter)); max-width: 1240px; }
.web-hero { padding-top: 140px; }
.web-breadcrumb { margin-bottom: 28px; font-size: 12px; }
.web-page #main h1 { font-size: clamp(56px, 5.1vw, 76px); letter-spacing: -.035em; }
.web-intro, .web-service-copy, .web-section-heading > p { font-size: 16px; line-height: 1.65; }
.web-secondary, .web-work-card p { font-size: 14px; }
.web-tags li { font-size: 12px; }
.web-services, .web-work, .web-next { padding-block: var(--space-section); }

@media (max-width: 1100px) {
  .solutions-grid { gap: 40px; }
  .solution-panel + .solution-panel::before { left: -20px; }
  .solution-call-visual { padding: 16px; gap: 16px; }
  .solution-call-steps > span { font-size: 12px; padding: 10px; gap: 8px; }
  .about-story { column-gap: 40px; }
}

@media (max-width: 800px) {
  :root {
    --type-title: clamp(32px, 6vw, 38px);
    --space-section: 64px;
    --page-gutter: 24px;
  }
  .hero { height: 100vh; min-height: 0; align-items: flex-start; }
  .hero-content { padding: clamp(140px, 22vh, 200px) var(--page-gutter) 56px; }
  .hero h1 { font-size: clamp(40px, 6.4vw, 56px); line-height: 1.08; margin-bottom: 24px; }
  .hero-description { font-size: 17px; max-width: 430px; margin: 0 0 28px; line-height: 1.65; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 430px; }
  .hero-actions .button { width: 100%; min-height: 52px; padding: 14px 24px; font-size: 16px; }
  .hero-art { left: 0; top: 43%; width: 120%; height: 60%; opacity: .8; }
  .hero-shade { background: linear-gradient(180deg, #edf5ff 15%, #edf5ffdd 42%, #edf5ff33 80%); }
  .section-heading, .portfolio-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 20px; max-width: 50ch; }
  .solutions-grid { grid-template-columns: 1fr; gap: 36px; }
  .solution-panel + .solution-panel { border-top: 1px solid var(--rule); padding-top: 36px; }
  .solution-panel + .solution-panel::before { display: none; }
  .solution-media { margin-bottom: 24px; }
  .solution-panel h3 { font-size: 28px; }
  .solution-panel > p { font-size: 16px; }
  .solution-link { font-size: 15px; }
  .solution-capabilities { font-size: 16px; margin-bottom: 16px; }
  .solution-call-visual { padding: 16px; }
  .solution-call-steps { gap: 8px; }
  .solution-call-steps > span { font-size: 12px; padding: 9px 10px; }
  .portfolio-grid { gap: 36px; }
  .portfolio-art { padding: 20px 16px 16px; }
  .portfolio-browser--screenshot { aspect-ratio: 1.45; }
  .portfolio-project-heading h3 { font-size: 26px; }
  .portfolio-project-detail { font-size: 14px; }
  .immersive-heading { padding-top: 56px; padding-bottom: 32px; }
  .immersive-stage { height: 500px; min-height: 0; }
  .immersive-content h3 { font-size: 48px; }
  .immersive-selector { padding: 24px var(--page-gutter); }
  .immersive-footnote { padding: 0 var(--page-gutter) 24px; }
  .process-flow { gap: 28px; margin-top: 32px; }
  .process-step { grid-template-columns: 72px 1fr; gap: 20px; }
  .process-graphic { height: 80px; }
  .process-graphic svg { width: 80px; height: 80px; }
  .process-step:not(:last-child)::after { left: 36px; top: 88px; bottom: -20px; }
  .process-step h3 { font-size: 24px; margin-top: 0; }
  .process-step-copy > p { font-size: 15px; }
  .process-step-copy > .process-outcome { font-size: 12px; margin-bottom: 8px; }
  .about-story { grid-template-areas: 'heading' 'photo' 'copy'; row-gap: 28px; }
  .about-photo { min-height: 0; max-height: 380px; aspect-ratio: 1.2; }
  .about-story .about-copy p { font-size: 16px; }
  .sector-panel { height: 112px; }
  .sector-panel.is-expanded { height: 500px; }
  #faq-heading { margin-bottom: 28px; }
  .faq-item h3 { font-size: 18px; }
  .contact { grid-template-columns: 1fr; grid-template-areas: 'intro' 'form' 'details'; gap: 28px; }
  .contact-copy > p:not(.eyebrow) { margin-bottom: 0; max-width: 50ch; }
  #enquiry-form { padding: 24px 20px; }
  .contact-details { padding-top: 8px; }
  .contact-details dl { display: grid; grid-template-columns: 100px 1fr; gap: 16px; }
  .contact-details dt, .contact-details dd { margin: 0; line-height: 1.6; }
  .contact-details dd { font-size: 14px; overflow-wrap: anywhere; }
  .field label { font-size: 14px; }
  .web-hero { padding: 112px 0 40px; }
  .web-breadcrumb { margin-bottom: 20px; }
  .web-hero .eyebrow { display: none; }
  .web-page #main h1 { font-size: clamp(40px, 7vw, 56px); margin-bottom: 20px; }
  .web-intro { font-size: 16px; }
  .web-actions { margin-top: 24px; gap: 12px 24px; }
  .web-preview { margin-top: 24px; padding-top: 8px; }
  .web-qualities { font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-content { padding-bottom: 64px; }
  .hero h1 { font-size: 44px; }
  .hero-description { font-size: 16px; }
  .solution-wave { width: 24%; }
  .solution-call-steps svg { width: 19px; height: 19px; }
}
@media (max-width: 360px) {
  :root { --page-gutter: 20px; --space-section: 56px; }
  .hero h1 { font-size: 38px; }
  .hero-description { font-size: 16px; line-height: 1.55; }
  .solution-call-visual { gap: 10px; padding: 12px; }
  .solution-call-steps > span { font-size: 11px; gap: 6px; }
  .solution-panel h3 { font-size: 26px; }
  .process-step { grid-template-columns: 58px 1fr; gap: 16px; }
  .process-graphic svg { width: 62px; }
  .process-step:not(:last-child)::after { left: 29px; }
  #enquiry-form { padding: 20px 16px; }
  .contact-details dl { grid-template-columns: 80px 1fr; gap: 12px; }
}
/* Short screens and zoom can grow beyond one viewport to keep all actions usable. */
@media (max-height: 620px) {
  .hero { height: auto; min-height: 100vh; }
  .hero-content { padding-top: 120px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(38px, 5vw, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto; }
  .about-more summary span { transition: none; }
}
