/* OMB Landscaping: "sunup to sundown".
   Loaded after scrollcraft.css, which supplies the scroll mechanism and base
   tokens. This file is the page's own look. The page is a day on the route:
   it opens at sunrise and ends in evening light, and site.js moves the sun
   across the bar and publishes the light (--grade, --sun-vx, --sun-up).

   Colour is the company's own: the green, lime and orange are sampled from the
   logo, and the deep green, pale green and wash match the CRM app
   (app/css/omb.css). Light grounds wherever there is no photograph, deep green
   under the photos. */

@font-face { font-family: Archivo; src: url('/media/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: Figtree; src: url('/media/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: light;
  --white: #ffffff;
  --mist: #f3f9ef;        /* light ground */
  --pale: #e3f4df;        /* CRM green-pale */
  --wash: #c9eac2;        /* CRM wash: hairlines on light */
  --green: #41b93d;       /* logo green */
  --lime: #80cd29;        /* logo lime */
  --deep: #1b4522;        /* deep brand green: dark sections */
  --shade: 18 51 26;      /* the same green, for shading over photographs */
  --shadow: 11 20 14;     /* near-neutral dark, for drop shadows */
  --ink: #1f4a26;         /* CRM green-text: type on light */
  --ink-soft: #4a6350;
  --on-deep-soft: #d5e8d0;
  --orange: #f68004;      /* logo orange: the one accent */
  --orange-hi: #ff9a2e;
  --orange-ink: #2a1500;
  --underline: #d96f00;   /* the orange, a step deeper so it shows on light grounds */
  --soft: var(--ink-soft);
  --focus: var(--ink);
  --bar-h: 4.5rem;

  --sc-canvas: var(--white);
  --sc-surface: var(--mist);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--orange);
  --sc-accent-ink: var(--orange-ink);
  --sc-font-display: Archivo, "Arial Narrow", system-ui, sans-serif;
  --sc-font-text: Figtree, system-ui, sans-serif;
  --sc-shadow-color: 130 45% 14%;
}

html { scroll-padding-top: 0; }
body { background: var(--white); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
img { height: auto; }
p { text-wrap: pretty; }
h1, h2, h3, legend, .title, .line { font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -6rem; left: 1rem; z-index: 90; padding: 0.7rem 1rem; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--sc-gutter); }

/* --------------------------------------------------------------- the bar --
   Fixed. The nav is a sky: an arc with the sun on it and the stops beneath. */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.75rem); height: var(--bar-h); padding-inline: var(--sc-gutter); background: var(--white); border-bottom: 1px solid var(--wash); }
.brand { flex: none; display: block; }
.brand img { width: 118px; }
.day { position: relative; flex: 1; align-self: stretch; display: flex; align-items: flex-end; justify-content: space-around; min-width: 0; padding: 0 2% 0.55rem 16%; }
.day a { position: relative; z-index: 1; padding: 0.5rem 0.4rem 0; font-family: var(--sc-font-display); font-stretch: 118%; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); white-space: nowrap; transition: color 160ms var(--sc-ease-out); }
.day a[aria-current="true"] { color: var(--ink); }
.day__arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.day__path, .day__done { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.day__path { stroke: #a9cba3; stroke-width: 1; stroke-dasharray: 2 5; }
.day__done { stroke: var(--orange); stroke-width: 2; stroke-dasharray: 0 1; }
.day__sun { position: absolute; left: 0; top: 0; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #ffd08a, var(--orange) 62%); box-shadow: 0 0 0 4px rgb(246 128 4 / 0.18); cursor: grab; touch-action: none; opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.day__sun::after { content: ""; position: absolute; inset: -15px; border-radius: 50%; }
.day--ready .day__sun { opacity: 1; }
.day__sun.is-held { cursor: grabbing; }
.bar__phone { color: var(--ink); font-weight: 700; font-size: 0.95rem; white-space: nowrap; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .day a:hover { color: var(--ink); }
  .bar__phone:hover, .foot a:hover, .plain-link:hover { text-decoration: underline; }
}

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.25rem; border: 0; border-radius: 8px; background: var(--orange); color: var(--orange-ink); font-family: var(--sc-font-text); font-weight: 800; font-size: 0.98rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 0 #c26400, 0 8px 18px -10px rgb(var(--shadow) / 0.6); transition: background-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.7; cursor: wait; }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--orange-hi); } }
.go { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--underline); text-underline-offset: 0.3em; cursor: pointer; }
.go::after { content: "\2192"; transition: transform 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .go:hover::after { transform: translateX(4px); } }
.plain-link { font-weight: 700; text-decoration: none; padding-block: 0.7rem; }

/* ------------------------------------------------------------- the acts --
   Each pinned act starts one viewport early, so its stage rises over the
   previous one while that one is still held. Nothing ever scrolls away as a
   static slab: every cut is a wipe from below with a soft leading edge. */
.act { background: rgb(var(--shade)); }
.beds { background: var(--mist); }
.over { margin-top: -100vh; }
.over::before { content: ""; position: absolute; z-index: 2; inset: -18vh 0 auto 0; height: 18vh; background: linear-gradient(to top, rgb(var(--shade) / 0.5), transparent); pointer-events: none; }
/* No position on .stage: the engine's .sc-stage makes it sticky, and a position
   set here would win and unpin the act. Without the engine it is a plain block. */
/* A photo scene: white type, shaded with deep green where the words sit. */
.stage { --sc-canvas: rgb(var(--shade)); --soft: var(--on-deep-soft); --focus: var(--white); --underline: var(--orange); background: rgb(var(--shade)); color: var(--white); }
.stage:not(.sc-stage) { position: relative; min-height: 100svh; }
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene__layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; will-change: transform; }

/* The light of the day, shared by every scene. --grade is multiplied over the
   photograph (warm at sunrise, clear by day, amber in the evening) and a warm
   pool of light sits under wherever the sun is in the bar. */
/* No z-index on .light: that would make it its own stacking context and the
   blend modes below would have nothing to blend with. */
.light { position: absolute; inset: 0; pointer-events: none; }
.light::before, .light::after { content: ""; position: absolute; inset: 0; }
.light::before { background: var(--grade, #fff); mix-blend-mode: multiply; }
.light::after { background: radial-gradient(75vmax 62vmax at var(--sun-vx, 70%) -6%, rgb(255 198 124 / calc(0.08 + var(--sun-up, 0.6) * 0.3)), transparent 70%); mix-blend-mode: screen; }

.sc-copy { max-width: min(40rem, 80vw); }
.sc-copy--lead { bottom: clamp(2.5rem, 9vh, 6rem); }
.sc-copy--trail { bottom: clamp(2.5rem, 9vh, 6rem); max-width: min(30rem, 80vw); text-align: left; }
h1 { font-size: clamp(2.6rem, 1rem + 4.1vw, 4.7rem); }
.dawn .sc-copy { max-width: min(54rem, 86vw); }
h2 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4rem); }
.title { font-size: clamp(2.6rem, 1rem + 5.6vw, 6.2rem); max-width: 11ch; }
.line { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; }
/* A full sentence, so it is set a step smaller than the one-line statements. */
.rail__end .line { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.lede { max-width: 40ch; margin-top: 1.1rem; font-size: var(--sc-t-lg); line-height: 1.45; color: inherit; }
.note { margin-top: 0.9rem; font-size: 0.92rem; color: var(--soft); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; margin-top: 1.6rem; }
.sc-copy .go { margin-top: 0.9rem; }

/* First light. The sky and the land are separate planes cut from one photo. */
.dawn .scene__layer { object-position: 50% 22%; }
/* Lighter than the engine's corner shade, so the green sits under the words
   and does not fog the trailer. */
.dawn .sc-scrim--lead { background: linear-gradient(to top right, rgb(var(--shade) / 0.9) 0%, rgb(var(--shade) / 0.62) 24%, rgb(var(--shade) / 0.2) 44%, transparent 60%); }
.dawn__sky { transform: translate3d(0, calc((1 - min(var(--sc-p, 0) * 2.2, 1)) * 2.2%), 0) scale(calc(1.035 + var(--sc-p, 0) * 0.02)); transform-origin: 80% 20%; }
.dawn__land { transform: scale(calc(1 + min(var(--sc-p, 0) * 1.7, 1) * 0.085)); transform-origin: 56% 60%; }

/* Cleanups. The cleared yard blows in from the left behind a soft edge. */
.leaves .scene { transform: scale(calc(1 + var(--sc-p, 0) * 0.05)); }
.leaves__after { --w: clamp(0, calc((var(--sc-p, 1) - 0.12) / 0.32), 1);
  -webkit-mask-image: linear-gradient(98deg, #000 calc(var(--w) * 135% - 35%), transparent calc(var(--w) * 135%));
          mask-image: linear-gradient(98deg, #000 calc(var(--w) * 135% - 35%), transparent calc(var(--w) * 135%)); }

/* Beds. A rail that travels sideways under the scroll. site.js measures how far
   it overflows (--rail-over). It finishes its travel at the moment the next
   scene starts to rise, then holds on its last panel, so nothing in it is ever
   covered before it has been seen. 1.4545 is (span - 1) / (span - 2) for 4.2. */
.beds .stage { --sc-canvas: var(--mist); --soft: var(--ink-soft); --focus: var(--ink); --underline: #d96f00; display: flex; align-items: center; background: var(--mist); color: var(--ink); }
.rail { position: relative; z-index: 2; display: flex; align-items: center; will-change: transform; transform: translate3d(calc(var(--rail-over, 0) * -1px * min(var(--sc-p, 0) * 1.4545, 1)), 0, 0); gap: clamp(1.25rem, 3vw, 3rem); padding: var(--bar-h) var(--sc-gutter) 0; }
.rail > * { flex: none; }
.rail__lead { width: min(30rem, 78vw); }
.rail__item { width: auto; }
.rail__item img { display: block; height: min(58vh, 34rem); width: auto; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 6px rgb(var(--shadow) / 0.14), 0 22px 44px -20px rgb(var(--shadow) / 0.5); }
.rail__item--tall img { aspect-ratio: 3 / 4; }
.rail__item--wide img { aspect-ratio: 16 / 9; }
.rail__item:nth-child(even) { translate: 0 -2.2vh; }
.rail__item:nth-child(odd) { translate: 0 2.2vh; }
.rail__item figcaption { margin-top: 0.8rem; font-size: 0.95rem; color: var(--soft); }
.rail__end { width: min(26rem, 78vw); padding-right: 6vw; }
.rail__end .go { margin-top: 1.1rem; }

/* Mowing: the peak. site.js lays a ground-plane warp over the lower part of
   the photograph, so scrolling reads as a camera gliding low over the lawn. */
/* Visible overflow: the scene itself tips upward, and the warped lawn has to
   keep covering the stage below it. The stage does the clipping. */
.flight { overflow: visible; will-change: transform; }
.stripes .sc-scrim--band { background: linear-gradient(to top, rgb(var(--shade) / 0.86) 0%, rgb(var(--shade) / 0.52) 26%, rgb(var(--shade) / 0.14) 46%, transparent 58%); }

/* The route. It rises over the last frame of the lawn, and the grass settles
   into the company green. */
.route { position: relative; z-index: 2; margin-top: -100vh; padding: 46vh 0 clamp(4rem, 9vw, 8rem); --soft: var(--on-deep-soft); --focus: var(--white); --underline: var(--orange); color: var(--white); background: linear-gradient(to bottom, transparent 0, rgb(27 69 34 / 0.88) 30vh, var(--deep) 52vh); }
.route__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.route__grid[id] { scroll-margin-top: calc(var(--bar-h) + 2rem); }
.route__copy p:not(.lede) { max-width: 44ch; margin-top: 0.9rem; color: var(--soft); }
.route__copy .go { margin-top: 1.3rem; }
.route__photo { margin: 0; }
.route__frame { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.route__frame img { width: 100%; height: 100%; object-fit: cover; }
.route__photo figcaption { margin-top: 0.8rem; font-size: 0.95rem; color: var(--soft); }
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 0 clamp(1.5rem, 4vw, 4rem); margin-top: clamp(3rem, 7vw, 6rem); }
.answers details { padding-top: 0.2rem; border-top: 1px solid rgb(255 255 255 / 0.26); }
.answers summary { position: relative; padding: 1rem 2.2rem 1rem 0; font-weight: 700; cursor: pointer; list-style: none; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.35rem; width: 0.55rem; height: 0.55rem; border: solid var(--orange); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 180ms var(--sc-ease-out); }
.answers details[open] summary::after { transform: translateY(0.25rem) rotate(225deg); }
.answers p { padding-bottom: 1.1rem; color: var(--soft); }

/* The last stop. The page ends bright, on the form, and holds. */
.close { position: relative; z-index: 2; background: var(--mist); color: var(--ink); padding-top: clamp(3rem, 7vw, 6rem); scroll-margin-top: var(--bar-h); }
.close__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.close__intro { position: sticky; top: calc(var(--bar-h) + 2.5rem); }
.contact { margin-top: 1.2rem; font-weight: 700; }
.contact a { color: inherit; text-decoration-color: var(--underline); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

.form-wrap { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--white); color: var(--ink); border: 1px solid var(--wash); border-radius: 10px; box-shadow: 0 2px 6px rgb(var(--shadow) / 0.08), 0 26px 50px -26px rgb(var(--shadow) / 0.4); }
fieldset { min-width: 0; margin: 0 0 1.4rem; padding: 0; border: 0; }
legend { padding: 0 0 0.9rem; font-size: var(--sc-t-xl); line-height: 1.05; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
label { display: block; margin-bottom: 0.9rem; font-weight: 600; font-size: 0.92rem; }
input, select, textarea { display: block; width: 100%; min-width: 0; margin-top: 0.35rem; padding: 0.7rem 0.8rem; border: 1px solid #6b9273; border-radius: 6px; background-color: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sc-font-text); }
input, select { min-height: 48px; }
textarea { resize: vertical; }
::placeholder { color: #587060; opacity: 1; }
.hint, .feedback { font-size: 0.92rem; }
.hint { margin-bottom: 0.7rem; color: var(--ink-soft); }
.feedback { color: #8a2a19; }
.feedback:not(:empty) { margin-bottom: 1rem; padding: 0.8rem; background: #ffe5d8; border-radius: 6px; }
.form-wrap noscript p { margin-bottom: 1rem; }
#confirmation h3 { font-size: var(--sc-t-xl); }
#confirmation p { margin: 0.75rem 0 1.2rem; }

.foot { margin-top: clamp(3.5rem, 7vw, 6rem); background: var(--white); border-top: 1px solid var(--wash); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem; padding-block: 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.foot a { color: inherit; text-decoration: none; padding-block: 0.6rem; }
.foot .brand { margin-right: auto; }
.foot .brand img { width: 96px; }

/* --------------------------------------------------------------- tablet -- */
@media (max-width: 1100px) { .bar__phone { display: none; } .day { padding-left: 8%; } }

/* ---------------------------------------------------------------- phone --
   Art-directed on its own terms, not shrunk. */
@media (max-width: 860px) {
  :root { --bar-h: 6.25rem; }
  .bar { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: center; gap: 0; padding-top: 0.45rem; }
  .bar .brand { grid-area: 1 / 1; }
  .brand img { width: 100px; }
  .bar .button { grid-area: 1 / 2; min-height: 44px; padding: 0.5rem 0.9rem; font-size: 0.88rem; }
  .day { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; padding: 0 0 0.3rem 14%; margin-inline: -0.2rem; }
  .day a { padding: 0.75rem 0.15rem 0.25rem; font-size: 0.72rem; letter-spacing: 0.04em; }

  .sc-copy--lead, .sc-copy--trail { bottom: clamp(1.25rem, 4.5vh, 2.5rem); }
  h1 { font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  h2 { font-size: clamp(2rem, 8.6vw, 2.9rem); }
  .title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .lede { margin-top: 0.8rem; font-size: 1.05rem; }
  .links { margin-top: 1.1rem; }

  .dawn .scene { transform: translateY(-9%); }
  .dawn .scene__layer { object-position: 74% 50%; }
  .dawn .sc-scrim--lead, .leaves .sc-scrim--lead { background: linear-gradient(to top, rgb(var(--shade) / 0.97) 0%, rgb(var(--shade) / 0.88) 30%, rgb(var(--shade) / 0.42) 50%, transparent 66%); }
  .leaves .sc-scrim--trail { background: linear-gradient(to top, rgb(var(--shade) / 0.92) 0%, rgb(var(--shade) / 0.62) 15%, transparent 34%); }
  .leaves .scene__layer { object-position: 22% 50%; }
  .rail__item img { height: min(46vh, 22rem); }
  .stripes .scene__layer { object-position: 46% 50%; }

  .route { padding-top: 42vh; }
  .route__grid, .close__grid, .answers { grid-template-columns: minmax(0, 1fr); }
  .close__intro { position: static; }
  .foot__inner { gap: 0.2rem 1.4rem; }
  .foot .brand { margin: 0 100% 0.6rem 0; }
}
@media (max-width: 430px) { .two-fields { grid-template-columns: 1fr; gap: 0; } }

/* -------------------------------------------------------- reduced motion --
   No pinning, no camera, no wipe. Every scene is one still screen with its
   words on it, and the leaves become a plain side-by-side split. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .act { height: auto !important; margin-top: 0; }
  .over::before { display: none; }
  .stage, .stage.sc-stage { position: relative; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.25rem; padding: calc(var(--bar-h) + 2rem) var(--sc-gutter) clamp(2rem, 7vh, 4rem); overflow: hidden; }
  .stage .sc-copy { position: relative; inset: auto; z-index: 20; max-width: 40rem; }
  .stage .sc-scrim { opacity: 1 !important; background: linear-gradient(to top, rgb(var(--shade) / 0.95) 0%, rgb(var(--shade) / 0.82) 38%, rgb(var(--shade) / 0.32) 62%, transparent 80%); }
  [data-sc-cue] { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .scene, .scene__layer, .flight, .rail { transform: none !important; }
  .leaves__after { -webkit-mask-image: linear-gradient(90deg, transparent 50%, #000 50%); mask-image: linear-gradient(90deg, transparent 50%, #000 50%); }
  .flight__ground { display: none; }
  .title { max-width: none; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
  .beds .stage, .beds .stage.sc-stage { justify-content: center; padding-inline: 0; overflow-x: auto; overflow-y: hidden; }
  .rail { padding-top: 0; }
  .rail__item:nth-child(n) { translate: none; }
  .route { margin-top: 0; padding-top: clamp(4rem, 9vw, 8rem); background: var(--deep); }
}
