/* =========================================================================
   Dark Ridge Marketing — design system
   Monochrome palette, condensed display type (matches the logo wordmark),
   tracked labels (matches the logo's "Marketing" line), clean body sans.
   ========================================================================= */

:root {
  /* Brand palette: charcoal, burnt orange, warm white */
  --black: #0B0A09;           /* near-black, slightly warm: hero, alternating sections */
  --charcoal: #111111;        /* main background */
  --dark: #1A1714;            /* very dark warm grey: raised surfaces, hovers */
  --mid: #777777;             /* slate grey: labels, subdued borders */
  --off: #F4F0E9;             /* warm white / ivory */
  --white: #F4F0E9;           /* primary text (warm white; name kept for existing rules) */

  --accent: #D97736;          /* burnt orange: primary actions, key details (5.9:1 on charcoal) */
  --accent-hi: #E88D52;       /* lighter orange: hover */
  --accent-deep: #A85B32;     /* copper: subtle secondary accents only, never small text */
  --accent-soft: rgba(217, 119, 54, 0.12);
  --on-accent: #111111;       /* text on orange */

  /* Derived tones */
  --soft: #ABA49B;            /* secondary body text, warm grey: passes AA on all darks */
  --line: rgba(244, 240, 233, 0.11);
  --line-strong: rgba(244, 240, 233, 0.26);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-label: "Poppins", "Segoe UI", system-ui, sans-serif;

  --fs-hero: clamp(3.1rem, 9.2vw, 9rem);
  --fs-h1: clamp(2.9rem, 7.4vw, 7rem);
  --fs-h2: clamp(2.3rem, 5.2vw, 4.8rem);
  --fs-h3: clamp(1.35rem, 1.9vw, 1.7rem);
  --fs-lead: clamp(1.08rem, 1.45vw, 1.3rem);

  /* Layout */
  --max: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(96px, 12vw, 176px);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--black); padding: 12px 18px;
  font-family: var(--font-label); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Page transitions (supported browsers only) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(72px, 9vw, 120px); }
.bg-black { background: var(--black); }
.bg-charcoal { background: radial-gradient(50% 45% at 100% 0%, rgba(217, 119, 54, .055), transparent 70%), linear-gradient(180deg, #151311, var(--charcoal) 45%); }
.bg-dark { background: var(--dark); }
.bg-off { background: var(--off); color: var(--black); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-label); font-weight: 500; font-size: .72rem;
  letter-spacing: .34em; text-transform: uppercase; color: var(--soft);
}
/* Tapered rule, echoing the lines either side of "Marketing" in the logo */
.eyebrow::before {
  content: ""; width: 36px; height: 2px; flex: none;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent));
  clip-path: polygon(0 50%, 12% 0, 100% 0, 100% 100%, 12% 100%);
}
.bg-off .eyebrow { color: #555; }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: .02em; }
.lead { font-size: var(--fs-lead); color: var(--soft); line-height: 1.6; max-width: 58ch; }
.muted { color: var(--soft); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}
@supports not (-webkit-text-stroke: 1px white) { .outline-text { color: var(--white); } }
.prose { display: grid; gap: 1.2em; max-width: 62ch; color: var(--soft); }
.prose strong { color: var(--white); font-weight: 500; }

/* ---------- Buttons & links ---------- */
/* Primary: solid burnt orange. Secondary (--ghost): dark with a fine border.
   --outline: dark with a fine orange border, for the secondary action beside a primary. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 30px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font-family: var(--font-label); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); box-shadow: 0 10px 30px -12px rgba(217, 119, 54, .55); }
.btn:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.btn:active { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--white); box-shadow: none; }
.btn--outline { background: rgba(11, 10, 9, .35); color: var(--white); border-color: rgba(217, 119, 54, .75); }
.btn--outline:hover { background: var(--accent-soft); border-color: var(--accent-hi); color: var(--white); box-shadow: none; }
.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark:hover { background: var(--dark); border-color: var(--dark); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .7rem; }
.btn .arrow { width: 18px; height: 10px; flex: none; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
button.btn { font-family: var(--font-label); }
.btn[disabled] { opacity: .55; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-label); font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
  padding-bottom: 6px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s var(--ease);
}
.link-arrow .arrow { color: var(--accent); }
.link-arrow:hover { color: var(--off); }
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1px; }
.link-arrow .arrow { width: 18px; height: 10px; transition: transform .45s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(17, 17, 17, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
  border-bottom-color: var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { width: 62px; height: auto; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: .05em; }
.brand-sub {
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font-family: var(--font-label); font-size: .54rem; letter-spacing: .42em; text-transform: uppercase; color: var(--soft);
}

.primary-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
.nav-list { display: flex; gap: clamp(20px, 2.6vw, 38px); list-style: none; }
.nav-list a {
  position: relative; text-decoration: none; padding: 8px 0;
  font-family: var(--font-label); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--soft);
  transition: color .3s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none; width: 48px; height: 48px; position: relative; z-index: 60;
  background: transparent; border: 1px solid var(--line-strong); color: var(--white); cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.menu-toggle:hover, .menu-open .menu-toggle { border-color: var(--accent); color: var(--accent-hi); }
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--black);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; display: grid; gap: 4px; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a.m-link {
  display: block; text-decoration: none; padding: 6px 0;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 11vw, 3.6rem); text-transform: uppercase; line-height: 1.05;
  transform: translateY(100%); transition: transform .6s var(--ease), color .3s;
  color: var(--white);
}
.mobile-menu a.m-link[aria-current="page"] { color: var(--accent); }
.mobile-menu a.m-link:hover { color: var(--accent-hi); }
.menu-open .mobile-menu a.m-link { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .04s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .08s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .12s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu-foot { display: grid; gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); margin-top: 32px; }
.mobile-menu-foot .btn { width: 100%; }
.mobile-menu .socials { display: flex; }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .primary-nav .nav-list { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 560px) {
  .primary-nav .btn { display: none; }
  .brand img { width: 52px; }
  .brand-name { font-size: 1.15rem; }
}
@media (min-width: 1181px) { .mobile-menu { display: none; } }

/* ---------- Atmosphere layers (hero, page hero, CTA) ---------- */
/* Low, warm light behind the ridgeline (restrained), over the near-black sky */
.atmos {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(50% 34% at 72% 66%, rgba(217, 119, 54, .15), rgba(168, 91, 50, .05) 45%, transparent 72%),
    radial-gradient(90% 60% at 20% 100%, rgba(26, 23, 20, .9), transparent 70%),
    var(--black);
}
.atmos-mist {
  position: absolute; inset: -8% -4%; z-index: -3;
  background: url("../img/mist.jpg") center / cover no-repeat;
  opacity: .26; filter: grayscale(1) contrast(1.25) brightness(.8) sepia(.08);
  mix-blend-mode: screen;
  animation: mist-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes mist-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-2%, 1.5%, 0); }
}
.atmos-ridges { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; z-index: -2; pointer-events: none; }
.atmos::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 70% 30%, transparent 0%, rgba(11,10,9,.38) 70%),
    linear-gradient(180deg, rgba(11,10,9,.86) 0%, rgba(11,10,9,0) 28%),
    linear-gradient(90deg, rgba(11,10,9,.55) 0%, rgba(11,10,9,0) 55%); /* keeps left-aligned text readable */
}
/* film grain to keep flat greys from banding */
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Home hero ---------- */
.hero { min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; }
.hero .atmos-ridges { height: 62%; }
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-title { font-size: var(--fs-hero); font-weight: 600; line-height: .92; letter-spacing: .002em; }
.hero-title .line { display: block; }
.hero-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end;
}
.hero-title { text-shadow: 0 2px 40px rgba(11, 10, 9, .55); }
.accent-word { color: var(--accent); }
.hero .eyebrow { color: #D3CDC4; }
.hero-bottom .lead { color: #D9D3CA; max-width: 42ch; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Strategy / Design / Marketing / Development: four linked service areas */
.hero-strip { position: relative; z-index: 2; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 10, 9, .35), rgba(11, 10, 9, .8)); }
.hero-areas { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-areas li + li { border-left: 1px solid var(--line); }
.hero-areas a {
  position: relative; display: grid; gap: 6px; align-content: start; height: 100%;
  padding: 22px 22px 24px; text-decoration: none; color: var(--white);
  transition: background-color .4s var(--ease);
}
.hero-areas li:first-child a { padding-left: 0; }
.hero-areas a::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.hero-areas a:hover::before, .hero-areas a:focus-visible::before { transform: scaleX(1); }
.hero-areas a:hover { background: var(--accent-soft); }
.hero-areas li:first-child a:hover { background: transparent; }
.hero-areas .num { font-family: var(--font-label); font-size: .66rem; font-weight: 500; letter-spacing: .24em; color: var(--accent); }
.hero-areas .area { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.hero-areas .desc { font-size: .86rem; color: var(--soft); line-height: 1.45; }
@media (max-width: 900px) {
  .hero-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-areas li:nth-child(3) { border-left: 0; }
  .hero-areas li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-areas li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 480px) {
  .hero-areas a { padding: 16px 12px 18px; }
  .hero-areas li:nth-child(odd) a { padding-left: 0; }
  .hero-areas .desc { display: none; }
  .hero-areas .area { font-size: 1.1rem; }
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue i { display: block; width: 1px; height: 28px; background: linear-gradient(var(--white), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) {
  .hero-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero .atmos-ridges { height: 46%; }
  .page-hero .atmos-ridges, .cta .atmos-ridges { height: 44%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Inner page hero ---------- */
.page-hero { min-height: max(560px, 78svh); display: flex; align-items: flex-end; }
.page-hero .atmos-ridges { height: 58%; }
.page-hero-inner { width: 100%; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(56px, 8vw, 104px); display: grid; gap: 28px; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 14ch; }
.page-hero .lead { color: #D3CDC4; }
.crumbs { display: flex; gap: 12px; list-style: none; font-family: var(--font-label); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: "/"; margin-right: 12px; color: var(--mid); }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .titles { display: grid; gap: 22px; }
@media (max-width: 900px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Intro (home) ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(48px, 8vw, 128px); }
.intro-grid .h2 { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.intro-body { display: grid; gap: 48px; }
.intro-body .prose { font-size: 1.12rem; }
.pillars { list-style: none; border-top: 1px solid var(--line); }
.pillars li {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.pillars b { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; }
.pillars span { color: var(--soft); font-size: .98rem; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-grid .h2 { position: static; }
}
@media (max-width: 520px) { .pillars li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 26px;
  padding: clamp(32px, 3.2vw, 48px); min-height: 380px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background-color .6s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/mist.jpg") center / cover; opacity: 0; filter: grayscale(1) brightness(.7);
  transform: scale(1.12); transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.service-card:hover::before, .service-card:focus-visible::before { opacity: .22; transform: scale(1); }
.service-card:hover, .service-card:focus-visible { background: var(--dark); }
.service-icon { width: 46px; height: 46px; color: var(--accent); transition: transform .6s var(--ease); }
.service-card:hover .service-icon { transform: translateY(-4px); }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service-card:hover::after, .service-card:focus-visible::after { transform: scaleX(1); }
.service-card .body { display: grid; gap: 14px; align-content: start; }
.service-card h3 { font-size: clamp(1.6rem, 2.2vw, 2.05rem); font-weight: 500; line-height: 1.02; }
.service-card p { color: var(--soft); font-size: .98rem; }
.service-card .link-arrow { justify-self: start; }
.service-card:hover .link-arrow { background-size: 100% 1px; }
.service-card:hover .link-arrow .arrow { transform: translateX(4px); }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; }
}

/* ---------- Why Dark Ridge ---------- */
.why { overflow: hidden; }
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px clamp(48px, 7vw, 112px); position: relative; z-index: 1; }
.why-intro { display: grid; gap: 28px; align-content: start; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.why-list { list-style: none; border-top: 1px solid var(--line); counter-reset: why; }
.why-list li {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px 40px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease);
}
.why-list li { position: relative; }
.why-list li::before { content: ""; position: absolute; left: 0; top: 30px; width: 2px; height: 0; background: var(--accent); transition: height .5s var(--ease); }
.why-list li:hover::before { height: calc(100% - 60px); }
.why-list li:hover { padding-left: 18px; }
.why-list h3 { font-size: 1.45rem; font-weight: 500; line-height: 1.1; }
.why-list p { color: var(--soft); }
.why-ridge { position: absolute; right: -6%; bottom: -2px; width: 70%; height: auto; aspect-ratio: 3 / 1; opacity: .5; z-index: 0; pointer-events: none; }
@media (max-width: 960px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-intro { position: static; }
}
@media (max-width: 560px) { .why-list li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Work / portfolio ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 22px; border: 1px solid var(--line-strong); background: var(--charcoal);
  font-size: .95rem; color: #D6D0C7; max-width: 760px;
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }

.work-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.work-feature .project:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.work-feature .project:nth-child(2), .work-feature .project:nth-child(3) { grid-column: span 5; }
.work-feature .project:nth-child(1) .visual { aspect-ratio: auto; height: 100%; min-height: 420px; }
@media (max-width: 900px) {
  .work-feature { grid-template-columns: minmax(0, 1fr); }
  .work-feature .project:nth-child(n) { grid-column: auto; grid-row: auto; }
  .work-feature .project:nth-child(1) .visual { aspect-ratio: 4 / 3; min-height: 0; height: auto; }
}
.work-feature .project:nth-child(1) { display: grid; grid-template-rows: 1fr auto; }

.project { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.project-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 16px; }
.project-caption .meta { flex: 1 1 220px; }
.project h3 { overflow-wrap: anywhere; }
.project-caption .meta { display: grid; gap: 8px; min-width: 0; }
.project-cat { font-family: var(--font-label); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 500; line-height: 1.05; }
.tag-demo {
  flex: none; font-family: var(--font-label); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line-strong); color: var(--soft); white-space: nowrap;
}
.project .visual { transition: transform .9s var(--ease); }
.project .visual-inner { transition: transform 1.2s var(--ease); }
.project:hover .visual-inner, .project:focus-visible .visual-inner { transform: scale(1.035); }
.project .view {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--ease);
}
.project .view svg { width: 20px; height: 12px; }
.project:hover .view, .project:focus-visible .view { transform: scale(1); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 5vw, 56px); }
.filter-btn {
  min-height: 44px; padding: 0 20px; background: transparent; color: var(--soft); border: 1px solid var(--line);
  font-family: var(--font-label); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  transition: color .3s, border-color .3s, background-color .3s;
}
.filter-btn:hover { color: var(--white); border-color: var(--line-strong); }
.filter-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.filter-btn .count { opacity: .55; margin-left: 6px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(20px, 2.6vw, 36px); }
.work-grid .project:nth-child(4n+1) .visual, .work-grid .project:nth-child(4n+4) .visual { aspect-ratio: 5 / 4; }
.work-grid .project.is-filtered-out { display: none; }
.work-grid .project.is-entering { animation: card-in .7s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .work-grid { grid-template-columns: minmax(0, 1fr); } .work-grid .project:nth-child(n) .visual { aspect-ratio: 4 / 3; } }

/* ---------- Visual stage & device mockups ---------- */
.visual {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--charcoal);
  border: 1px solid var(--line);
}
.visual-inner { position: absolute; inset: 0; display: grid; place-items: center; }
.visual--mist .visual-inner::before {
  content: ""; position: absolute; inset: 0; background: url("../img/mist.jpg") center / cover; opacity: .28; filter: grayscale(1);
}
.visual--light { background: #E9E9E9; }
.visual--mid { background: #2A2A2A; }

.device { position: relative; }
.device .screen { position: relative; overflow: hidden; container-type: inline-size; background: var(--off); }
.laptop { width: 78%; }
.laptop .lid { background: #1E1E1E; border: 1px solid #333; border-bottom: 0; border-radius: 10px 10px 0 0; padding: 2.2% 2.2% 2.6%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 2px; }
.laptop .base { position: relative; height: 0; padding-bottom: 3.2%; margin-inline: -7%; background: linear-gradient(#3A3A3A, #1A1A1A); border-radius: 0 0 14px 14px; }
.laptop .base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 35%; background: #111; border-radius: 0 0 6px 6px; }
.tablet { width: 34%; background: #161616; border: 1px solid #333; border-radius: 16px; padding: 3.2%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85); }
.tablet .screen { aspect-ratio: 3 / 4; border-radius: 4px; }
.phone { width: 22%; background: #161616; border: 1px solid #333; border-radius: 22px; padding: 3%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85); }
.phone .screen { aspect-ratio: 9 / 19.5; border-radius: 14px; }
.phone .screen::before { content: ""; position: absolute; top: 2%; left: 50%; width: 30%; height: 2.6%; transform: translateX(-50%); background: #111; border-radius: 99px; z-index: 3; }

.device-trio { position: relative; width: 100%; height: 100%; }
.device-trio .laptop { position: absolute; left: 6%; top: 14%; width: 70%; }
.device-trio .tablet { position: absolute; right: 7%; top: 22%; width: 26%; }
.device-trio .phone { position: absolute; left: 60%; bottom: 8%; width: 13%; }

/* ---------- Mini website (inside device screens; sized in container units) ---------- */
.ms { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: var(--font-body); font-size: 1.6cqw; color: var(--black); background: var(--off); overflow: hidden; }
.ms--dark { background: #0B0B0B; color: var(--white); }
.ms-nav { display: flex; justify-content: space-between; align-items: center; padding: 3.2cqw 5cqw; }
.ms-logo { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; font-size: 2.2cqw; text-transform: uppercase; white-space: nowrap; }
.ms-links { display: flex; gap: 3cqw; }
.ms-links i { display: block; width: 6cqw; height: .5cqw; background: currentColor; opacity: .35; }
.ms-burger { display: none; width: 6cqw; height: 3.4cqw; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.ms-hero { position: relative; flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4cqw; padding: 2cqw 5cqw 4cqw; align-items: end; }
.ms-h { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 6.2cqw; line-height: .95; letter-spacing: .01em; }
.ms-sub { display: grid; gap: 1.1cqw; margin-top: 2.4cqw; }
.ms-sub i { display: block; height: .7cqw; background: currentColor; opacity: .25; }
.ms-sub i:nth-child(2) { width: 80%; }
.ms-btn { display: inline-block; margin-top: 3cqw; padding: 1.4cqw 3cqw; background: currentColor; }
.ms-btn::after { content: ""; display: block; width: 10cqw; height: .7cqw; background: var(--off); }
.ms--dark .ms-btn::after { background: #0B0B0B; }
.ms-img { position: relative; height: 100%; min-height: 20cqw; background: #8A8A8A; overflow: hidden; }
.ms-img--facade { background: repeating-linear-gradient(90deg, #6F6F6F 0 7%, #9A9A9A 7% 8%, #858585 8% 15%, #B9B9B9 15% 15.6%), #777; }
.ms-img--facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.55), transparent 55%, rgba(0,0,0,.45)); }
.ms-img--mist { background: url("../img/mist.jpg") 30% 40% / cover; filter: contrast(1.2); }
.ms-img--ridge { background: linear-gradient(180deg, #D6D0C7, #8C8C8C); }
.ms-img--ridge::after { content: ""; position: absolute; inset: 35% 0 0; background: #2B2B2B; clip-path: polygon(0 70%, 14% 38%, 22% 52%, 38% 8%, 50% 40%, 60% 26%, 74% 58%, 86% 34%, 100% 60%, 100% 100%, 0 100%); }
.ms-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 0 5cqw 4cqw; }
.ms-row .ms-img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 0 5cqw 4cqw; }
.ms-cards div { border: 1px solid currentColor; opacity: .5; aspect-ratio: 5 / 3; padding: 2cqw; display: grid; align-content: end; gap: 1cqw; }
.ms-cards div::before { content: ""; width: 40%; height: .8cqw; background: currentColor; }
.ms-cards div::after { content: ""; width: 70%; height: .6cqw; background: currentColor; opacity: .6; }

/* Phone and tablet screens get the stacked, mobile version of the mini site */
:is(.phone, .tablet) .ms { font-size: 4.2cqw; }
:is(.phone, .tablet) .ms-nav { padding: 12cqw 7cqw 5cqw; }
.tablet .ms-nav { padding-top: 6cqw; }
:is(.phone, .tablet) .ms-logo { font-size: 5cqw; }
:is(.phone, .tablet) .ms-links { display: none; }
:is(.phone, .tablet) .ms-burger { display: block; }
:is(.phone, .tablet) .ms-hero { grid-template-columns: 1fr; padding: 2cqw 7cqw 6cqw; gap: 7cqw; align-items: start; align-content: start; }
:is(.phone, .tablet) .ms-hero .ms-img { order: -1; min-height: 0; aspect-ratio: 4 / 3.4; height: auto; }
:is(.phone, .tablet) .ms-h { font-size: 13cqw; }
.tablet .ms-h { font-size: 10cqw; }
:is(.phone, .tablet) .ms-sub { gap: 2.4cqw; margin-top: 5cqw; }
:is(.phone, .tablet) .ms-sub i { height: 1.6cqw; }
:is(.phone, .tablet) .ms-btn { padding: 3.2cqw 6cqw; margin-top: 6cqw; }
:is(.phone, .tablet) .ms-btn::after { width: 22cqw; height: 1.6cqw; }
:is(.phone, .tablet) :is(.ms-row, .ms-cards) { grid-template-columns: 1fr 1fr; padding: 0 7cqw 7cqw; gap: 4cqw; }
:is(.phone, .tablet) :is(.ms-row .ms-img:nth-child(3), .ms-cards div:nth-child(3)) { display: none; }

/* Brand board */
/* .board is the size container: sizes on the tiles themselves are in board units; text inside a tile is in tile units */
.board { position: absolute; inset: 7%; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3%; container-type: inline-size; }
.board > * { position: relative; overflow: hidden; }
.board > .b-main, .board > .b-card { container-type: inline-size; }
.board .b-main { grid-row: span 2; background: var(--off); color: var(--black); display: grid; place-items: center; align-content: center; gap: 2.4cqw; }
.board .b-mark { width: 34cqw; aspect-ratio: 1; border-radius: 50%; border: 1.2cqw solid currentColor; position: relative; }
.board .b-mark::after { content: ""; position: absolute; inset: 26% 18% 30%; background: currentColor; clip-path: polygon(0 100%, 32% 30%, 48% 62%, 66% 0, 100% 100%); }
.board .b-word { font-family: var(--font-display); font-weight: 600; font-size: 11cqw; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.board .b-tag { font-family: var(--font-label); font-size: 3.6cqw; letter-spacing: .5em; text-transform: uppercase; color: #555; }
.board .sw { display: grid; align-content: end; padding: 2.3cqw; font-family: var(--font-label); font-size: 1.9cqw; letter-spacing: .1em; }
.board .sw-1 { background: #1B1B1B; color: var(--off); }
.board .sw-2 { background: #8A8A8A; color: var(--black); }
.board .b-type { background: var(--black); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 11.5cqw; font-weight: 500; line-height: 1; }
.board .b-card { background: #2A2A2A; display: grid; place-items: center; }
.board .b-card div { width: 72%; aspect-ratio: 1.75; background: var(--off); color: var(--black); transform: rotate(-8deg); box-shadow: 0 12px 30px rgba(0,0,0,.5); display: grid; align-content: end; padding: 6cqw; font-family: var(--font-display); font-size: 6cqw; letter-spacing: .14em; text-transform: uppercase; }

/* Social / ad set */
.adset { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4%; padding: 0 8%; }
.adset .phone { width: 62%; justify-self: end; }
.ads-col { display: grid; gap: 8%; container-type: inline-size; }
.ad-card { background: var(--off); color: var(--black); padding: 6cqw; display: grid; gap: 3cqw; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.ad-card .ad-label { font-family: var(--font-label); font-size: 4.2cqw; letter-spacing: .18em; text-transform: uppercase; color: #666; }
.ad-card .ad-title { font-family: var(--font-display); font-size: 8.4cqw; line-height: 1.02; text-transform: uppercase; font-weight: 600; }
.ad-card i { display: block; height: 1.6cqw; background: #BDBDBD; }
.ad-card i + i { width: 70%; }
.social { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0B0B0B; color: var(--white); font-size: 4cqw; }
.social-top { display: flex; align-items: center; gap: 3cqw; padding: 13cqw 5cqw 4cqw; }
.social-top b { width: 9cqw; aspect-ratio: 1; border-radius: 50%; background: var(--off); }
.social-top span { font-family: var(--font-label); font-size: 4cqw; letter-spacing: .06em; }
.social-img { aspect-ratio: 4 / 5; background: url("../img/mist.jpg") 65% 50% / cover; position: relative; display: grid; align-content: end; padding: 6cqw; filter: contrast(1.15); }
.social-img strong { font-family: var(--font-display); font-weight: 600; font-size: 10cqw; line-height: .95; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.social-actions { display: flex; gap: 4cqw; padding: 4cqw 5cqw; }
.social-actions i { width: 6cqw; height: 6cqw; border: 1.5px solid currentColor; border-radius: 50%; }
.social-lines { display: grid; gap: 2cqw; padding: 0 5cqw; }
.social-lines i { height: 1.6cqw; background: #555; }
.social-lines i:last-child { width: 60%; }

/* Content grid (creative) */
.tiles { position: absolute; inset: 7%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2.4%; }
.tile { position: relative; overflow: hidden; background: url("../img/mist.jpg") center / 260% no-repeat; filter: grayscale(1) contrast(1.25); container-type: inline-size; }
.tile:nth-child(1) { background-position: 10% 20%; grid-row: span 2; background-size: 420%; }
.tile:nth-child(2) { background-position: 80% 30%; }
.tile:nth-child(3) { background-position: 40% 90%; filter: grayscale(1) contrast(1.5) brightness(.7); }
.tile:nth-child(4) { background: #E4E4E4; filter: none; display: grid; place-items: center; }
.tile:nth-child(5) { background-position: 60% 60%; filter: grayscale(1) brightness(.55); }
.tile .t-label { position: absolute; left: 7cqw; bottom: 6cqw; font-family: var(--font-label); font-size: 6cqw; letter-spacing: .22em; text-transform: uppercase; color: var(--white); }
.tile .t-play { position: absolute; left: 50%; top: 50%; width: 22cqw; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.5px solid var(--white); border-radius: 50%; }
.tile .t-play::after { content: ""; position: absolute; left: 40%; top: 32%; border-left: 7cqw solid var(--white); border-top: 4.5cqw solid transparent; border-bottom: 4.5cqw solid transparent; }
.tile .t-word { font-family: var(--font-display); font-size: 16cqw; font-weight: 600; letter-spacing: .08em; color: var(--black); text-transform: uppercase; line-height: .95; text-align: center; }

/* Label (wine) */
/* .label-stage is the size container; all sizes below are in stage units */
.label-stage { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 6%; padding: 0 12%; container-type: inline-size; }
.bottle-label {
  aspect-ratio: 3 / 4.2; background: var(--off); color: var(--black);
  display: grid; grid-template-rows: auto 1fr auto; padding: 3.5cqw 3.2cqw; text-align: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.bottle-label .bl-top { font-family: var(--font-label); font-size: 1.5cqw; letter-spacing: .42em; text-transform: uppercase; color: #555; }
.bottle-label .bl-ridge { align-self: center; height: 10.5cqw; background: #1B1B1B; clip-path: polygon(0 100%, 18% 55%, 28% 70%, 46% 10%, 58% 48%, 70% 30%, 86% 66%, 100% 100%); }
.bottle-label .bl-name { font-family: var(--font-display); font-size: 4.4cqw; font-weight: 600; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.bottle-label .bl-sub { font-family: var(--font-label); font-size: 1.3cqw; letter-spacing: .3em; text-transform: uppercase; margin-top: 1cqw; color: #555; }
.label-notes { display: grid; gap: 2cqw; }
.label-notes .ln-word { font-family: var(--font-display); font-size: 5.4cqw; font-weight: 600; line-height: .9; text-transform: uppercase; color: var(--white); }
.label-notes i { display: block; height: .8cqw; background: #4A4A4A; }
.label-notes i:nth-of-type(2) { width: 80%; }
.label-notes i:nth-of-type(3) { width: 55%; }
.label-notes .ln-pattern { height: 7.7cqw; background: repeating-linear-gradient(135deg, #3A3A3A 0 2px, transparent 2px 12px); border: 1px solid #3A3A3A; }

/* ---------- CTA band ---------- */
.cta { padding-block: clamp(120px, 16vw, 220px) clamp(96px, 12vw, 160px); }
.cta .atmos-ridges { height: 70%; }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: end; }
.cta h2 { font-size: clamp(2.8rem, 7.6vw, 7.4rem); max-width: 13ch; }
.cta .lead { color: #D6D0C7; margin-top: 24px; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-top: clamp(72px, 9vw, 120px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.footer-brand { display: grid; gap: 28px; align-content: start; max-width: 360px; }
.footer-brand img { width: 190px; height: auto; }
.footer-brand p { color: var(--soft); font-size: .95rem; }
.footer-col h2 { font-family: var(--font-label); font-weight: 500; font-size: .68rem; letter-spacing: .3em; color: var(--mid); margin-bottom: 22px; line-height: 1.4; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { overflow-wrap: break-word; text-decoration: none; color: #DCD6CD; font-size: .95rem; transition: color .3s; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; display: grid; gap: 12px; color: #DCD6CD; font-size: .95rem; }
.socials { display: flex; gap: 10px; list-style: none; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.socials a:hover, .socials a:focus-visible { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-mark { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-word {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; line-height: .8;
  font-size: clamp(4rem, 17.5vw, 17rem); letter-spacing: .02em; color: var(--charcoal);
  -webkit-text-stroke: 1px #2A2622; text-align: center; padding-top: .12em; user-select: none; white-space: nowrap;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 26px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--mid); }
.footer-bottom a { color: var(--soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(48px, 8vw, 128px); }
.split--60 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 900px) { .split, .split--60 { grid-template-columns: minmax(0, 1fr); } }
.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.belief { padding: clamp(32px, 4vw, 56px) clamp(0px, 3vw, 48px) clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.belief:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); }
.belief h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 500; line-height: 1.02; }
.belief p { color: var(--soft); max-width: 46ch; }
@media (max-width: 760px) {
  .beliefs { grid-template-columns: minmax(0, 1fr); }
  .belief:nth-child(even) { padding-left: 0; border-left: 0; }
}
.panorama { min-height: clamp(520px, 80vh, 820px); display: grid; align-items: center; }
.panorama .atmos-ridges { height: 72%; }
.panorama-inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 36px; padding-block: 120px; }
.panorama-inner img { width: min(340px, 64vw); height: auto; opacity: .95; }
.panorama blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.05; max-width: 20ch; text-wrap: balance; }
.approach-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.approach-list li { display: grid; gap: 14px; align-content: start; padding-top: 26px; border-top: 1px solid var(--line-strong); counter-increment: step; }
.approach-list li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-label); font-size: .7rem; letter-spacing: .3em; color: var(--accent); }
.approach-list h3 { font-size: 1.6rem; font-weight: 500; }
.approach-list p { color: var(--soft); font-size: .98rem; }
@media (max-width: 960px) { .approach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 540px) { .approach-list { grid-template-columns: minmax(0, 1fr); } }

.statement { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1.04; max-width: 22ch; text-wrap: balance; }
.statement .dim { color: var(--accent); }

/* ---------- Founder ---------- */
.founder-head { display: grid; gap: 22px; align-content: start; }
.founder-sub { font-family: var(--font-label); font-size: .76rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.facts { display: grid; margin: 10px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-label); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mid); padding-top: 4px; }
.facts dd { margin: 0; color: #DED8CF; overflow-wrap: break-word; }
.facts a { color: var(--white); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.facts a:hover { color: var(--accent-hi); }
.signoff { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--white); line-height: 1.2; }
.signoff::before { content: ""; width: 36px; height: 2px; flex: none; background: var(--accent); }
.signoff small { display: block; margin-top: 4px; font-family: var(--font-label); font-size: .66rem; font-weight: 400; letter-spacing: .22em; color: var(--soft); }
@media (max-width: 520px) { .facts div { grid-template-columns: minmax(0, 1fr); } }

.founder-band { border-top: 1px solid var(--line); background: radial-gradient(40% 90% at 0% 50%, rgba(217, 119, 54, .08), transparent 70%), var(--dark); }
.founder-band-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; }
.founder-badge { width: 120px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--black); }
.founder-badge img { width: 70%; height: auto; }
.founder-band h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 18px 0 14px; }
.founder-band-copy > p:not(.eyebrow) { color: var(--soft); max-width: 58ch; }
@media (max-width: 860px) { .founder-band-inner { grid-template-columns: minmax(0, 1fr); } .founder-badge { width: 84px; } }

/* ---------- Services page ---------- */
.subnav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(17,17,17,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.subnav ul { display: flex; gap: 8px; list-style: none; overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; white-space: nowrap; text-decoration: none;
  font-family: var(--font-label); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft);
  border: 1px solid transparent; transition: color .3s, border-color .3s;
}
.subnav a:hover { color: var(--white); }
.subnav a.is-active { color: var(--white); border-color: var(--accent); }

.svc { padding-block: clamp(88px, 11vw, 160px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 70px); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(48px, 8vw, 128px); }
.svc-head { display: grid; gap: 28px; align-content: start; }
.svc-head .service-icon { width: 56px; height: 56px; }
.svc-head h2 { font-size: clamp(2.4rem, 4.8vw, 4.4rem); }
.svc-head .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.svc-detail { display: grid; gap: 48px; align-content: start; }
.svc-detail h3 { font-family: var(--font-label); font-weight: 500; font-size: .7rem; letter-spacing: .3em; color: var(--mid); margin-bottom: 18px; line-height: 1.4; }
.check-list { list-style: none; display: grid; }
.check-list li { position: relative; padding: 15px 0 15px 34px; border-bottom: 1px solid var(--line); color: #DED8CF; }
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1px; background: var(--accent); }
.svc--flip .svc-grid > :first-child { order: 2; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc-grid > :first-child { order: 0; }
}

/* ---------- Website design page ---------- */
.showcase { position: relative; aspect-ratio: 16 / 8.5; max-height: 760px; width: 100%; }
.showcase-stage { background: radial-gradient(70% 80% at 50% 100%, #262626, var(--black) 70%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
@media (max-width: 700px) {
  .showcase { aspect-ratio: 4 / 4.4; }
  .showcase .device-trio .laptop { left: 2%; top: 8%; width: 92%; }
  .showcase .device-trio .tablet { right: 4%; top: auto; bottom: 6%; width: 40%; }
  .showcase .device-trio .phone { left: 8%; bottom: 4%; width: 24%; }
}
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.offer { padding: clamp(28px, 2.6vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 16px; align-content: start; transition: background-color .5s var(--ease); }
.offer:hover { background: var(--dark); }
.offer svg { width: 34px; height: 34px; color: var(--accent); }
.offer h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.08; }
.offer p { color: var(--soft); font-size: .95rem; }
@media (max-width: 1100px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offer-grid { grid-template-columns: minmax(0, 1fr); } }

.process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.process li { position: relative; padding: 0 clamp(16px, 2vw, 32px) 0 0; display: grid; gap: 18px; align-content: start; }
.process .p-step { display: flex; align-items: center; gap: 16px; }
.process .p-step span { font-family: var(--font-label); font-size: .7rem; letter-spacing: .3em; color: var(--accent); }
.process .p-step::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.process li:last-child .p-step::after { display: none; }
.process h3 { font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 600; }
.process p { color: var(--soft); font-size: .98rem; max-width: 34ch; }
.process .arrow-sep { color: var(--mid); }
@media (max-width: 900px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process li { padding: 28px 0 28px 28px; border-left: 1px solid var(--line-strong); }
  .process li::before { content: ""; position: absolute; left: -5px; top: 36px; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
  .process .p-step::after { display: none; }
}
.optional-note { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 28px; padding: 28px; border: 1px solid var(--line); background: var(--charcoal); }
.optional-note b { font-family: var(--font-label); font-weight: 500; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); padding-top: 4px; }
.optional-note p { color: #D6D0C7; }
@media (max-width: 640px) { .optional-note { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Packages / pricing ---------- */
.from-price {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  font-family: var(--font-label); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft);
}
.from-price strong { color: var(--white); font-weight: 500; }
.from-price a { color: var(--white); text-decoration-color: var(--accent); text-underline-offset: 5px; }

.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier {
  position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px;
  padding: 34px 26px 28px; background: var(--charcoal); border: 1px solid var(--line);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.bg-charcoal .tier { background: var(--black); }
.tier:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tier--rec, .tier--rec:hover { border-color: var(--accent); background: var(--dark); box-shadow: 0 30px 60px -40px rgba(217, 119, 54, .45); }
.bg-charcoal .tier--rec { background: var(--dark); }
.tier-badge {
  position: absolute; top: -1px; right: -1px; padding: 7px 12px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-label); font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.tier-name { font-family: var(--font-label); font-size: .72rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--soft); }
.tier-price { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 3.3vw, 3.1rem); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tier-price .pre { display: inline-block; vertical-align: middle; margin-right: 8px; font-family: var(--font-label); font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.tier-price small { font-family: var(--font-body); font-weight: 400; font-size: .95rem; letter-spacing: 0; color: var(--soft); margin-left: 4px; }
.tier-for { font-size: .92rem; color: #E6E0D7; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tier .desc { color: var(--soft); font-size: .96rem; }
.tier .btn { width: 100%; }
@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

.price-note { margin-top: 22px; color: var(--soft); font-size: .95rem; max-width: 74ch; }
.compare { margin-top: 28px; border-top: 1px solid var(--line); }
.compare summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-family: var(--font-label); font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 300; color: var(--accent); }
.compare[open] summary::after { content: "\2013"; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.price-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-family: var(--font-label); font-weight: 500; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); background: var(--charcoal); }
.price-table tbody th { font-weight: 500; color: #DED8CF; width: 34%; }
.price-table td { color: var(--soft); }
.price-table .rec { background: rgba(217, 119, 54, .07); color: var(--white); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.table-wrap--addons .price-table { min-width: 520px; }
.table-wrap--addons .price-table tbody th { width: 60%; }

.steps-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: st; }
.steps-row li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); counter-increment: st; }
.steps-row li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-label); font-size: .7rem; letter-spacing: .3em; color: var(--accent); }
.steps-row h3 { font-size: 1.4rem; font-weight: 500; }
.steps-row p { color: var(--soft); font-size: .96rem; }
@media (max-width: 960px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 540px) { .steps-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Case study ---------- */
.cs-visual { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .cs-visual { aspect-ratio: 4 / 3; } }
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cs-facts div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.cs-facts dt { font-family: var(--font-label); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mid); }
.cs-facts dd { margin: 0; color: #DED8CF; }
@media (max-width: 760px) { .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-section { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px clamp(40px, 7vw, 112px); padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.cs-section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; }
.cs-section .placeholder { border: 1px dashed var(--line-strong); padding: 22px; color: var(--soft); }
@media (max-width: 800px) { .cs-section { grid-template-columns: minmax(0, 1fr); } }
.cs-nav { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 48px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.field { display: grid; gap: 10px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--font-label); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #D6D0C7; }
.field .req { color: var(--mid); }
.field .hint { font-size: .85rem; color: var(--mid); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 12px 0; transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A8A8A8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; cursor: pointer;
}
.field select option { background: var(--charcoal); color: var(--white); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #6E675F; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field .error { display: none; font-size: .86rem; color: var(--white); gap: 8px; align-items: center; }
.field .error::before { content: "!"; width: 18px; height: 18px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .72rem; }
.field[data-invalid] .error { display: flex; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 8px; }
.form-actions small { color: var(--mid); font-size: .85rem; }
.form-status { grid-column: 1 / -1; padding: 24px; border: 1px solid var(--line-strong); background: var(--charcoal); display: grid; gap: 16px; }
.form-status h3 { font-size: 1.4rem; font-weight: 500; }
.form-status p { color: #D6D0C7; }
.form-status .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-aside > div { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.contact-aside h2 { font-family: var(--font-label); font-weight: 500; font-size: .68rem; letter-spacing: .3em; color: var(--mid); line-height: 1.4; }
.contact-aside .aside-title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: .01em; line-height: 1.05; color: var(--white); }
.contact-aside .aside-intro p { color: var(--soft); font-size: .98rem; }
.contact-aside .big { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; letter-spacing: .02em; }
.contact-aside a.big:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contact-aside ol { list-style: none; display: grid; gap: 14px; counter-reset: nx; }
.contact-aside ol li { display: grid; grid-template-columns: 28px minmax(0, 1fr); color: var(--soft); font-size: .95rem; counter-increment: nx; }
.contact-aside ol li::before { content: counter(nx, decimal-leading-zero); font-family: var(--font-label); font-size: .7rem; letter-spacing: .1em; color: var(--accent); padding-top: 3px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Reveal on scroll (only applied to content below the first screen) ---------- */
.js [data-reveal].is-pending { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-reveal] { transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }

/* Hero entrance */
.js .hero-title .line, .js .page-hero h1 { animation: rise 1.2s var(--ease) both; }
.js .hero-title .line:nth-child(2) { animation-delay: .12s; }
.js .hero-bottom, .js .page-hero .lead { animation: fade 1.2s var(--ease) .35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 404 */
.notfound { min-height: 100svh; display: grid; align-items: center; }
