/* GMC homepage draft (2026-11-23)
   One visual device: the dot. It appears as the hero halftone field,
   the service pictograms and the process connector.
   Colors and logo rules follow the GMC brand tokens. */

:root {
  /* brand tokens (GMC design guide, semantic layer) */
  --surface: #ffffff;
  --surface-tint: #f3f8f5;
  --hairline: #d9e1dc;
  --hairline-strong: #b6c2bb;
  --ink: #42484e;
  --ink-strong: #2a2f33;
  --ink-muted: #6b7278;
  --brand-400: #3fb088;
  --brand-500: #3aa674;
  --brand-700: #32816b;
  --brand-ink: #2e7762;
  --brand-tint: #e4f3ea;
  --on-brand: #ffffff;
  --charcoal-900: #2a2f33;

  --font-kr: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-latin: "Outfit", "IBM Plex Sans KR", system-ui, sans-serif;

  /* web type scale */
  --fs-hero: clamp(2.25rem, 1.05rem + 4.6vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 1rem;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 8vw, 112px);

  /* leaf corners: the asymmetric rounding of the logo mark */
  --leaf-lg: 56px 10px 56px 10px;
  --leaf-md: 28px 6px 28px 6px;
  --leaf-sm: 16px 4px 16px 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-kr);
  font-size: var(--fs-body);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.nb { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink-strong); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 26px;
}
.site-header .logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-strong); font-size: 1.0625rem; }
.nav a:hover { color: var(--brand-ink); }
.nav a[aria-current="page"] { color: var(--brand-ink); }
.nav a.btn, .nav a.btn:hover { color: var(--on-brand); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid var(--brand-700);
  background: var(--brand-700); color: var(--on-brand);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--ink-strong); border-color: var(--hairline-strong); }
.btn--ghost:hover { background: var(--surface-tint); border-color: var(--ink-strong); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 1rem; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink-strong); }
.btn--light:hover { background: var(--brand-tint); border-color: var(--brand-tint); }
.arrow::after { content: "→"; font-family: var(--font-latin); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 5vw, 72px) clamp(56px, 6vw, 88px); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-size: var(--fs-hero); line-height: 1.24; font-weight: 700;
  letter-spacing: -0.035em; color: var(--ink-strong);
}
.hero h1 > span { display: block; }
.ph { display: inline-block; }
.hero__lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 31em; font-size: var(--fs-lead); line-height: 1.8; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* halftone field: three dot layers of growing radius, each masked a little tighter */
.dotfield { position: absolute; z-index: 1; pointer-events: none; }
.dotfield i { position: absolute; inset: 0; display: block; background-repeat: repeat; background-size: 14px 14px; background-position: center; }
.dotfield i:nth-child(1) {
  background-image: radial-gradient(circle at 7px 7px, var(--brand-400) 0 1px, transparent 1.4px);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 58% 50%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 58% 50%, #000 35%, transparent 100%);
}
.dotfield i:nth-child(2) {
  background-image: radial-gradient(circle at 7px 7px, var(--brand-500) 0 2.1px, transparent 2.5px);
  -webkit-mask-image: radial-gradient(ellipse 36% 46% at 62% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 36% 46% at 62% 50%, #000 30%, transparent 100%);
}
.dotfield i:nth-child(3) {
  background-image: radial-gradient(circle at 7px 7px, var(--brand-700) 0 3.3px, transparent 3.7px);
  -webkit-mask-image: radial-gradient(ellipse 22% 36% at 66% 50%, #000 25%, transparent 100%);
          mask-image: radial-gradient(ellipse 22% 36% at 66% 50%, #000 25%, transparent 100%);
}
/* in the hero the field sits to the right of the lead, under the headline */
.hero .dotfield { right: -10%; top: 44%; width: 66%; height: 70%; }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--surface-tint); }
.section__head { max-width: 46em; margin-bottom: clamp(40px, 5vw, 72px); }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; }
.section h2 {
  font-size: var(--fs-h2); line-height: 1.3; font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink-strong);
}
.section__head p { margin-top: 14px; font-size: var(--fs-lead); color: var(--ink-muted); }
.textlink {
  font-weight: 600; color: var(--brand-ink); text-decoration: none; white-space: nowrap;
  border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
}
.textlink:hover { color: var(--ink-strong); }

/* ---------- services: three groups of different width ---------- */
.groups { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.group { background: var(--surface); border-radius: var(--leaf-md); padding: clamp(28px, 3.4vw, 48px); }
.group--a { grid-column: span 4; }
.group--b { grid-column: span 8; }
.group--c { grid-column: span 12; }
.group__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.group__head h3 { font-size: 1.125rem; font-weight: 700; color: var(--brand-ink); line-height: 1.5; }
.group__head img { width: clamp(96px, 10vw, 132px); height: auto; margin: -4px -4px 0 0; }
.group__items { display: grid; gap: clamp(24px, 3vw, 44px); margin-top: clamp(20px, 3vw, 36px); }
.group--b .group__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group--c .group__items { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 66.666%; }
.svc-link { display: block; text-decoration: none; color: inherit; }
.svc-link h4 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.025em; color: var(--ink-strong); }
.svc-link h4 span.u { background-image: linear-gradient(var(--brand-500), var(--brand-500)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 3px; }
.svc-link:hover h4 span.u, .svc-link:focus-visible h4 span.u { background-size: 100% 2px; }
.svc-link p { margin-top: 10px; font-size: var(--fs-small); line-height: 1.75; color: var(--ink); text-wrap: pretty; }

/* ---------- case panels ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case {
  position: relative; overflow: hidden; grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(28px, 4vw, 64px);
  min-height: 600px; padding: clamp(36px, 5vw, 72px) 0 0 clamp(28px, 5vw, 72px);
  border-radius: var(--leaf-lg);
}
.case--green { background: var(--brand-700); color: #fff; }
.case--charcoal { background: var(--charcoal-900); color: #fff; }
.case--tint { background: var(--brand-tint); color: var(--ink); }
.case--soft { background: var(--surface-tint); color: var(--ink); }
.case__text { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: clamp(36px, 5vw, 72px); }
.case__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; }
.case__kind { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; }
.case--tint .case__kind { background: var(--surface); color: var(--brand-ink); }
.case--soft .case__kind { background: var(--brand-tint); color: var(--brand-ink); }
.case__when { font-family: var(--font-latin), var(--font-kr); letter-spacing: 0.01em; opacity: 0.9; }
.case--tint .case__when, .case--soft .case__when { color: var(--ink-strong); }
.case h2, .case h3 {
  margin-top: 22px; font-size: var(--fs-h3); line-height: 1.34; font-weight: 700; letter-spacing: -0.03em; color: inherit;
}
.case--tint h2, .case--tint h3, .case--soft h2, .case--soft h3 { color: var(--ink-strong); }
.case__sum { margin-top: 18px; font-size: var(--fs-body); line-height: 1.8; opacity: 0.94; }
.case__more { margin-top: auto; padding-top: 34px; }
.case__more a { font-weight: 600; text-decoration: none; color: inherit; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.case--tint .case__more a, .case--soft .case__more a { color: var(--brand-ink); }

/* one rule for captures: the desktop capture is anchored bottom-right and bleeds off the right and bottom edges;
   the phone stands beside it and never covers the desktop capture */
.case__visual { position: relative; align-self: end; min-height: 380px; }
.shot { overflow: hidden; background: #fff; border-radius: 14px 0 0 0; border: 1px solid rgba(255, 255, 255, 0.35); border-right: 0; border-bottom: 0; }
.case--tint .shot, .case--soft .shot { border-color: var(--hairline-strong); }
.shot img { width: 100%; }
.shot--desktop { width: 128%; margin-left: 31%; }
.case__visual--solo .shot--desktop { width: 118%; margin-left: 4%; }
.shot--phone {
  position: absolute; left: 0; bottom: 0; width: 27%;
  border-radius: 24px 24px 0 0; border: 6px solid var(--ink-strong); border-bottom: 0;
}
.case--charcoal .shot--phone, .case--green .shot--phone { border-color: #14181a; }
/* two sites in one case: two desktop captures, both bleeding off the bottom */
.case__visual--duo { margin-bottom: -7%; padding-right: clamp(20px, 3vw, 44px); }
.case__visual--duo .shot { width: 78%; border-radius: 12px 12px 0 0; border: 1px solid rgba(255, 255, 255, 0.35); border-bottom: 0; }
.case__visual--duo .shot:nth-child(2) { position: relative; z-index: 1; margin: -38% 0 0 22%; }

/* cases without a usable screen: half-width panel, the system drawn as large pictograms on a dotted line */
.case--half { grid-column: span 1; display: flex; flex-direction: column; align-items: flex-start; min-height: 0; padding: clamp(32px, 4vw, 56px); }
.case--half .case__more { padding-top: 30px; }
.flows { display: grid; gap: 26px; width: 100%; margin-top: auto; padding-top: clamp(32px, 4vw, 52px); }
.flow__label { font-size: 0.9375rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 12px; }
.case--green .flow__label, .case--charcoal .flow__label, .frame--green .flow__label, .frame--charcoal .flow__label { color: #fff; opacity: 0.85; }
.flow { --ico: clamp(64px, 7vw, 92px); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.flow li { position: relative; padding-right: 14px; font-size: var(--fs-small); font-weight: 600; line-height: 1.5; color: var(--ink-strong); }
.flow li img { display: block; width: var(--ico); height: var(--ico); margin-bottom: 12px; }
.flow li + li::before {
  content: ""; position: absolute; top: calc(var(--ico) / 2 - 3px); height: 6px;
  left: calc(-100% + var(--ico) + 10px); width: calc(100% - var(--ico) - 20px);
  background-image: radial-gradient(circle, var(--brand-500) 0 2px, transparent 2.4px);
  background-size: 12px 6px; background-repeat: repeat-x; background-position: left center;
}
.flow--2 { grid-auto-columns: minmax(0, 33.333%); justify-content: start; }
.case--green .flow li, .case--charcoal .flow li, .frame--green .flow li, .frame--charcoal .flow li { color: #fff; }
.case--green .flow li + li::before, .case--charcoal .flow li + li::before, .frame--green .flow li + li::before, .frame--charcoal .flow li + li::before { background-image: radial-gradient(circle, #fff 0 2px, transparent 2.4px); opacity: 0.75; }
.case__note { margin-top: 12px; font-size: 0.9375rem; line-height: 1.7; opacity: 0.82; }
.section--flush { padding-top: 0; }
.section--tight-top { padding-top: clamp(24px, 3vw, 40px); }

/* ---------- process (4 steps on one dotted line) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps::before {
  content: ""; position: absolute; left: 0; right: calc((100% - 84px) / 4 - 60px); top: 27px; height: 6px;
  background-image: radial-gradient(circle, var(--brand-500) 0 2px, transparent 2.4px);
  background-size: 14px 6px; background-repeat: repeat-x;
}
.step { position: relative; }
.step__no {
  position: relative; display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 22px 5px 22px 5px;
  background: var(--brand-700); color: #fff;
  font-family: var(--font-latin); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.02em;
  box-shadow: 0 0 0 10px var(--surface);
}
.section--tint .step__no { box-shadow: 0 0 0 10px var(--surface-tint); }
.step h3 { margin-top: 26px; font-size: 1.375rem; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-strong); }
.step p { margin-top: 10px; font-size: var(--fs-small); line-height: 1.75; }

/* ---------- contact band ---------- */
.contact { position: relative; overflow: hidden; background: var(--surface-tint); border-radius: var(--leaf-lg); padding: clamp(44px, 7vw, 104px) clamp(28px, 6vw, 96px); }
.contact > *:not(.dotfield) { position: relative; z-index: 2; }
.contact h2 { font-size: var(--fs-h2); }
.contact p { margin-top: 18px; max-width: 32em; font-size: var(--fs-lead); line-height: 1.8; }
.contact__mail {
  display: inline-block; margin-top: 38px;
  font-family: var(--font-latin); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem); line-height: 1.3;
  color: var(--ink-strong); text-decoration: none; border-bottom: 2px solid var(--brand-500); padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--brand-ink); }
.contact__actions { margin-top: 34px; }
.contact .dotfield { position: absolute; z-index: 1; right: -14%; top: -30%; width: 64%; height: 160%; opacity: 0.6; }

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 96px) 48px; font-size: var(--fs-small); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.site-footer .logo img { height: 34px; width: auto; }
.biz { display: grid; gap: 8px; }
.biz div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.biz dt { color: var(--ink-muted); }
.biz dd { color: var(--ink-strong); font-weight: 500; }
.foot-links { display: grid; gap: 10px; justify-items: start; }
.foot-links a { color: var(--ink-strong); text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--ink-muted); }

/* ---------- inner pages ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.035em; color: var(--ink-strong); }
.page-head p { margin-top: 22px; max-width: 38em; font-size: var(--fs-lead); line-height: 1.8; }
.page-head .dotfield { right: -10%; top: -40%; width: 60%; height: 180%; opacity: 0.6; }
.crumb { margin-bottom: 22px; font-size: var(--fs-small); font-weight: 600; color: var(--brand-ink); }
.crumb a { text-decoration: none; }

/* service detail blocks */
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--hairline); }
.svc:first-of-type { border-top: 0; }
.svc__head img { width: 88px; height: 88px; }
.svc__no { margin-top: 26px; font-family: var(--font-latin); font-weight: 600; color: var(--brand-ink); font-size: 1.0625rem; }
.svc__head h2 { margin-top: 6px; font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; color: var(--ink-strong); }
.svc__head .svc__group { margin-top: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--brand-ink); }
.svc__lead { font-size: var(--fs-lead); line-height: 1.8; color: var(--ink-strong); font-weight: 500; }
.svc__cols { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
.svc h3 { font-size: 1.0625rem; font-weight: 700; color: var(--brand-ink); margin-bottom: 12px; }
.dotlist { display: grid; gap: 10px; }
.dotlist li { position: relative; padding-left: 20px; line-height: 1.7; }
.dotlist li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--surface-tint); border: 1px solid var(--hairline); font-size: 0.9375rem; font-weight: 500; color: var(--ink-strong); line-height: 1.5; }
.chips--latin li { font-family: var(--font-latin); letter-spacing: 0.01em; }
.svc__wide { grid-column: 1 / -1; }
.rel { display: grid; gap: 8px; }
.rel a { color: var(--ink-strong); font-weight: 600; text-underline-offset: 4px; }
.rel span { color: var(--ink-muted); font-weight: 400; }
.rel a .nb { color: inherit; font-weight: inherit; }
.svc__lead, .hero__lead, .page-head p, .case__sum, .prose p { text-wrap: pretty; }
.dotlist li { text-wrap: balance; }
@media (min-width: 1021px) { .svc__head { position: sticky; top: 32px; align-self: start; } }

/* case detail */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--leaf-md); background: var(--surface-tint); overflow: hidden; }
.facts div { padding: 28px 32px; border-left: 1px solid var(--hairline); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 0.9375rem; font-weight: 600; color: var(--brand-ink); }
.facts dd { margin-top: 6px; font-size: 1.125rem; font-weight: 600; color: var(--ink-strong); line-height: 1.6; }
.prose { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 64px); padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--hairline); }
.prose h2 { font-size: 1.5rem; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-strong); }
.prose p, .prose li { font-size: var(--fs-lead); line-height: 1.85; }
.prose .who { font-weight: 700; color: var(--brand-ink); font-size: 1.0625rem; margin-bottom: 6px; }
.prose .who + p { margin-bottom: 26px; }
.prose .note { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-muted); }
.gallery { display: grid; gap: 28px; padding-block: clamp(12px, 3vw, 36px) clamp(48px, 6vw, 88px); }
.frame { background: var(--surface-tint); border-radius: var(--leaf-lg); padding: clamp(24px, 4vw, 64px) clamp(24px, 4vw, 64px) 0; overflow: hidden; }
.frame--green { background: var(--brand-700); }
.frame--charcoal { background: var(--charcoal-900); }
.frame__pair { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 2.6fr); gap: clamp(16px, 3vw, 40px); align-items: end; }
.frame .shot { border-radius: 12px 12px 0 0; border: 1px solid var(--hairline-strong); border-bottom: 0; }
.frame .shot--phone { position: static; width: auto; border: 5px solid var(--ink-strong); border-bottom: 0; border-radius: 22px 22px 0 0; }
.frame figcaption { padding: 18px 0 22px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-strong); }
.frame--green figcaption, .frame--charcoal figcaption { color: #fff; }
.frame--flow { padding-bottom: clamp(24px, 4vw, 64px); }
.frame--flow .flows { margin-top: 0; padding-top: 0; gap: clamp(28px, 4vw, 48px); }
.frame--flow .flow { --ico: clamp(72px, 9vw, 124px); }
.frame--flow .flow li { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); }
.sub-title { margin-top: clamp(48px, 6vw, 88px); margin-bottom: 6px; font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; color: var(--ink-strong); }
.sub-title span { display: block; margin-bottom: 6px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; color: var(--brand-ink); }
.sub-title + .gallery { padding-top: 24px; }
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 7.5em 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--hairline); font-size: var(--fs-body); line-height: 1.8; }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time, .timeline .when { font-family: var(--font-latin); font-weight: 600; color: var(--brand-ink); font-size: 1.0625rem; }
.nextprev { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 36px; border-top: 1px solid var(--hairline); }

/* simple info rows (company, contact, privacy) */
.rows { display: grid; }
.rows > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 64px); padding-block: 26px; border-top: 1px solid var(--hairline); }
.rows > div:first-child { border-top: 0; }
.rows dt { font-weight: 700; color: var(--ink-strong); font-size: 1.125rem; }
.rows dd { font-size: var(--fs-lead); line-height: 1.85; }
.rows dt.latin, .rows .latin { font-family: var(--font-latin); }

/* page head: keep the intro clear of the dot field */
@media (min-width: 1021px) and (max-width: 1399px) { .page-head p { max-width: min(38em, 56%); } }
@media (max-width: 1020px) {
  /* narrow screens: the field becomes a band under the text, like the home hero */
  .page-head { padding-bottom: clamp(160px, 28vw, 240px); }
  .page-head .dotfield { top: auto; bottom: 0; right: -8%; width: 116%; height: clamp(150px, 26vw, 220px); }
  .page-head--case { padding-bottom: clamp(48px, 6vw, 88px); }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { padding-bottom: clamp(190px, 30vw, 250px); }
  .hero .dotfield { left: -12%; right: -12%; width: auto; top: auto; bottom: 0; height: clamp(150px, 24vw, 200px); }
  .group--a, .group--b, .group--c { grid-column: 1 / -1; }
  .group--b .group__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group--c .group__items { max-width: none; }
  .case { grid-template-columns: minmax(0, 1fr); padding-right: 0; min-height: 0; }
  .case__text { padding-right: clamp(28px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 44px); }
  .case__visual { min-height: 0; }
  .shot--desktop { width: 86%; margin-left: 31%; }
  .case__visual--solo .shot--desktop { width: 100%; margin-left: 6%; }
  .case--half { grid-column: 1 / -1; padding: clamp(32px, 4vw, 56px) clamp(28px, 5vw, 72px); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .svc, .prose, .rows > div { grid-template-columns: 1fr; gap: 18px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: 0; border-top: 1px solid var(--hairline); }
  .facts div:first-child { border-top: 0; }
}
@media (max-width: 700px) {
  :root { --leaf-lg: 36px 8px 36px 8px; --fs-body: 1rem; }
  .site-header .wrap { padding-block: 18px; flex-wrap: wrap; row-gap: 14px; }
  .site-header .logo img { height: 28px; }
  .nav { gap: 18px; width: 100%; justify-content: space-between; }
  .nav a { font-size: 1rem; }
  .nav .btn { display: none; }
  .hero { padding-bottom: 190px; }
  .hero .dotfield { height: 160px; }
  .group--b .group__items, .group--c .group__items { grid-template-columns: minmax(0, 1fr); }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  /* phones: one capture per panel, large enough to read */
  .case__visual .shot--desktop { display: none; }
  .case__visual .shot--phone { position: static; width: 66%; }
  .case__visual--solo .shot--desktop, .case__visual--duo .shot { display: block; }
  .case__visual--solo .shot--desktop { width: 118%; margin-left: 0; }
  .case__visual--duo { margin-bottom: 0; padding-right: 0; }
  .case__visual--duo .shot { width: 112%; }
  .case__visual--duo .shot:nth-child(2) { display: none; }
  /* steps: chips on a vertical dotted line */
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .steps::before { display: block; left: 27px; right: auto; top: 0; bottom: 0; width: 6px; height: auto;
    background-image: radial-gradient(circle, var(--brand-500) 0 2px, transparent 2.4px); background-size: 6px 14px; background-repeat: repeat-y; }
  .step { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 20px; }
  .step__no { grid-row: span 2; }
  .step h3 { margin-top: 4px; }
  .step p { margin-top: 6px; }
  .flow { --ico: 56px; }
  .flow li { font-size: 0.9375rem; padding-right: 10px; overflow-wrap: anywhere; }
  .contact .dotfield { right: -34%; top: auto; bottom: -34%; width: 96%; height: 62%; opacity: 0.5; }
  .frame--flow .flow { --ico: 60px; }
  .biz div { grid-template-columns: 1fr; gap: 0; }
  .svc__cols { grid-template-columns: 1fr; }
  .frame__pair { grid-template-columns: 1fr; }
  .frame .shot--phone { width: 66%; }
  .frame__pair .shot:first-child { display: none; }
  .frame__pair--desktop-only .shot:first-child { display: block; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .btn { min-height: 50px; padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
