/* ===============================================
   FULL-PAGE SECTIONS — one screen = one scroll
   ===============================================
   Loaded LAST (its own <link> after process.css) so it wins over every
   component file without needing !important everywhere.

   >>> EVERYTHING IN THIS FILE LIVES INSIDE ONE MEDIA QUERY. <<<

   That is not cosmetic. Because this sheet loads after style.css, any rule
   written at the top level here would beat _responsive.css's media queries —
   later sheet wins at equal specificity, media query or not. A bare
   `.section-title { font-size: clamp(...) }` in this file would therefore
   silently kill every phone and tablet override in _responsive.css. Keeping
   the whole thing gated means full-page mode is purely additive: outside the
   gate the site behaves exactly as _responsive.css describes.

   The gate is min-width 1201px + min-height 600px:
     - 1201px, because process.css stacks .timeline into a column at ≤1200px
       and five stacked steps cannot fit one viewport. Snapping there would
       make the bottom of the section unreachable.
     - 600px tall, because below that no amount of clamping fits the content.

   Two halves inside the gate:
     1. Snapping   — native CSS scroll-snap on the document scroller.
     2. Fitting    — every section locked to exactly one viewport, contents
                     sized in vh so they shrink with the window.

   Why native snap and not a wheel handler: `scroll-snap-type` is resolved by
   the compositor. It cannot deadlock the page, it works with the keyboard,
   trackpad, touch and the scrollbar, and it needs no scroll-position
   bookkeeping — which is exactly what broke the previous JS version.

   HARD RULE: because snapping is `mandatory`, a section taller than the
   viewport becomes unreachable at the bottom. If you add content to a
   section, shrink something else here — do not let a section grow.
=============================================== */

@media (min-width: 1201px) and (min-height: 600px) {

  /* --- 1. Snapping ---------------------------------------------------- */

  html {
    scroll-snap-type: y mandatory;
    /* _reset.css offsets anchor jumps by the fixed navbar height. That same
       offset also shifts every SNAP position, which would park each section
       63px down and leave a sliver of the previous one on screen. Sections
       are a full viewport with vertically-centred content, so the navbar
       overlays empty space anyway — snap flush to the top instead. */
    scroll-padding-top: 0;
  }

  /* svh = the *small* viewport height: excludes retractable browser chrome,
     so sections don't resize (and re-snap) as it hides. */
  .hero,
  .core-values,
  .full-width-section,
  .process-section,
  .portfolio-section-upper,
  .about-us,
  .contact-section {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    max-height: 100svh;
    overflow: hidden;
    box-sizing: border-box;
    scroll-snap-align: start;
    /* `always` = a single gesture can never fly past a section */
    scroll-snap-stop: always;
    /* scroll-margin expands a snap target's snap area, so it shifts the
       resting position exactly like scroll-padding does. */
    scroll-margin-top: 0;
  }

  /* Centre each section's content within its screen. .hero is excluded — it
     already centres itself and its children are absolutely positioned. */
  .core-values,
  .full-width-section,
  .process-section,
  .portfolio-section-upper,
  .about-us,
  .contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* --- 2. Fitting: shared headings ------------------------------------ */

  /* Was a flat 100px, which alone ate a ninth of a laptop screen. */
  .section-title {
    font-size: clamp(46px, 8vh, 100px);
  }

  .section-subtitle-blue {
    font-size: clamp(15px, 2.1vh, 24px);
    margin-top: clamp(8px, 1.4vh, 20px);
    margin-bottom: clamp(18px, 3.4vh, 60px);
  }

  .section-header {
    margin-bottom: clamp(16px, 3vh, 60px);
    flex: 0 0 auto;
  }

  /* --- Core values ---------------------------------------------------- */

  .core-content-container {
    padding: clamp(16px, 3vh, 80px) 20px;
    flex: 0 1 auto;
    min-height: 0;
  }

  .core-content {
    margin-top: 0;
  }

  .core-values .section-subtitle {
    font-size: clamp(15px, 2.1vh, 24px);
    margin: clamp(8px, 1.4vh, 20px) 0 clamp(18px, 3vh, 60px);
  }

  /* The ring is the tallest thing on this screen — tie it to viewport
     height, not to a fixed 500px box. */
  .values-visual {
    width: min(46vh, 500px);
    height: min(46vh, 500px);
  }

  .values-logo {
    width: 70%; /* was 350px inside a 500px box */
  }

  .value {
    font-size: clamp(20px, 3.4vh, 40px);
  }

  /* --- Services ------------------------------------------------------- */

  .full-width-section {
    padding: clamp(24px, 5vh, 80px) 5% 0;
    border-radius: clamp(120px, 20vh, 300px) clamp(120px, 20vh, 300px) 0 0 /
                   clamp(90px, 16vh, 250px) clamp(90px, 16vh, 250px) 0 0;
  }

  /* NOTE: the markup has no .services-section wrapper — .services-grid is a
     direct child of .full-width-section. Size the grid itself. */
  .services-grid {
    gap: clamp(14px, 2vh, 30px);
    padding-bottom: 0;
  }

  .service-card {
    padding: clamp(16px, 2.6vh, 40px);
  }

  .service-card h3 {
    font-size: clamp(16px, 2.3vh, 22px);
    margin-bottom: clamp(6px, 1vh, 15px);
  }

  .service-card p {
    font-size: clamp(12px, 1.7vh, 15px);
    line-height: 1.45;
  }

  .card-icon {
    width: clamp(38px, 6vh, 60px);
    height: clamp(38px, 6vh, 60px);
    margin-bottom: clamp(10px, 2.4vh, 25px);
  }

  .card-icon img {
    width: clamp(38px, 6vh, 60px);
  }

  /* The staggered vertical offsets are decorative and cost real height. */
  @media (max-height: 860px) {
    .service-card.animate-in:nth-child(4),
    .service-card.animate-in:nth-child(6) {
      transform: translateY(0);
    }
  }

  /* --- Process -------------------------------------------------------- */

  .process-section {
    margin: 0 auto;
    padding: clamp(24px, 5vh, 80px) clamp(20px, 3vw, 40px);
    border-radius: clamp(24px, 4vh, 40px);
  }

  .timeline {
    margin: clamp(18px, 3vh, 60px) auto 0;
    padding: clamp(12px, 3vh, 30px) 0 clamp(12px, 4vh, 40px);
    gap: clamp(24px, 4vw, 70px);
  }

  .step-wrapper:nth-child(even) {
    margin-top: clamp(80px, 14vh, 130px);
  }

  .step-icon {
    width: clamp(58px, 8.5vh, 80px);
    height: clamp(58px, 8.5vh, 80px);
    margin-bottom: clamp(8px, 1.6vh, 15px);
  }

  .step-icon img {
    width: clamp(30px, 4.4vh, 42px);
    height: clamp(30px, 4.4vh, 42px);
  }

  .step-content h3 {
    font-size: clamp(15px, 2.2vh, 20px);
  }

  .step-content p {
    font-size: clamp(12px, 1.6vh, 14px);
  }

  /* The connector line is positioned against the icon circle, so it has to
     follow the same clamp. */
  .step-wrapper::after {
    top: calc(clamp(58px, 8.5vh, 80px) / 2 + 22px);
  }

  /* --- Portfolio ------------------------------------------------------ */

  /* The section had max-width:1400px, but it now also has overflow:hidden —
     and .project-slider is full-bleed via `margin-left: calc(50% - 50vw)`.
     Together those would clip the marquee to 1400px on wide screens. The
     header inside is centred by text-align, so dropping the cap is free. */
  .portfolio-section-upper {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: clamp(24px, 5vh, 80px) 0;
  }

  .project-slider {
    padding-top: clamp(12px, 2.5vh, 40px);
    padding-bottom: clamp(12px, 2.5vh, 40px);
    gap: clamp(16px, 3vh, 40px);
  }

  .project-frame {
    flex: 0 0 clamp(280px, 42vh, 500px);
    height: clamp(168px, 25vh, 300px);
  }

  .project-frames {
    gap: clamp(16px, 2vw, 30px);
  }

  /* --- About ---------------------------------------------------------- */

  .about-us {
    padding: clamp(24px, 5vh, 120px) 20px;
  }

  .about-content {
    margin: clamp(16px, 3vh, 60px) auto 0;
    padding: clamp(24px, 4vh, 50px);
  }

  .about-text {
    font-size: clamp(14px, 1.9vh, 18px);
    line-height: 1.7;
    margin-bottom: clamp(14px, 2.4vh, 35px);
  }

  .about-link {
    font-size: clamp(15px, 2vh, 18px);
    margin-top: clamp(14px, 2.5vh, 40px);
  }

  /* --- Contact -------------------------------------------------------- */
  /* This section has the most vertical slack of the seven: header ≈ 175px
     of a ≈940px screen leaves ~750px for a form that wants ~500px. Earlier
     revisions clamped it as aggressively as the dense sections and it came
     out cramped. Minimums here are deliberately close to the design values
     — only genuinely short windows compress it. */

  .contact-section {
    padding: clamp(32px, 5vh, 120px) 20px;
  }

  .contact-content {
    width: 100%;
    margin: clamp(28px, 5vh, 60px) auto;
  }

  /* The two columns were reading as one block. Widen the gutter and centre
     the info column against the form instead of top-aligning it. */
  .contact-grid {
    gap: clamp(56px, 6vw, 110px);
    align-items: center;
  }

  .contact-form {
    gap: clamp(16px, 2.6vh, 26px);
  }

  .form-group input,
  .form-group textarea {
    padding: clamp(12px, 1.7vh, 16px) 15px clamp(12px, 1.7vh, 16px) 50px;
    font-size: clamp(14px, 1.8vh, 16px);
  }

  /* _contact.css derives this from padding-top 15px / line-height 24px.
     Both are now fluid, so re-derive:
     top = padding-top + (line-height − icon height) / 2 */
  .form-group--textarea .input-icon {
    top: calc(clamp(12px, 1.7vh, 16px) + (clamp(14px, 1.8vh, 16px) * 1.5 - 20px) / 2);
  }

  .contact-form textarea {
    min-height: clamp(96px, 15vh, 150px);
  }

  .contact-preference {
    margin: clamp(2px, 0.6vh, 10px) 0;
  }

  .contact-preference p {
    margin-bottom: clamp(10px, 1.8vh, 15px);
    font-size: clamp(14px, 1.8vh, 16px);
  }

  .submit-button {
    margin-top: clamp(18px, 3vh, 40px);
  }

  .contact-info {
    padding: 0;
  }

  .contact-info h3 {
    font-size: clamp(22px, 3.2vh, 32px);
    line-height: 1.35;
    margin-bottom: clamp(14px, 2vh, 20px);
  }

  .contact-info p {
    font-size: clamp(15px, 2vh, 18px);
    margin-bottom: 0;
  }

  .social-media {
    margin-top: clamp(32px, 6vh, 60px);
  }

  .social-media p {
    margin-bottom: clamp(12px, 2vh, 20px);
  }
}
