/* Uncover Brands — shared site styles
   Darkroom system (from the v16 hero): walnut canvas, cool chrome text, aqua accents.
   Mobile-first: base rules are for phones; tablet at 760px, desktop at 1100px. */

:root {
  --ink: #100904;          /* Walnut Shadow: page canvas */
  --ink-2: #382416;        /* Bark Brown: the one filled CTA */
  --ink-3: #1a120c;        /* card surface, one step above canvas */
  --chrome: #e6edf2;       /* cool chrome white: headings and key text */
  --muted: #8a9aa6;        /* body text */
  --aqua: #00e5ff;         /* accents: eyebrows, nodes, focus */
  --line: rgba(0, 229, 255, .22);
  --line-soft: rgba(230, 237, 242, .12);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(18px, 6vw, 88px);
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--ink); color: var(--chrome);
  font-family: var(--body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink-2); color: var(--chrome); padding: 10px 16px; border-radius: 22px; }
.skip:focus { left: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 18px; text-wrap: balance; color: var(--chrome); }
h1 { font-size: clamp(1.7rem, 7.4vw, 3.7rem); }
h2 { font-size: clamp(1.45rem, 5.6vw, 2.7rem); }
h3 { font-size: clamp(1.02rem, 3.6vw, 1.2rem); line-height: 1.3; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--muted); font-size: clamp(.98rem, 2.6vw, 1.08rem); }
.lead { color: var(--chrome); opacity: .9; font-size: clamp(1.02rem, 2.9vw, 1.2rem); line-height: 1.55; }
.eyebrow {
  font: 600 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--aqua); margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px; border-radius: 36px;
  font: 700 .95rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-solid { background: var(--ink-2); color: var(--chrome); border: 1px solid rgba(230,237,242,.08); }
.btn-solid:hover { background: #4a3020; }
.btn-ghost { background: transparent; color: var(--chrome); border: 1px solid rgba(230,237,242,.55); border-radius: 22.5px; }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(16,9,4,.88), rgba(16,9,4,0));
  transition: background .3s ease;
}
.site-header.scrolled { background: rgba(16,9,4,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.brand { font: 700 14px/1 var(--display); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.nav a { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--chrome); opacity: .82; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { border-bottom: 1px dashed var(--aqua); }
.header-cta { display: none; }

/* phone menu (no JS needed) */
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(230,237,242,.5); border-radius: 22.5px; padding: 0 16px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--aqua); color: var(--aqua); }
.menu-panel {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(16,9,4,.97); border-bottom: 1px solid var(--line-soft);
  padding: 12px var(--pad) 24px;
}
.menu-panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
.menu-panel a { display: block; padding: 14px 0; border-bottom: 1px dashed var(--line-soft); text-decoration: none; font: 700 1rem/1.2 var(--display); }
.menu-panel a[aria-current="page"] { color: var(--aqua); }

/* ---------- Breadcrumbs ---------- */
.crumbs { margin: 0 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 600 12px/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; color: var(--chrome); opacity: .8; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Video chapters (Sequel-style scroll) ---------- */
.chapter { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; isolation: isolate; }
.chapter .media {
  position: absolute; inset: 0 0 auto 0; height: 64%; z-index: -2; will-change: transform, opacity;
  /* soft edges so the video dissolves into the walnut canvas as it moves */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
}
.chapter .media video, .chapter .media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.chapter .shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* phone: dark at the bottom where the text sits, and a soft top for the header */
  background:
    linear-gradient(180deg, rgba(16,9,4,.55) 0%, rgba(16,9,4,0) 18%, rgba(16,9,4,0) 46%, rgba(16,9,4,.9) 64%, var(--ink) 100%);
}
.chapter .copy {
  align-self: flex-end; width: 100%; max-width: 40rem;
  padding: calc(var(--header-h) + 24px) var(--pad) clamp(40px, 9vh, 88px);
}
.chapter--hero .copy { padding-top: calc(var(--header-h) + 16px); }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(16,9,4,.72); }
.steps b { display: block; color: var(--chrome); font: 700 .98rem/1.3 var(--display); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.node { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 4px solid var(--aqua); box-shadow: 0 0 12px var(--aqua); }

/* text that dims in and out as it passes the middle of the screen */
[data-dim] { will-change: opacity; }

/* ---------- Content sections ---------- */
.section { padding: clamp(64px, 12vh, 128px) var(--pad); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 5vh, 48px); }
.divider { border: 0; border-top: 1px dashed var(--line-soft); margin: 0 var(--pad); }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { padding: 24px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--ink-3); }
.card .tag { font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: 14px; display: block; }
.card p:last-child { margin-bottom: 0; }

.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px dashed var(--line-soft); }
.included li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px dashed var(--line-soft); }
.included b { color: var(--chrome); display: block; margin-bottom: 2px; }
.included span { color: var(--muted); font-size: .95rem; }
.included .node { width: 14px; height: 14px; border-width: 3px; margin-top: 5px; }

.own { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.own figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); }
.own figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px dashed var(--line-soft); }
.faq details { border-bottom: 1px dashed var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 700 clamp(.98rem, 3.2vw, 1.12rem)/1.35 var(--display); color: var(--chrome);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.6rem/1 var(--body); color: var(--aqua); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; max-width: 44rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Final CTA */
.cta-band { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: clamp(28px, 6vw, 64px); background:
  radial-gradient(ellipse 60% 90% at 85% 0%, rgba(0,229,255,.10), transparent 60%), var(--ink-3); }
.cta-band h2 { max-width: 30rem; }
.cta-band p { max-width: 38rem; }

/* Service list (homepage "What we do", Services hub) */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--line-soft); }
.svc-list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 26px 0; border-bottom: 1px dashed var(--line-soft); }
.svc-list .num { font: 600 12px/2 var(--body); letter-spacing: .14em; color: var(--aqua); grid-row: span 3; }
.svc-list h3 { margin: 0 0 8px; font-size: clamp(1.05rem, 3.8vw, 1.35rem); }
.svc-list p { margin: 0 0 10px; }
.svc-list a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--chrome); border-bottom: 1px dashed var(--aqua); }
.svc-list a:hover { color: var(--aqua); }

/* Section head with a button on the right (desktop) */
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.section-head--row h2 { margin-bottom: 0; }

/* Illustration figure and blog cards */
.own figure.art { border: 0; display: flex; justify-content: center; }
.own figure.art svg { width: 100%; max-width: 420px; height: auto; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { color: var(--aqua); }
.post h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.post { position: relative; transition: border-color .2s ease; }
.post:hover { border-color: var(--line); }

/* Footer */
.site-footer { position: relative; z-index: 2; background: var(--ink); padding: 48px var(--pad) 40px; border-top: 1px solid var(--line-soft); display: grid; gap: 28px; grid-template-columns: 1fr; color: var(--muted); font-size: .92rem; }
.site-footer h2 { font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--chrome); opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.fine { grid-column: 1 / -1; font-size: .8rem; padding-top: 20px; border-top: 1px dashed var(--line-soft); }

/* reveal on scroll for content sections (one-way, never hides content without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 760px) {
  :root { --header-h: 72px; }
  .chapter .media { height: 62%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .included { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .site-footer { grid-template-columns: 2fr 1fr 1fr; }
  .steps { gap: 12px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 42px; padding: 12px 20px; font-size: .85rem; }
  .menu { display: none; }
  .chapter .copy { align-self: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; max-width: 38rem; }
  .chapter .media { inset: 0; height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%); }
  /* desktop: dark on the left where the text sits, video shows on the right */
  .chapter .shade { background:
      linear-gradient(90deg, rgba(16,9,4,.94) 0%, rgba(16,9,4,.7) 34%, rgba(16,9,4,0) 62%),
      linear-gradient(180deg, rgba(16,9,4,.6) 0%, rgba(16,9,4,0) 18%, rgba(16,9,4,0) 80%, var(--ink) 100%); }
  .chapter .media video, .chapter .media img { object-position: 68% 50%; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .own { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .own--flip { grid-template-columns: 1.1fr 1fr; }
  .svc-list li { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.6fr) 130px; column-gap: 28px; align-items: baseline; padding: 34px 0; }
  .svc-list .num { grid-row: auto; }
  .svc-list h3, .svc-list p { margin: 0; }
  .svc-list a { justify-self: end; }
}

/* Wide screens: keep the video subject clear of the text column */
@media (min-width: 1500px) {
  .chapter .media video, .chapter .media img { object-position: 60% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-dim] { transition: none; }
}

/* Numbered process steps (Web Design page) */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.process .card p:last-child { margin-bottom: 0; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }

/* Framed chapters (Web Design): the clip's subject is centered, so on desktop the video sits as a
   16:9 frame on the right with soft edges, leaving clean space for the text on the left. */
@media (min-width: 1100px) {
  .chapter--framed .media {
    --fw: min(64vw, 1180px);
    inset: auto; left: auto; right: 0; top: calc(50% - var(--fw) * 9 / 32); width: var(--fw); height: auto; aspect-ratio: 16 / 9;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
            mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  }
  .chapter--framed .media video, .chapter--framed .media img { object-position: 50% 50%; }
  .chapter--framed .shade { background:
      linear-gradient(90deg, rgba(16,9,4,.9) 0%, rgba(16,9,4,.55) 30%, rgba(16,9,4,0) 46%),
      linear-gradient(180deg, rgba(16,9,4,.5) 0%, rgba(16,9,4,0) 16%, rgba(16,9,4,0) 84%, var(--ink) 100%); }
}

/* Aerial chapters (Ads): wide city shots run full-bleed; the action sits right of center on desktop */
@media (min-width: 1100px) {
  .chapter--aerial .media video, .chapter--aerial .media img { object-position: 30% 50%; }
}

/* footer email and phone: finger-sized tap areas */
.site-footer address a[href^="tel:"], .site-footer address a[href^="mailto:"] { display: inline-block; padding: 12px 0; margin: -10px 0; }
