/* =====================================================================
   Showtide AI Studio — site styles
   Built on scrollcraft.css (engine floor, untouched). Change brand colours
   in the :root block below. See README.md.
   ===================================================================== */

:root {
  /* ---- brand colours(品牌色,改這裡) ---- */
  --deep:        #08121A;   /* 黃昏海面深藍黑 */
  --deep-2:      #0B0E10;
  --deep-3:      #0E1A22;
  --gold:        #C8A96A;   /* 香檳金:只用在光點、按鈕、細線 */
  --gold-hi:     #D6BC85;
  --foam:        #BFD4DE;   /* 浪花冷白:極少量 */
  --paper:       #F6F2EA;   /* 暖白底 */
  --paper-2:     #EDE7DC;
  --ink:         #1B1B1B;
  --ink-soft:    #4F4A42;   /* 次要文字(對暖白 7.9:1) */
  --on-deep:     #F2EDE3;
  --on-deep-soft: rgba(242, 237, 227, 0.78);

  /* ---- engine roles ---- */
  --sc-canvas: var(--paper);
  --sc-surface: var(--paper-2);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--gold);
  --sc-accent-ink: var(--deep);
  --sc-font-display: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif;
  --sc-font-text: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --sc-r-sm: 2px; --sc-r-md: 2px; --sc-r-lg: 2px;
  --sc-shadow-color: 205 50% 6%;

  --hairline: rgba(27, 27, 27, 0.14);
  --hairline-strong: rgba(27, 27, 27, 0.26);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 80px);
  --col-gap: clamp(16px, 2vw, 32px);
  --header-h: 72px;
}

/* ------------------------------------------------------------ base */
html { scroll-padding-top: var(--header-h); }
html.i18n-wait body > * { visibility: hidden; }
body { background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.75; }
:lang(en) body, html:lang(en) body { line-height: 1.62; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.water :focus-visible, .site-header:not(.is-light) :focus-visible, .float-wa:focus-visible { outline-color: var(--gold); }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 16px;
  transform: translateY(-200%); text-decoration: none; font-size: 14px;
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1680px; padding-inline: clamp(16px, 3vw, 48px); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid > * { grid-column: 1 / -1; }

/* ------------------------------------------------------------ type */
.label {
  font-family: var(--sc-font-text);
  font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.label-light { color: rgba(242, 237, 227, 0.74); }

.h2 {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 72px); line-height: 1.22; letter-spacing: 0.01em;
  text-wrap: balance;
}
html:lang(en) .h2 { font-size: clamp(38px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.h3 {
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(21px, 1.9vw, 28px); line-height: 1.35; letter-spacing: 0.01em;
}
html:lang(en) .h3 { font-weight: 500; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; letter-spacing: -0.01em; }
.lead {
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.8; color: var(--ink);
  max-width: 34em; text-wrap: pretty;
}
html:lang(en) .lead { line-height: 1.55; max-width: 52ch; }
.lead-serif {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px); line-height: 1.6; max-width: 26em; text-wrap: pretty;
}
html:lang(en) .lead-serif { line-height: 1.3; max-width: 34ch; font-size: clamp(26px, 2.5vw, 38px); }
.body-text, .point p, .step p, .faq p, .svc-body p {
  color: var(--ink-soft); max-width: 36em; text-wrap: pretty;
}
html:lang(en) :is(.body-text, .point p, .step p, .faq p, .svc-body p) { max-width: 60ch; }
.small-note { font-size: 14px; color: var(--ink-soft); max-width: 40em; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--sc-font-text); font-size: 15px; font-weight: 500; line-height: 1;
  letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out),
              border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 160ms var(--sc-ease-out); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 36px; font-size: 17px; }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-ghost-light { border-color: rgba(242, 237, 227, 0.45); color: var(--on-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink .arrow { stroke: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-hi); }
  .btn-ghost-light:hover { border-color: var(--on-deep); background: rgba(242, 237, 227, 0.06); }
  .btn-ink:hover { background: var(--deep-3); }
  .btn:hover .arrow { transform: translate(2px, -2px); }
}

.text-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  text-decoration: none; position: relative;
}
.text-link::after, .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover::after, .nav-link:hover::after { transform: scaleX(1); }
}

/* ------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  color: var(--on-deep);
  transition: background-color 240ms var(--sc-ease-out), color 240ms var(--sc-ease-out), border-color 240ms var(--sc-ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-light { background: var(--paper); color: var(--ink); border-bottom-color: var(--hairline); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; color: inherit; text-decoration: none; flex: none; }
.wordmark { width: 156px; height: auto; overflow: visible; }
.wm-main { font-family: "Cormorant Garamond", "Noto Serif TC", serif; font-weight: 600; font-size: 25px; fill: var(--gold); }
.wm-sub  { font-family: "Inter", "Noto Sans TC", sans-serif; font-weight: 500; font-size: 8.4px; fill: currentColor; opacity: 0.82; }
.site-header.is-light .wm-main, .wordmark-ink .wm-main { fill: var(--ink); }
.wordmark-ink { color: var(--ink); width: 188px; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.nav-link { position: relative; font-size: 14px; text-decoration: none; letter-spacing: 0.02em; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-toggle {
  background: none; border: 0; padding: 8px 4px; cursor: pointer; color: inherit;
  font-family: var(--sc-font-text); font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  min-width: 32px; min-height: 40px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.site-header.is-light .header-cta { background: var(--ink); color: var(--paper); }
.site-header:not(.is-light) .header-cta { background: var(--gold); color: var(--deep); }

/* =====================================================================
   HERO — the tide (peak). One pinned stage, two worlds:
   .shore under, .water over. JS writes --ebb (0..1), --copy-o, --mx/--my.
   ===================================================================== */
.hero { background: var(--deep); }
/* position comes from the engine (.sc-stage = sticky); never set it here */
.hero-stage { height: 100vh; height: 100svh; overflow: clip; }

/* --- shore: the sand the tide leaves */
.shore { position: absolute; inset: 0; background: var(--paper); overflow: hidden; }
/* calm sea revealed by the ebb, graded pearl silver (brief reference C); slow drift */
.shore-photo, .shore-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.shore-photo img { object-fit: cover; object-position: 50% 50%; transform: scale(1.06); animation: calm-drift 38s ease-in-out infinite alternate; }
@keyframes calm-drift { from { transform: scale(1.06) translate3d(-1%, 0.6%, 0); } to { transform: scale(1.12) translate3d(1.2%, -0.8%, 0); } }
/* density only behind the interlude line */
.interlude-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 30% at 74% 31%, rgba(246, 242, 234, 0.82) 0%, rgba(246, 242, 234, 0.5) 55%, rgba(246, 242, 234, 0) 100%);
}
/* the calm sea runs out into the warm white of the next section */
.shore-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(246, 242, 234, 0) 50%, rgba(246, 242, 234, 0.6) 76%, var(--paper) 96%); }
.shore-ripple, .contact-ripple {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' preserveAspectRatio='none'><filter id='r'><feTurbulence type='fractalNoise' baseFrequency='0.0035 0.045' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.62  0 0 0 0 0.66  0 0 0 0 0.68  0 0 0 1.6 -0.62'/></filter><rect width='900' height='600' filter='url(%23r)'/></svg>");
  background-size: 100% 100%; background-repeat: no-repeat;
  opacity: 0.34;
}
.shore-ripple { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%); mask-image: linear-gradient(to bottom, transparent 0%, #000 55%); }
.shore-wet {
  position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(to bottom, rgba(120, 136, 142, 0) 0%, rgba(120, 136, 142, 0.10) 60%, rgba(98, 116, 124, 0.26) 100%);
  transform: translate3d(0, calc(var(--ebb, 0) * 100svh - 100%), 0);
  will-change: transform;
}
.strand { position: absolute; inset: 0; pointer-events: none; }
.strand i {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: radial-gradient(circle, #FFFDF6 0 22%, var(--gold) 46%, rgba(200, 169, 106, 0) 72%);
  opacity: 0; will-change: opacity, transform;
}
.strand i.is-drying { animation: dry var(--dry, 2.6s) var(--ease) forwards; }
@keyframes dry {
  0%   { opacity: 0;    transform: scale(0.6); }
  8%   { opacity: 1;    transform: scale(1.15); }
  100% { opacity: 0;    transform: scale(0.35); }
}
.interlude-text {
  position: absolute; right: var(--gutter); top: 26%;
  font-family: var(--sc-font-display); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 4.6vw, 72px); line-height: 1.2; color: var(--ink);
  text-align: right; text-wrap: balance; max-width: 14em;
}
html:lang(en) .interlude-text { letter-spacing: -0.015em; line-height: 1.04; }

/* --- water: your photo, made fluid by WebGL (js/main.js → initTideGL).
       Fallback (no WebGL): the photo with a straight CSS tide edge. */
.water {
  position: absolute; inset: 0; background: var(--deep); overflow: hidden;
  clip-path: inset(calc(var(--ebb, 0) * 100%) 0 0 0);
  will-change: clip-path;
}
.hero-photo, .hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block;
}
.hero-photo img {
  object-fit: cover; object-position: 50% 50%;
  transform: translateX(6%) scale(calc(1.12 + var(--ebb, 0) * 0.06)); transform-origin: 50% 50%;
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 900ms var(--ease); }
/* corner density only where the copy sits (bottom-left); the photo keeps its light */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  /* density sits under the copy block (bottom-left), reaching just past the headline's last word */
  background:
    radial-gradient(ellipse 62% 46% at 26% 64%, rgba(8, 18, 26, 0.62) 0%, rgba(8, 18, 26, 0.38) 50%, rgba(8, 18, 26, 0) 100%),
    linear-gradient(to top right, rgba(8, 18, 26, 0.7) 0%, rgba(8, 18, 26, 0.3) 30%, rgba(8, 18, 26, 0) 55%);
  opacity: var(--copy-o, 1);
}
/* WebGL running: the canvas owns water, edge, thin sheet and foam */
html.gl .water { clip-path: none; background: transparent; }
html.gl .hero-photo { visibility: hidden; }
html.gl .hero-gl { opacity: 1; }
html.gl :is(.tideline, .shore-wet) { display: none; }
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: clamp(40px, 9vh, 112px); z-index: 3;
  opacity: var(--copy-o, 1);
  transform: translate3d(0, var(--copy-y, 0px), 0);
  will-change: opacity, transform;
}
.hero-copy.is-gone { visibility: hidden; }
.hero-copy .label { margin-bottom: clamp(20px, 3vh, 32px); }
.hero-title {
  font-family: var(--sc-font-display); font-weight: 500; color: var(--on-deep);
  font-size: clamp(34px, 7.2vw, 112px); line-height: 1.16; letter-spacing: 0.015em;
  max-width: 12em;
}
html:lang(en) .hero-title { font-size: clamp(34px, 6.6vw, 108px); line-height: 0.98; letter-spacing: -0.022em; max-width: 13ch; }
.hero-sub {
  margin-top: clamp(20px, 3.2vh, 36px);
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.8; color: var(--on-deep-soft);
  max-width: 30em; text-wrap: pretty;
}
html:lang(en) .hero-sub { line-height: 1.55; max-width: 46ch; }
.hero-actions { margin-top: clamp(24px, 4vh, 40px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 13px; line-height: 1.7; color: rgba(242, 237, 227, 0.68); max-width: 40em; }

/* --- the tide line itself */
.tideline {
  position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 5; pointer-events: none;
  transform: translate3d(0, calc(var(--ebb, 0) * 100svh), 0);
  opacity: var(--tl-o, 0);
  will-change: transform, opacity;
}
.tideline .foam {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(232, 240, 244, 0.35), rgba(246, 250, 252, 0.95) 30%, #FFFFFF 55%, rgba(232, 240, 244, 0.55));
}
.tideline .foam::after {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(191, 212, 222, 0.34), rgba(191, 212, 222, 0));
}
.tideline .glint {
  position: absolute; top: -1px; left: 0; width: 120px; height: 1px; margin-left: -60px;
  background: linear-gradient(90deg, rgba(200, 169, 106, 0), var(--gold) 50%, rgba(200, 169, 106, 0));
  transform: translate3d(var(--gx, 50vw), 0, 0);
  transition: transform 500ms var(--ease);
}

/* =====================================================================
   Sections
   ===================================================================== */
.section { position: relative; padding-block: clamp(96px, 12vw, 176px); }
.section-services { padding-top: clamp(56px, 7vw, 112px); }
.section > .wrap > .label, .process-inner > .label { margin-bottom: clamp(32px, 4vw, 56px); }

.rule { position: relative; height: 1px; background: var(--hairline); overflow: hidden; margin-bottom: clamp(32px, 4vw, 48px); }
.rule::after {
  content: ""; position: absolute; top: 0; left: 0; width: 28%; height: 1px;
  background: linear-gradient(90deg, rgba(200, 169, 106, 0), var(--gold) 50%, rgba(200, 169, 106, 0));
  transform: translateX(-110%);
}
.rule.is-swept::after { animation: rule-sweep 2.6s var(--ease) forwards; }
@keyframes rule-sweep { to { transform: translateX(380%); } }

.wave-rule { width: 100%; height: 16px; overflow: visible; }
.wave-rule path { fill: none; stroke: var(--gold); stroke-opacity: 0.6; stroke-width: 1; vector-effect: non-scaling-stroke; }

.section-head { margin-bottom: clamp(56px, 8vw, 120px); row-gap: clamp(20px, 3vw, 40px); }

/* --- services */
.svc-list { border-bottom: 1px solid var(--hairline); }
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 16px;
       border-top: 1px solid var(--hairline); padding: clamp(32px, 4vw, 56px) 0; }
.svc > * { grid-column: 1 / -1; }
.svc-num { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--ink-soft); padding-top: 0.9em; }
.svc-title { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.2; letter-spacing: 0.01em; }
html:lang(en) .svc-title { line-height: 1.04; letter-spacing: -0.02em; }
.svc-more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.svc-more::after { display: none; }
.svc-tags { margin-top: 16px; font-size: 13px; letter-spacing: 0.03em; color: var(--ink-soft); }
.svc-soon {
  display: inline-block; vertical-align: middle; margin-left: 12px;
  font-family: var(--sc-font-text); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--hairline-strong); border-radius: 2px; padding: 3px 8px; color: var(--ink-soft);
  line-height: 1.4; transform: translateY(-0.2em);
}
.svc.is-minor { padding: clamp(24px, 3vw, 36px) 0; }
.svc.is-minor .svc-title { font-size: clamp(20px, 1.9vw, 28px); }
.svc.is-minor .svc-body p { font-size: 15px; }
.svc.is-more .svc-title { font-style: italic; color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 24px); }

/* --- work */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(64px, 8vw, 128px); }
.work { grid-column: 1 / -1; }
.work-media { position: relative; overflow: hidden; border-radius: 2px; background: var(--deep-3); aspect-ratio: 4 / 5; }
.work.is-full .work-media { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .work.is-a .work-media { aspect-ratio: 5 / 4; } }
.work-media > img, .work-media > video, .work-media > picture, .work-media > picture > img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transition: transform 1200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .work:hover .work-media img, .work:hover .work-media video { transform: scale(1.03); } }
.work-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 2vw, 32px);
  background:
    radial-gradient(60% 50% at 72% 82%, rgba(200, 169, 106, 0.16), rgba(200, 169, 106, 0) 70%),
    linear-gradient(160deg, var(--deep-2) 0%, var(--deep-3) 60%, #13242E 100%);
  color: rgba(242, 237, 227, 0.72);
}
.work-ph-num { font-family: var(--sc-font-display); font-size: clamp(56px, 8vw, 128px); line-height: 1; color: rgba(242, 237, 227, 0.16); }
.work-ph-text { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.work-error { position: absolute; left: 16px; bottom: 16px; font-size: 13px; color: var(--on-deep); background: rgba(8, 18, 26, 0.8); padding: 6px 10px; }
.work-cap { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.work-cap .src { color: var(--ink-soft); }

/* before / after: the handle is a tide line that you drag up and down */
.ba { position: absolute; inset: 0; --p: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 0 calc(100% - var(--p)) 0); }
.ba-handle {
  position: absolute; left: 0; right: 0; top: var(--p); height: 44px; margin-top: -22px;
  cursor: ns-resize; touch-action: none; background: none; border: 0; padding: 0;
}
.ba-handle::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), #FFFFFF 50%, rgba(255, 255, 255, 0.4));
}
.ba-tag { position: absolute; left: 16px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(8, 18, 26, 0.6); padding: 4px 8px; }
.ba-tag.t { top: 16px; } .ba-tag.b { bottom: 16px; }

.section-cta { margin-top: clamp(72px, 9vw, 144px); row-gap: 24px; align-items: center; }
.cta-text { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.5; max-width: 22em; }
html:lang(en) .cta-text { line-height: 1.2; }

/* --- why */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(48px, 6vw, 88px); margin-top: clamp(48px, 7vw, 104px); }
.point { border-top: 1px solid var(--hairline); padding-top: 24px; }
.point-num { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--ink-soft); margin-bottom: 20px; }
.point .h3 { margin-bottom: 12px; }

/* --- process */
.process { background: var(--paper); }
.process-stage { display: flex; align-items: center; }
.process-inner { padding-block: clamp(96px, 10vh, 140px) clamp(48px, 8vh, 96px); }
.process-title { margin-bottom: clamp(48px, 7vh, 96px); }
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: clamp(42px, 4.4vw, 70px); height: 1px; background: var(--hairline); }
.steps-line span {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--pl, 0));
  background: linear-gradient(90deg, rgba(200, 169, 106, 0.3), var(--gold));
}
.step-num {
  display: inline-block; position: relative; z-index: 1; background: var(--paper); padding-right: 16px;
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: clamp(84px, 8.8vw, 140px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--ink);
  transition: color 600ms var(--ease);
}
.step.is-reached .step-num { color: var(--ink); }
.step .h3 { margin: 24px 0 12px; }
.step p { max-width: 24em; }
.process-foot { margin-top: clamp(48px, 7vh, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* --- about */
#about .grid { row-gap: 32px; }

/* --- faq */
.faq-list { margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--hairline); }
.faq { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 24px 56px 24px 0;
  font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.45;
}
html:lang(en) .faq summary { font-weight: 500; line-height: 1.25; font-size: clamp(21px, 1.9vw, 28px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1px; background: var(--ink);
  transition: transform 240ms var(--sc-ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq p { padding: 0 56px 28px 0; }

/* --- contact (slack water) */
.section-contact { overflow: hidden; padding-bottom: clamp(120px, 14vw, 200px); }
.contact-ripple { top: auto; height: 70%; opacity: 0.4; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%); mask-image: linear-gradient(to bottom, transparent, #000 70%); }
.section-contact .wrap { position: relative; }
.contact-title {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: clamp(40px, 7.4vw, 116px); line-height: 1.16; letter-spacing: 0.01em; text-wrap: balance;
}
html:lang(en) .contact-title { line-height: 0.98; letter-spacing: -0.025em; }
.slack-line {
  position: relative; height: 1px; margin: clamp(40px, 6vw, 80px) 0;
  background: linear-gradient(90deg, rgba(27, 27, 27, 0), rgba(27, 27, 27, 0.24) 8%, rgba(27, 27, 27, 0.24) 92%, rgba(27, 27, 27, 0));
}
.slack-line i {
  position: absolute; top: -2px; left: var(--x); width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #FFFDF6 0 22%, var(--gold) 50%, rgba(200, 169, 106, 0) 74%);
}
.contact-row { row-gap: 48px; }
.contact-main .lead { margin-bottom: 32px; }
.contact-meta { display: grid; gap: 28px; align-content: start; }
.contact-meta dt { margin-bottom: 8px; }
.contact-meta dd { font-size: 18px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.copy-btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-soft);
  font-size: 13px; letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px;
}

/* --- footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--hairline); padding: 64px 0 32px; font-size: 14px; }
.footer-top { row-gap: 32px; }
.footer-tagline { margin-top: 12px; font-family: var(--sc-font-display); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.footer-info p + p { margin-top: 4px; }
.footer-services { margin-top: 12px !important; font-size: 13px; color: var(--ink-soft); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-links .text-link { font-size: 14px; letter-spacing: 0.04em; min-height: 32px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }

/* --- floating WhatsApp (phones) */
.float-wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  display: none; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 2px;
  background: var(--deep); color: var(--on-deep); border: 1px solid var(--gold);
  font-size: 15px; font-weight: 500; text-decoration: none;
  box-shadow: var(--sc-e2);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out);
}
body.show-float .float-wa { opacity: 1; transform: none; pointer-events: auto; }

/* =====================================================================
   Desktop grid placement
   ===================================================================== */
@media (min-width: 900px) {
  .col-head { grid-column: 1 / span 8; }
  .col-intro { grid-column: 5 / span 7; }
  .svc-num { grid-column: 1 / span 1; }
  .svc-title { grid-column: 2 / span 5; }
  .svc-body { grid-column: 8 / span 5; }
  .work.is-full { grid-column: 1 / -1; }
  .work.is-a { grid-column: 1 / span 7; }
  .work.is-b { grid-column: 9 / span 4; margin-top: clamp(96px, 14vw, 240px); }
  .work.is-a.is-alt { grid-column: 2 / span 6; }
  .work.is-b.is-alt { grid-column: 9 / span 4; }
  .section-cta .cta-text { grid-column: 1 / span 7; }
  .section-cta .cta-btn { grid-column: 9 / span 4; justify-self: end; }
  #why .col-head { grid-column: 1 / span 7; }
  #why .points { grid-column: 3 / span 10; }
  #about .col-head { grid-column: 1 / span 4; }
  #about .lead-serif { grid-column: 6 / span 7; grid-row: 1; }
  #about .body-text { grid-column: 6 / span 6; }
  #faq .col-head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
  #faq .faq-list { grid-column: 6 / span 7; margin-top: 0; }
  .contact-main { grid-column: 1 / span 6; }
  .contact-meta { grid-column: 9 / span 4; }
  .footer-brand { grid-column: 1 / span 4; }
  .footer-info { grid-column: 6 / span 3; }
  .footer-links { grid-column: 9 / span 4; justify-content: flex-end; align-self: start; }
}

/* =====================================================================
   Phones and small tablets
   ===================================================================== */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .main-nav, .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .wordmark { width: 136px; }
  .float-wa { display: inline-flex; }

  .hero-photo img { object-position: 50% 50%; transform: scale(calc(1.04 + var(--ebb, 0) * 0.06)); }
  .hero-scrim { background: linear-gradient(to top, rgba(8, 18, 26, 0.82) 0%, rgba(8, 18, 26, 0.5) 34%, rgba(8, 18, 26, 0) 58%); }
  .interlude-text { left: var(--gutter); right: var(--gutter); text-align: left; top: 22%; }
  /* phone: mirror the photo so its bright glint band sits away from the line */
  .shore-photo { transform: scaleX(-1); }
  .interlude-scrim { background: radial-gradient(ellipse 90% 22% at 30% 26%, rgba(246, 242, 234, 0.8) 0%, rgba(246, 242, 234, 0.5) 55%, rgba(246, 242, 234, 0) 100%); }
  .hero-copy { bottom: clamp(24px, 5vh, 48px); }
  .btn-row .btn { flex: 1 1 auto; }

  .points { grid-template-columns: 1fr; }
  .work.is-b { margin-top: 0; }
  .work.is-full .work-media { aspect-ratio: 4 / 5; }
  .section-cta .cta-btn .btn { width: 100%; }

  /* process: vertical tide line, not pinned */
  .process-stage { display: block; }
  .process-inner { padding-block: clamp(80px, 12vw, 120px); }
  .steps { grid-template-columns: 1fr; row-gap: 48px; padding-left: 28px; }
  .steps-line { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps-line span { transform-origin: top; transform: scaleY(var(--pl, 0)); background: linear-gradient(180deg, rgba(200, 169, 106, 0.3), var(--gold)); }
  .step-num { font-size: 72px; padding-right: 0; background: none; }
  .step .h3 { margin-top: 12px; }
  .process-foot { flex-direction: column; align-items: stretch; }
  .process-foot .btn { width: 100%; }
  .contact-main .btn { width: 100%; }
  .faq p { padding-right: 0; }
}

/* =====================================================================
   Reduced motion: complete static composition, no automatic animation.
   (html.rm is set from prefers-reduced-motion before paint)
   ===================================================================== */
html.rm .hero-stage { position: relative; height: auto; display: flex; flex-direction: column; overflow: clip; }
/* client brief: reduced motion = no automatic animation at all (stricter than the engine floor) */
html.rm :is([data-sc-in], [data-sc-stagger] > *) { opacity: 1 !important; transform: none !important; transition: none !important; }
html.rm .water { position: relative; order: 1; height: 100vh; height: 100svh; min-height: 620px; clip-path: none; }
html.rm .shore { position: relative; order: 2; min-height: 90vh; }
html.rm .shore-photo img { animation: none; }
html.rm :is(.tideline, .strand, .shore-wet) { display: none; }
html.rm .hero-photo img { transform: none; }
html.rm .rule::after { display: none; }
html.rm .step-num { color: var(--ink); transition: none; }
html.rm .steps-line span { transform: none; }
html.rm .work-media > img, html.rm .work-media > video { transition: none; }
html.rm :is(.float-wa, .site-header) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .strand i { animation: none !important; }
}

/* =====================================================================
   Service pages (ai-short-films/, product-photos/, website-design/)
   Static, fast, no WebGL. Same tokens and type as the homepage.
   ===================================================================== */
.page-hero {
  position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end;
  background: var(--deep); color: var(--on-deep); overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 clamp(48px, 8vh, 96px);
}
.page-hero-photo, .page-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.page-hero-photo img { object-fit: cover; object-position: 50% 50%; transform: translateX(6%) scale(1.12); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 22% 70%, rgba(8, 18, 26, 0.72) 0%, rgba(8, 18, 26, 0.4) 55%, rgba(8, 18, 26, 0) 100%),
    linear-gradient(to top, rgba(8, 18, 26, 0.75) 0%, rgba(8, 18, 26, 0) 55%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(242, 237, 227, 0.74); margin-bottom: clamp(24px, 4vh, 40px); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.crumbs span[aria-hidden] { opacity: 0.6; }
.page-title {
  font-family: var(--sc-font-display); font-weight: 500; color: var(--on-deep);
  font-size: clamp(38px, 6.6vw, 96px); line-height: 1.14; letter-spacing: 0.01em; max-width: 14em; text-wrap: balance;
}
.page-lead { margin-top: clamp(20px, 3vh, 32px); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.8; color: var(--on-deep-soft); max-width: 32em; text-wrap: pretty; }
.page-hero .btn-row { margin-top: clamp(24px, 4vh, 40px); }

.list-rows { border-top: 1px solid var(--hairline); }
.list-rows li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.list-rows li > * { grid-column: 1 / -1; }
.list-rows h3 { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; }
.list-rows p { color: var(--ink-soft); max-width: 36em; }
.steps-static { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: clamp(40px, 6vw, 72px); }
.steps-static .step-num { color: var(--ink); background: none; font-size: clamp(64px, 6vw, 96px); }
.page-cta { background: var(--deep); color: var(--on-deep); padding: clamp(80px, 10vw, 140px) 0; text-align: left; }
.page-cta h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(32px, 5vw, 72px); line-height: 1.2; max-width: 16em; }
.page-cta p { margin: 24px 0 32px; color: var(--on-deep-soft); max-width: 34em; }
.page-cta :focus-visible { outline-color: var(--gold); }
.related { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--hairline); margin-top: clamp(32px, 4vw, 56px); }
.related a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
.related a strong { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.2; }
.related a span { font-size: 14px; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .related a:hover strong { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; } }
.note-honest { margin-top: 32px; font-size: 13px; color: var(--ink-soft); max-width: 46em; }
@media (min-width: 900px) {
  .list-rows h3 { grid-column: 1 / span 5; }
  .list-rows p { grid-column: 7 / span 6; }
  .steps-static { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .sub-head { grid-column: 1 / span 5; }
  .sub-body { grid-column: 7 / span 6; }
}
@media (max-width: 899px) {
  .page-hero-photo img { transform: scale(1.04); }
  .page-hero .btn-row .btn { flex: 1 1 auto; }
  .page-cta .btn { width: 100%; }
}
/* =====================================================================
   Showcase: before / after cards (js/showcase.js)
   ===================================================================== */
.ba-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 56px) var(--col-gap); }
@media (min-width: 600px) { .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ba-stage {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px;
  background: var(--deep-3);
  touch-action: pan-y;               /* vertical swipes scroll the page, horizontal ones move the divider */
  overscroll-behavior-x: contain;    /* discourage back/forward swipe navigation */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  cursor: ew-resize;
}
.ba-img, .ba-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.ba-img img { object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); will-change: clip-path; }
.ba-divider {
  position: absolute; inset: 0; pointer-events: none;
  transform: translate3d(var(--pos), 0, 0);   /* % of its own width = the stage width */
  will-change: transform;
}
.ba-divider:focus { outline: none; }
.ba-divider::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: rgba(255, 255, 255, 0.92);
}
.ba-knob {
  position: absolute; top: 50%; left: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgba(246, 242, 234, 0.96); box-shadow: 0 2px 10px rgba(8, 18, 26, 0.35);
}
.ba-knob::before, .ba-knob::after {   /* ‹ › arrows */
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border: solid var(--ink); border-width: 0 0 1.5px 1.5px;
}
.ba-knob::before { left: 10px; transform: rotate(45deg); }
.ba-knob::after { right: 10px; transform: rotate(-135deg); }
.ba-divider:focus-visible .ba-knob { outline: 2px solid var(--gold); outline-offset: 3px; }
.ba-badge {
  position: absolute; bottom: 12px; padding: 4px 8px; border-radius: 2px;
  background: rgba(8, 18, 26, 0.66); color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; line-height: 1.4; pointer-events: none;
}
.ba-badge-before { left: 12px; }
.ba-badge-after { right: 12px; }
.ba-title { margin-top: 16px; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; }
.ba-title-2 { margin-left: 8px; font-family: var(--sc-font-text); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.ba-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ba-chips li { font-size: 12px; letter-spacing: 0.04em; line-height: 1.4; color: var(--ink-soft); border: 1px solid var(--hairline-strong); border-radius: 2px; padding: 4px 10px; }
.ba-note { margin-top: clamp(40px, 5vw, 56px); font-size: 13px; color: var(--ink-soft); max-width: 52em; }
/* =====================================================================
   Work: video cards, tabs, homepage teaser (js/work.js)
   ===================================================================== */
.vid-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--deep); }
.vid-poster, .vid-poster img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.vid-poster img { object-fit: cover; transition: transform 1200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .vid-stage:hover .vid-poster img { transform: scale(1.03); } }
.vid-stage::after {   /* density only behind the play button and badge */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(8, 18, 26, 0.32) 0%, rgba(8, 18, 26, 0) 45%), linear-gradient(to top, rgba(8, 18, 26, 0.55) 0%, rgba(8, 18, 26, 0) 35%);
}
.vid-play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--on-deep);
}
.vid-play-icon {
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(242, 237, 227, 0.8);
  background: rgba(8, 18, 26, 0.35); position: relative;
  transition: transform 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.vid-play-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -6px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--on-deep);
}
@media (hover: hover) and (pointer: fine) { .vid-play:hover .vid-play-icon { transform: scale(1.06); background: rgba(200, 169, 106, 0.85); border-color: var(--gold); } }
.vid-play:focus-visible { outline: none; }
.vid-play:focus-visible .vid-play-icon { outline: 2px solid var(--gold); outline-offset: 4px; }
.vid-badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 4px 8px; border-radius: 2px; background: rgba(8, 18, 26, 0.66); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; }
.vid-el { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; background: #000; }
.vid-stage.is-playing .vid-play, .vid-stage.is-playing .vid-badge { display: none; }
.vid-error { position: absolute; left: 16px; bottom: 16px; z-index: 4; margin: 0; padding: 6px 10px; background: rgba(8, 18, 26, 0.85); color: var(--on-deep); font-size: 13px; }
.vid-title { margin-top: 16px; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; }
.vid-meta { margin-top: 6px; font-size: 13px; letter-spacing: 0.03em; color: var(--ink-soft); }
@media (max-aspect-ratio: 4/5) {
  /* phones in portrait: present the vertical cut */
  .vid-stage[data-src-tall] { aspect-ratio: 9 / 16; max-height: 78svh; margin-inline: auto; }
}

/* homepage teaser: one piece per category */
.teaser { display: grid; grid-template-columns: 1fr; gap: clamp(56px, 7vw, 96px) var(--col-gap); list-style: none; margin: 0; padding: 0; }
.teaser-block { list-style: none; }
.teaser-cat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.teaser-cat h3 { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; }
.teaser-cat .label { white-space: nowrap; }
.more-link { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.more-link-lg { font-family: var(--sc-font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; text-decoration-thickness: 1px; }
.teaser-all { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hairline); padding-top: 24px; }
.teaser-all .ba-note { margin-top: 0; }
@media (min-width: 900px) { .teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Work page tabs */
.tabbar { position: sticky; top: var(--header-h); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.tabbar-inner { display: flex; gap: clamp(20px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; }
.tabbar-inner::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; min-height: 56px; white-space: nowrap;
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft); text-decoration: none;
}
.tab .tab-en { margin-left: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--sc-ease-out); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { padding-top: clamp(48px, 6vw, 88px); }
.tab-panel > .wrap > .h2 { margin-bottom: 16px; }
.tab-panel .lead { margin-bottom: clamp(40px, 5vw, 64px); }
.vid-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: clamp(48px, 6vw, 72px) var(--col-gap); }
@media (min-width: 900px) { .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-hero.is-compact { min-height: 52vh; min-height: 52svh; }
.ba-grid-single, .vid-grid-single { grid-template-columns: 1fr !important; }

/* =====================================================================
   Services + proof rows (homepage 02): offer, proof and action together
   ===================================================================== */
.svc-rows { list-style: none; margin: 0; padding: 0; }
.svc-row {
  display: grid; grid-template-columns: 1fr; gap: 28px var(--col-gap); align-items: center;
  padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--hairline);
}
.svc-row .svc-num { display: block; margin-bottom: 12px; padding-top: 0; }
.svc-row .svc-title { font-size: clamp(30px, 3.4vw, 52px); }
.svc-desc { margin-top: 16px; color: var(--ink-soft); max-width: 30em; text-wrap: pretty; }
html:lang(en) .svc-desc { max-width: 44ch; }
.svc-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.svc-actions .svc-more { margin-top: 0; }
.svc-proof .ba-title, .svc-proof .vid-title { font-size: clamp(17px, 1.4vw, 20px); margin-top: 12px; }
.svc-proof .ba-chips { margin-top: 8px; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .svc-row .svc-proof { grid-column: 1 / span 7; grid-row: 1; }
  .svc-row .svc-text { grid-column: 9 / span 4; grid-row: 1; }
  .svc-row.is-flip .svc-proof { grid-column: 6 / span 7; }
  .svc-row.is-flip .svc-text { grid-column: 1 / span 4; }
}
@media (max-width: 899px) { .svc-actions .btn { flex: 1 1 100%; } }
.svc-mini { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--hairline); }
.svc-mini:last-child { border-bottom: 1px solid var(--hairline); }
.svc-mini .svc-num { padding: 0; min-width: 2.2em; }
.svc-mini p { margin: 0; color: var(--ink-soft); }
.svc-mini strong { color: var(--ink); font-weight: 600; font-family: var(--sc-font-display); font-size: 19px; margin-right: 6px; }
.svc-mini-body { display: block; margin-top: 4px; font-size: 15px; }
.svc-mini.is-more p { font-family: var(--sc-font-display); font-style: italic; }

/* website-design proof: the real site, desktop + phone overlapping */
.site-proof { position: relative; aspect-ratio: 4 / 3; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.site-desk, .site-phone { position: absolute; display: block; }
.site-desk { left: 6%; top: 9%; width: 78%; box-shadow: var(--sc-e3); }
.site-phone { right: 6%; bottom: -14%; width: 24%; border: 5px solid var(--deep); border-radius: 14px; overflow: hidden; box-shadow: var(--sc-e3); }
.site-desk img, .site-phone img { display: block; width: 100%; height: auto; max-width: none; }
.site-proof .vid-badge { left: 12px; bottom: 12px; }
@media (max-aspect-ratio: 4/5) { .svc-proof .vid-stage[data-src-tall] { aspect-ratio: 4 / 5; max-height: none; } .svc-proof .vid-el { object-fit: contain; } }

/* both cuts side by side, equal height: widths 256 : 81 (16:9 vs 9:16) */
.vid-duo-grid { display: grid; grid-template-columns: 256fr 81fr; gap: clamp(8px, 1.2vw, 16px); align-items: end; }
.vid-stage.is-wide { aspect-ratio: 16 / 9; }
.vid-stage.is-tall { aspect-ratio: 9 / 16; }
.vid-stage.is-tall .vid-play-icon { width: 44px; height: 44px; }
.vid-stage.is-tall .vid-play-icon::after { margin: -7px 0 0 -4px; border-width: 7px 0 7px 12px; }
.vid-stage.is-tall .vid-badge { left: 6px; bottom: 6px; padding: 3px 5px; font-size: 10px; letter-spacing: 0.06em; }
@media (max-aspect-ratio: 4/5) { .vid-duo .vid-stage { max-height: none; } }
@media (max-width: 599px) { .vid-duo-grid { grid-template-columns: 58fr 42fr; } }
@media (max-width: 599px) { .vid-duo .is-wide .vid-play-icon { width: 52px; height: 52px; } .vid-duo .is-wide .vid-play-icon::after { margin: -8px 0 0 -5px; border-width: 8px 0 8px 14px; } }
.vid-grid > .vid-duo { grid-column: 1 / -1; }
html:lang(en) .ba-title-2 { display: none; }
html:lang(en) .page-title { line-height: 1.02; letter-spacing: -0.02em; }
