/* rm-dms.co.uk — the logo's amber on blueprint navy: dark bands with a drafting
   grid (structural drawings), white cards, Inter. Same design language as the
   PlanPicPro app (rm-Surveys/style.css). No JavaScript: content rises in as it
   scrolls into view where the browser supports scroll-driven animations, and
   nothing moves under prefers-reduced-motion. */

/* Inter, served from our own server (review G5: loading it from Google sent
   every visitor's IP address to Google). One variable font per subset, every
   weight; latin-ext carries Hungarian's ő and ű. Licence: fonts/OFL.txt. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --fg: #3b3f46; --heading: #0f172a; --muted: #64748b; --line: #e6e8ee;
  --bg: #fff; --soft: #f5f7fa; --dark: #0b1729; --dark-2: #14294a;
  --brand: #f0a020;        /* logo amber: buttons, accents */
  --brand-hover: #ffb640;
  --brand-ink: #a86400;    /* amber dark enough for text on white */
  --brand-tint: #fdf1dc;
  --grad: linear-gradient(135deg, #f08a00 0%, #f0a020 50%, #f7c45a 100%);
  --grid-minor: rgba(147, 187, 255, 0.07); --grid-major: rgba(147, 187, 255, 0.13);
  --blueprint:
    linear-gradient(var(--grid-major) 1px, transparent 1px) -1px -1px / 120px 120px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) -1px -1px / 120px 120px,
    linear-gradient(var(--grid-minor) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) -1px -1px / 24px 24px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.05), 0 18px 40px -14px rgba(15, 23, 42, 0.22);
  --shadow-xl: 0 2px 4px rgba(15, 23, 42, 0.05), 0 28px 56px -18px rgba(15, 23, 42, 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wide: 1180px;
  --gutter: max(1.25rem, calc(50vw - var(--wide) / 2 + 1.25rem));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font: 17px/1.7 Inter, system-ui, sans-serif; margin: 0; color: var(--fg); background: var(--bg);
       min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; -webkit-font-smoothing: antialiased; }
main { max-width: var(--wide); width: 100%; margin: 0 auto; padding: 0 1.25rem 4rem; flex: 1; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand); color: var(--dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Header */
#nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 0.5rem 2rem; align-items: center;
       padding: 0.7rem max(1.25rem, calc((100% - var(--wide)) / 2 + 1.25rem));
       background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
       border-bottom: 1px solid var(--line); }
#nav::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
#nav .brand img { display: block; height: 44px; width: auto; }
#nav nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: flex-end; }
#nav nav a { text-decoration: none; color: var(--fg); font-weight: 500; font-size: 15px; padding: 0.4rem 0.7rem; border-radius: 8px;
             white-space: nowrap; transition: background 0.15s, color 0.15s; }
#nav nav a:hover { background: var(--soft); color: var(--heading); }
#nav nav a[aria-current] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
#nav nav .button { margin: 0 0 0 0.5rem; padding: 0.55rem 1.1rem; font-size: 15px; }

/* Type */
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 5vw, 56px); margin: 2rem 0 1rem; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 3rem 0 1rem; letter-spacing: -0.03em; }
h3 { font-size: 20px; margin: 1.25rem 0 0.5rem; }
h4 { font-size: 18px; margin: 1rem 0 0.25rem; }
section > h2:first-child { text-align: center; }
section > h2:first-child::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--grad); margin: 0.9rem auto 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 0.75rem; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 40em; }
em.hl { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Page header on every inner page: breadcrumbs, title and a one-line lead on a
   blueprint band, with a contact card on the right. The home hero shares the band. */
.page-head, .band.blueprint {
  background: radial-gradient(640px 300px at 88% -20%, rgba(240, 160, 32, 0.34), transparent 70%),
              radial-gradient(560px 280px at -6% 130%, rgba(240, 160, 32, 0.14), transparent 70%),
              linear-gradient(160deg, var(--dark-2), var(--dark)); }
.page-head { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(50% - 50vw) 3rem;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter); color: #fff; }
.page-head::after, .band.blueprint::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blueprint);
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 75%); mask-image: linear-gradient(100deg, transparent 5%, #000 75%); }
.page-head > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3.5rem; align-items: center; }
.page-head h1 { color: #fff; margin: 0.8rem 0 0.6rem; font-size: clamp(34px, 4.6vw, 56px); }
.page-head .lead { margin: 0; color: rgba(255, 255, 255, 0.78); max-width: 34em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; font-size: 13px; font-weight: 600;
          letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs > * + *::before { content: "/"; margin-right: 0.5rem; color: rgba(255, 255, 255, 0.3); }
.crumbs [aria-current] { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, 0.6); }
.contact-card { width: 310px; padding: 1.35rem 1.4rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
                background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
                box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.contact-card .eyebrow { margin-bottom: 0.6rem; font-size: 12px; color: var(--brand); }
.contact-card a:not(.button) { display: flex; align-items: center; gap: 0.7rem; padding: 0.4rem 0; color: #fff; font-weight: 500; text-decoration: none; }
.contact-card a:not(.button):hover { color: var(--brand); }
.contact-card .ci { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
                    background: rgba(240, 160, 32, 0.16); color: var(--brand); }
.contact-card .button { display: flex; justify-content: center; width: 100%; margin: 1rem 0 0; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 0.5rem; margin: 1rem 0.5rem 0 0; padding: 0.85rem 1.6rem; font-size: 16px; font-weight: 600; line-height: 1.2;
          border: 2px solid var(--brand); border-radius: 12px; color: var(--dark); text-decoration: none;
          background: linear-gradient(180deg, #ffb640, var(--brand));
          transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.button:hover { border-color: var(--brand-hover); color: var(--dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(240, 160, 32, 0.65); }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
section > .button:last-child { display: flex; width: max-content; margin: 2rem auto 0; }

/* Sections */
section { margin: 3rem 0; }
.soft { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 1rem var(--gutter) 4rem; background: var(--soft); }

/* Full-width photo band: the photo slowly drifts under a navy wash and the drafting grid */
.band { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(50% - 50vw) 3rem;
        padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: var(--dark); color: #fff; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--photo) center / cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blueprint),
              radial-gradient(620px 320px at 85% 0%, rgba(240, 160, 32, 0.26), transparent 70%),
              linear-gradient(100deg, rgba(11, 23, 41, 0.95) 0%, rgba(11, 23, 41, 0.8) 50%, rgba(11, 23, 41, 0.45) 100%); }
.band :is(h1, h2, h3, h4, h5, p, li, a:not(.button)) { color: #fff; }
.band h1, .band h2 { max-width: 16em; margin-top: 0; }
.band h2 { font-size: clamp(32px, 4.5vw, 52px); }
.band .lead { color: rgba(255, 255, 255, 0.82); }
.band .eyebrow { color: var(--brand); }
.band .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); }
.band .cols { display: flex; flex-wrap: wrap; gap: 0; }
.band .list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 1.5rem 0 0; }
.band .list a { opacity: 0.85; }
.band .list a:hover { opacity: 1; }
.band .card { background: transparent; box-shadow: none; border: 0; padding: 0; text-align: left; }
.band .card::before { display: none; }
.band .card h3 { font-size: clamp(32px, 4.5vw, 52px); color: #fff; }
.hero { min-height: min(82vh, 760px); display: flex; align-items: center; }
.hero > div { min-width: 0; } /* a flex item may not shrink below its widest child otherwise */

/* Home hero: copy on the left, two real project photos and two chips on the right */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3.5rem; align-items: center; width: 100%; }
.hero-copy h1 { font-size: clamp(32px, 4.2vw, 50px); }
.hero-visual { position: relative; padding: 2.5rem 0.5rem 4.5rem 2rem; }
.hero-visual .photo { margin: 0; overflow: hidden; border-radius: 18px; background: var(--dark-2);
                      box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.hero-visual .photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-visual .main { transform: rotate(2deg); }
.hero-visual .second { position: absolute; left: -0.5rem; bottom: 0; width: 46%; border: 5px solid #fff; transform: rotate(-5deg); }
.hero-visual .chip { position: absolute; display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; border-radius: 14px;
                     background: #fff; color: var(--fg); font-size: 13px; line-height: 1.35; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6); }
.hero-visual .chip strong { display: block; color: var(--heading); font-size: 14px; }
.hero-visual .chip small { display: block; color: var(--muted); font-size: 12.5px; }
.hero-visual .quote { top: 0; right: -0.75rem; display: block; max-width: 230px; }
.hero-visual .quote .stars { display: block; color: var(--brand); letter-spacing: 2px; font-size: 13px; }
.hero-visual .approved { right: 0.5rem; bottom: 1.75rem; }
.hero-visual .tick { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #ecfdf3; color: #067647; }

/* Home "Welcome" photo: rounded, with an amber block offset behind it */
.framed { position: relative; margin: 1rem 1rem 1rem 0; }
.framed::before { content: ""; position: absolute; inset: 1.5rem -1.25rem -1.25rem 1.5rem; z-index: -1; border-radius: var(--radius); background: var(--grad); }
.framed img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-xl); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2.75rem 0 0; padding: 0; list-style: none; }
.stats li { padding: 1rem 1.25rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
            background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stats strong { display: block; white-space: nowrap; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.15; letter-spacing: -0.02em;
                background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 14px; color: rgba(255, 255, 255, 0.75); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 3rem; align-items: center; }
.cols img, .media-text img { border-radius: var(--radius); }
.list { list-style: none; padding: 0; }
.list a { text-decoration: none; }

/* Cards: an amber rule draws across the top on hover */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 1.75rem; margin-bottom: 1.25rem; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.card::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
                background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.grid .card { margin: 0; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: #f3d39b; }
.card:hover::before { transform: scaleX(1); }
.card > img:first-child { box-sizing: content-box; width: 32px; height: 32px; padding: 12px; border-radius: 12px; background: var(--brand-tint); }
.card h3 { margin: 1rem 0 0.4rem; font-size: 19px; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: var(--brand-tint); color: var(--brand-ink);
       transition: background 0.3s, color 0.3s, transform 0.4s var(--ease), box-shadow 0.3s; }
.ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .ico { background: var(--grad); color: var(--dark); transform: rotate(-5deg) scale(1.06); box-shadow: 0 12px 24px -10px rgba(240, 160, 32, 0.8); }

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.gallery figure { margin: 0; position: relative; }
.gallery figure > a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery figure > a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 23, 41, 0.6));
                             opacity: 0; transition: opacity 0.35s; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:hover > a::after { opacity: 1; }
.gallery figcaption { padding: 0.7rem 0.1rem 0; font-weight: 600; color: var(--heading); }
.gallery figcaption::after { content: " →"; display: inline-block; color: var(--brand-ink); opacity: 0; transform: translateX(-6px);
                             transition: opacity 0.3s, transform 0.3s var(--ease); }
.gallery figure:hover figcaption::after { opacity: 1; transform: none; }

.media-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin: 2.5rem 0; }
.media-text img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.media-text:hover img { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.media-text h4 { font-size: 24px; }
.media-text a { font-weight: 600; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; align-items: start; }
.team > div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: var(--shadow);
              text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.team > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.team img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 4px solid #fff;
            box-shadow: 0 0 0 3px var(--brand), 0 14px 28px -12px rgba(15, 23, 42, 0.45); }
.team h4 { margin: 1rem 0 0; }
.team p { margin: 0.2rem 0; color: var(--muted); font-size: 15px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.review { margin: 0; padding: 1.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
          position: relative; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.review::before { content: "★★★★★"; display: block; color: var(--brand); letter-spacing: 2px; margin-bottom: 0.5rem; }
.review::after { content: "”"; position: absolute; top: -1.4rem; right: 0.9rem; font: 800 120px/1 Georgia, serif; pointer-events: none;
                 background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.22; }
.review h3 { margin-top: 0; font-size: 17px; }
.review p { font-size: 15px; }
.review cite { display: block; margin-top: 0.75rem; font-style: normal; font-weight: 600; color: var(--heading); }
.review cite::before { content: "— "; color: var(--brand); }

/* Call to action */
.cta { position: relative; isolation: isolate; overflow: hidden; margin: 4rem 0 0; padding: clamp(2.5rem, 6vw, 4rem); border-radius: 22px;
       text-align: center; color: #fff;
       background: radial-gradient(640px 280px at 50% 125%, rgba(240, 160, 32, 0.42), transparent 70%), linear-gradient(160deg, var(--dark-2), var(--dark)); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blueprint);
               -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%); }
.cta h2 { color: #fff; margin: 0 0 0.5rem; }
.cta p { color: rgba(255, 255, 255, 0.78); margin: 0 auto; max-width: 36em; }
.cta .button.ghost { color: #fff; }

footer { position: relative; isolation: isolate; overflow: hidden; color: #9aa6b8; text-align: center; padding: 2.75rem 1.25rem; font-size: 15px;
         background: linear-gradient(160deg, var(--dark-2), var(--dark)); }
footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blueprint);
                -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); }
footer p { margin: 0.35rem 0; }
footer a { color: #e6e8eb; text-decoration: none; }
footer a:hover { color: var(--brand); }

/* Privacy notice: one readable column of text */
.legal { max-width: 46em; }
.legal h2 { font-size: 26px; margin: 2.25rem 0 0.5rem; }
.legal li { margin: 0.5rem 0; }
.legal .muted { color: var(--muted); }
.legal mark { padding: 0 0.25em; border: 1px dashed #f79009; border-radius: 4px; background: #fffaeb; color: #93370d; }

/* Pricing cards */
.price > img:first-child { width: 100%; height: 160px; padding: 0; box-sizing: border-box; object-fit: contain; background: var(--soft); }
.price p { margin-top: 0.75rem; font-size: 15px; }
.price strong { font-size: 28px; color: var(--heading); letter-spacing: -0.02em; }

/* Motion. Load: the home hero's lines rise in one after another; photo bands drift.
   Scroll: blocks rise in as they enter the viewport (scroll-driven; elsewhere they simply show). */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page-head-copy > * { animation: rise 0.8s var(--ease) both; }
  .page-head-copy > :nth-child(2) { animation-delay: 0.08s; }
  .page-head-copy > :nth-child(3) { animation-delay: 0.16s; }
  .contact-card { animation: pop 0.6s 0.25s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .hero-copy > :nth-child(n+6) { animation-delay: 0.4s; }
  .hero-visual .main { animation: rise 0.9s 0.2s var(--ease) both; }
  .hero-visual .second { animation: rise 0.9s 0.45s var(--ease) both; }
  .hero-visual .quote { animation: pop 0.6s 0.9s var(--ease) both, bob 7s 1.5s ease-in-out infinite; }
  .hero-visual .approved { animation: pop 0.6s 1.2s var(--ease) both, bob 8s 1.8s ease-in-out infinite reverse; }
  .band::before { animation: drift 30s ease-in-out infinite alternate; }
  @supports (animation-timeline: view()) {
    :is(.card, .gallery figure, .review, .team > div, .media-text, main > section > .cols > *, section > h2:first-child, .cta) {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(36px) scale(0.98); } }
@keyframes drift { to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.95); } }
@keyframes bob { 50% { transform: translateY(-7px); } }

@media (max-width: 960px) {
  .hero-grid, .page-head > div { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .contact-card { width: auto; max-width: 420px; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 860px) {
  #nav { flex-wrap: wrap; padding-bottom: 0; }
  #nav .brand img { height: 38px; }
  /* Nav scrolls sideways on small screens instead of wrapping into rows. */
  #nav nav { flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -1.25rem; padding: 0 1.25rem 0.5rem; }
  #nav nav::-webkit-scrollbar { display: none; }
  .media-text { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 520px) {
  .hero-visual { padding: 1.5rem 0 3.5rem 0.75rem; }
  .hero-visual .approved { display: none; }
  .hero-visual .quote { right: -0.25rem; max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
