/* KARIS MEDIA — 조리개와 구조도 (Aperture & blueprint) */

:root {
  --paper: #F4F2EE;
  --paper-2: #ECE9E3;
  --card: #FBFAF8;
  --navy: #0E4A78;
  --navy-deep: #0B3A5F;
  --ink: #0A1C2B;
  --ink-2: #10283C;
  --signal: #6BBEF3;
  --signal-2: #93D0F7;
  --text: #16212B;
  --muted: #55616C;
  --line: rgba(14, 74, 120, .14);
  --line-strong: rgba(14, 74, 120, .30);
  --on-ink: #EDF2F6;
  --on-ink-muted: #A6B5C2;
  --line-ink: rgba(237, 242, 246, .16);

  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
  /* Latin glyphs come from the monospace faces; Hangul falls through to Pretendard
     instead of an arbitrary system fallback with uneven spacing. */
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", "Menlo",
    "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --focus: var(--navy);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-ink {
  --focus: var(--signal);
  background: var(--ink);
  color: var(--on-ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
}
.on-ink .eyebrow { color: var(--signal); }

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.22;
  letter-spacing: -.03em;
  font-weight: 700;
}

.lead { color: var(--muted); font-size: clamp(1.02rem, 1.25vw, 1.125rem); }
.on-ink .lead { color: var(--on-ink-muted); }

.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: .8rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: scale(.98); }
.btn .arrow { display: inline-block; transition: transform .18s var(--ease); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }

.on-ink .btn-primary { background: var(--signal); color: var(--ink); }
.on-ink .btn-ghost { color: var(--on-ink); border-color: var(--line-ink); }

@media (hover: hover) {
  .btn-primary:hover { background: var(--navy-deep); }
  .btn-ghost:hover { border-color: var(--navy); }
  .on-ink .btn-primary:hover { background: var(--signal-2); }
  .on-ink .btn-ghost:hover { border-color: var(--on-ink); }
  .btn:hover .arrow { transform: translateX(3px); }
}

.btn.is-done { border-color: var(--signal); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 238, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--text);
  text-decoration: none;
}
.brand-logo {
  height: 42px;
  width: auto;
  mix-blend-mode: multiply;
}
.brand-name {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}
.site-nav ul {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
}
.site-nav ul a {
  position: relative;
  display: inline-block;
  padding: .5rem 0;
  color: var(--text);
  font-size: .975rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: .25rem;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.site-nav ul a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) {
  .site-nav ul a:hover::after { transform: scaleX(1); }
}
.nav-cta { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.menu-icon { position: relative; width: 22px; height: 14px; }
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.menu-icon::before { top: 2px; }
.menu-icon::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 6px; transform: rotate(-45deg); }

html.menu-open { overflow: hidden; }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 34px; }
  .brand-name { font-size: 1rem; padding-left: 10px; }

  /* Without JS the menu stays visible as a plain wrapped row. */
  .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-header { position: relative; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; }
  .site-nav ul { flex-wrap: wrap; gap: 0 18px; }

  .js .header-inner { flex-wrap: nowrap; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    z-index: 49;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: auto;
    padding: 16px var(--gutter) 40px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  /* Fade only after the visitor has used the menu button, so page load and
     breakpoint changes never show a fading ghost of the closed menu. */
  .js.menu-ready .site-nav {
    transition: opacity .2s ease, transform .24s var(--ease), visibility 0s linear .24s;
  }
  .js.menu-ready .site-nav.is-open {
    transition: opacity .2s ease, transform .24s var(--ease), visibility 0s;
  }
  .js .site-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .js .site-nav ul a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
  }
  .js .site-nav ul a::after { display: none; }
  .js .site-nav ul a[aria-current] { color: var(--navy); }
  .js .nav-cta { margin-top: 28px; min-height: 54px; font-size: 1.05rem; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(80px, 11vw, 150px); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2 { grid-column: 1 / span 7; margin-top: 20px; }
.section-head .lead { grid-column: 8 / span 5; align-self: end; margin-top: 20px; }

@media (max-width: 899px) {
  .section-head h2, .section-head .lead { grid-column: 1 / -1; }
}

/* ---------- hero: a lens that broadcasts ----------
   Camera lens (coated glass, focus ring) + Wi-Fi signal leaving its rim:
   the same idea as the KARIS MEDIA mark, drawn in colour on a dark stage. */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 120px);
  background:
    radial-gradient(55% 75% at 78% 48%, rgba(32, 112, 182, .42) 0%, rgba(32, 112, 182, 0) 62%),
    radial-gradient(30% 40% at 92% 12%, rgba(107, 190, 243, .16) 0%, rgba(107, 190, 243, 0) 70%),
    linear-gradient(180deg, #0A1C2B 0%, #06121D 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.hero-copy { grid-column: 1 / span 6; position: relative; z-index: 1; }
.hero-visual { grid-column: 7 / span 6; position: relative; }

.hero h1 {
  margin-top: 24px;
  color: #F3F7FA;
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: var(--signal-2); }

.hero-lead {
  max-width: 28em;
  margin-top: 24px;
  color: var(--on-ink-muted);
  font-size: clamp(1.05rem, 1.3vw, 1.17rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.lens {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-left: auto;
  overflow: visible;
}
.lens-text { font-family: var(--mono); }

@media (prefers-reduced-motion: no-preference) {
  /* 1) focus ring turns into place, 2) coating reflections settle,
     3) signal pulses outward three times (~4.8s total) and stays lit. No loop. */
  .lens-focus, .lens-coat { transform-box: view-box; transform-origin: 240px 280px; }
  .lens-focus { animation: lens-focus 1.6s var(--ease) both; }
  .lens-coat { animation: lens-coat 1.8s var(--ease) .15s both; }
  .lens-node { animation: lens-pulse 1.2s ease-out .75s 3 both; }
  .lens-arc { animation: lens-pulse 1.2s ease-out 3 both; }
  .lens-arc-1 { animation-delay: .9s; }
  .lens-arc-2 { animation-delay: 1.05s; }
  .lens-arc-3 { animation-delay: 1.2s; }
}
@keyframes lens-focus { from { transform: rotate(-35deg); } to { transform: none; } }
@keyframes lens-coat { from { transform: rotate(40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lens-pulse { 0% { opacity: .15; } 30% { opacity: 1; } 100% { opacity: 1; } }

@media (max-width: 899px) {
  .hero { padding-block: 28px 56px; }
  .hero-copy, .hero-visual { grid-column: 1 / -1; }
  .hero-visual { order: -1; width: min(300px, 74vw); margin: 0 auto 12px; }
  .lens { margin: 0 auto; }
}

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.service { padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 48px) 0 0; min-width: 0; }
.service + .service { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line-strong); }

.service-word {
  display: block;
  color: var(--navy);
  font-size: clamp(3.4rem, 8.4vw, 7rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.045em;
}
.service h3 { margin-top: 18px; font-size: 1.4rem; letter-spacing: -.02em; }
.service-intro { margin-top: 10px; color: var(--muted); max-width: 30em; }

.service-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; margin-bottom: 20px; counter-reset: sstep; }
.service-steps li {
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  padding: .36rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  counter-increment: sstep;
}
.service-steps li::before {
  content: "0" counter(sstep);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 400;
  color: var(--navy);
}

.steps-list { margin-top: 32px; }
.steps-list li {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  column-gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.steps-list .num {
  padding-top: .3em;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--navy);
}
.steps-list strong { font-weight: 650; }
.steps-list p { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: .98rem; }

.service-link {
  display: inline-flex;
  gap: .5em;
  margin-top: 8px;
  padding: .6rem 0;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}
.service-link .arrow { transition: transform .18s var(--ease); }
@media (hover: hover) { .service-link:hover .arrow { transform: translateX(3px); } }
.service-note { margin-top: 16px; color: var(--muted); font-size: .95rem; }

@media (max-width: 759px) {
  .services { grid-template-columns: 1fr; }
  .service { padding-right: 0; }
  .service + .service {
    margin-top: 56px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
}

/* ---------- work rows ---------- */

.work-list { border-top: 1px solid var(--line-ink); }
.work-item {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  padding: clamp(32px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--line-ink);
  transition: background-color .2s ease;
}
.work-meta {
  grid-column: 1 / span 3;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  line-height: 1.8;
  color: var(--on-ink-muted);
}
.work-meta .case-no { display: block; margin-bottom: 6px; color: var(--signal); font-size: .86rem; }
.work-main { grid-column: 4 / span 5; min-width: 0; }
.work-title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.work-title a { text-decoration: none; }
.work-title a::after { content: ""; position: absolute; inset: 0; }
.work-sub { margin-top: 8px; font-weight: 600; }
.work-desc { max-width: 32em; margin-top: 14px; color: var(--on-ink-muted); }
.work-side {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: .28rem .8rem;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  font-size: .88rem;
  line-height: 1.5;
}
.work-more { display: inline-flex; gap: .5em; color: var(--signal); font-weight: 600; }
.work-more .arrow { transition: transform .18s var(--ease); }

@media (hover: hover) {
  .work-item:hover { background-color: rgba(237, 242, 246, .035); }
  .work-item:hover .work-more .arrow { transform: translateX(4px); }
}

.work-foot { margin-top: clamp(32px, 4vw, 48px); }

@media (max-width: 899px) {
  .work-meta, .work-main, .work-side { grid-column: 1 / -1; }
  .work-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .work-meta .case-no { margin: 0; }
}

/* ---------- process ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.process-step {
  position: relative;
  min-width: 0;
  padding: 36px 24px 0 0;
  border-top: 2px solid var(--line-strong);
}
.process-step::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--navy);
  transition: background-color .35s ease;
}
.process-steps.reveal-wait .process-step::before { background: var(--paper); }
.process-step:nth-child(2)::before { transition-delay: .12s; }
.process-step:nth-child(3)::before { transition-delay: .24s; }
.process-step:nth-child(4)::before { transition-delay: .36s; }
.process-step:nth-child(5)::before { transition-delay: .48s; }
.process-no { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--navy); }
.process-step h3 { margin-top: 10px; font-size: 1.3rem; letter-spacing: -.02em; }
.process-step p { margin-top: 10px; color: var(--muted); font-size: .98rem; }

@media (max-width: 899px) {
  .process-steps { grid-template-columns: 1fr; margin-left: 7px; }
  .process-step {
    padding: 0 0 36px 30px;
    border-top: 0;
    border-left: 2px solid var(--line-strong);
  }
  .process-step:last-child { padding-bottom: 0; border-left-color: transparent; }
  .process-step::before { top: 4px; left: -8px; }
}

/* ---------- pricing ---------- */

.pricing { background: var(--paper-2); }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.tier {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  min-height: 250px;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--card);
  border: 1px solid var(--line);
}
.tier-label { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--muted); }
.tier-price {
  color: var(--ink);
  font-size: clamp(2.4rem, 4.3vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.tier-price small {
  margin-left: .15em;
  color: var(--navy);
  font-size: .4em;
  font-weight: 600;
  letter-spacing: 0;
}
.tier .service-link { margin-top: auto; align-self: flex-start; }

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.pricing-notes h3 { grid-column: 1 / span 4; font-size: 1.2rem; letter-spacing: -.02em; }
.pricing-notes ul {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
}
.pricing-notes li { position: relative; padding-left: 22px; color: var(--muted); }
.pricing-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 10px;
  height: 1.5px;
  background: var(--navy);
}
.pricing-foot { margin-top: 28px; color: var(--muted); font-size: .95rem; }

@media (max-width: 899px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
  .tier-label { flex-basis: 100%; }
  .tier .service-link { margin-top: 0; }
  .pricing-notes h3, .pricing-notes ul { grid-column: 1 / -1; }
  .pricing-notes ul { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
  align-items: start;
}
.about-copy { grid-column: 1 / span 6; }
.about-copy h2 { margin-top: 20px; }
.about-copy h2 .mono {
  display: inline-block;
  margin-top: .5em;
  color: var(--navy);
  font-size: .42em;
  font-weight: 500;
  letter-spacing: .16em;
}
.about-copy p { margin-top: 24px; max-width: 32em; color: var(--muted); }
.about-mark { grid-column: 8 / span 5; }
.about-logo { width: min(260px, 70%); height: auto; mix-blend-mode: multiply; }
.facts { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.facts > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  column-gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

@media (max-width: 899px) {
  .about-copy, .about-mark { grid-column: 1 / -1; }
}

/* ---------- contact ---------- */

.contact { padding-block: clamp(88px, 12vw, 160px); }
.contact h2 { max-width: 15em; margin-top: 20px; font-size: clamp(2.1rem, 5vw, 4.1rem); }
.contact-mail {
  display: inline-block;
  max-width: 100%;
  margin-top: clamp(32px, 5vw, 56px);
  padding-bottom: 4px;
  color: var(--on-ink);
  font-size: clamp(1.45rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  overflow-wrap: anywhere;
}
@media (hover: hover) { .contact-mail:hover { color: var(--signal-2); } }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.copy-status { min-height: 1.75em; margin-top: 14px; color: var(--signal); font-size: .95rem; }
.contact-note { margin-top: 4px; color: var(--on-ink-muted); font-size: .92rem; max-width: 40em; }

.contact-guide {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--line-ink);
}
.contact-guide h3 { grid-column: 1 / span 4; font-size: 1.2rem; letter-spacing: -.02em; }
.contact-guide ol {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  counter-reset: guide;
}
.contact-guide li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); color: var(--on-ink-muted); counter-increment: guide; }
.contact-guide li::before {
  content: "0" counter(guide);
  padding-top: .2em;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--signal);
}
.contact-guide strong { color: var(--on-ink); font-weight: 600; }

@media (max-width: 899px) {
  .contact-guide h3, .contact-guide ol { grid-column: 1 / -1; }
  .contact-guide ol { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 48px;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo { height: 52px; width: auto; mix-blend-mode: multiply; }
.footer-info { color: var(--muted); font-size: .93rem; line-height: 1.85; }
.footer-info strong { color: var(--text); font-weight: 700; }
.footer-info a { text-underline-offset: 3px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { display: inline-block; padding: .35rem 0; font-size: .95rem; text-decoration: none; }
@media (hover: hover) { .footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.copyright { margin-top: 36px; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); }
.footer-rep { margin-left: .9em; }
.contact-person { margin-top: 18px; color: var(--on-ink-muted); font-size: 1rem; }

/* ---------- mobile inquiry bar ---------- */

.mobile-cta { display: none; }

@media (max-width: 759px) {
  html { scroll-padding-bottom: 88px; }
  body { padding-bottom: 84px; }
  .mobile-cta {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 54px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(10, 28, 43, .28);
    transition: transform .25s var(--ease), opacity .2s ease, visibility 0s;
  }
  .mobile-cta.is-hidden,
  html.menu-open .mobile-cta {
    transform: translateY(150%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s var(--ease), opacity .2s ease, visibility 0s linear .25s;
  }
}

/* ---------- case pages ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: .92rem; }
.crumbs a { text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }

.case-hero { padding-block: clamp(32px, 5vw, 56px) clamp(24px, 3vw, 40px); }
.case-hero + .section { padding-top: clamp(48px, 6vw, 88px); }

.slate {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
}
.slate-stripe {
  height: 16px;
  background: repeating-linear-gradient(-55deg, var(--ink) 0 18px, var(--card) 18px 36px);
  border-bottom: 1px solid var(--ink);
}
.slate-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  padding: clamp(28px, 5vw, 64px);
}
.slate-title { grid-column: 1 / span 7; min-width: 0; }
.slate-title h1 {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.slate-sub { margin-top: 14px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--navy); }
.slate .facts { grid-column: 8 / span 5; margin-top: 0; align-self: end; }

@media (max-width: 899px) {
  .slate-title, .slate .facts { grid-column: 1 / -1; }
}

.case-intro-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
}
.case-intro-grid .eyebrow { grid-column: 1 / -1; }
.case-intro-grid h2 { grid-column: 1 / span 5; margin-top: 4px; }
.case-intro-text { grid-column: 7 / span 6; display: grid; gap: 20px; color: var(--muted); font-size: 1.08rem; }
@media (max-width: 899px) {
  .case-intro-grid h2, .case-intro-text { grid-column: 1 / -1; }
}

/* information architecture diagram */
.ia-section { background: var(--paper-2); }
.ia { position: relative; }
.ia-root {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--navy);
  background: var(--card);
  color: var(--navy);
  font-weight: 700;
}
.ia-root::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 100%;
  width: 1.5px;
  height: 34px;
  background: var(--line-strong);
}
.ia-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 32px 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1.5px solid var(--line-strong);
}
.ia-branch { position: relative; min-width: 0; }
.ia-branch::before {
  content: "";
  position: absolute;
  top: -27px;
  left: 18px;
  width: 1.5px;
  height: 26px;
  background: var(--line-strong);
}
.ia-node {
  display: block;
  padding: .62rem .9rem;
  background: var(--navy);
  color: #fff;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.4;
}
.ia-branch.is-external .ia-node {
  background: transparent;
  color: var(--navy);
  border: 1.5px dashed var(--navy);
}
.ia-tag {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .08em;
  opacity: .8;
}
.ia-leaves { margin: 12px 0 0 18px; padding-left: 0; border-left: 1.5px solid var(--line); }
.ia-leaves li { position: relative; padding: 4px 0 4px 16px; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.ia-leaves li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--line-strong);
}
.ia-caption { margin-top: 32px; color: var(--muted); font-size: .93rem; }

@media (max-width: 759px) {
  .ia-branches {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0 0 0 18px;
    padding: 34px 0 0 22px;
    border-top: 0;
    border-left: 1.5px solid var(--line-strong);
  }
  .ia-root::after { display: none; }
  .ia-branch::before { top: 20px; left: -22px; width: 22px; height: 1.5px; }
  .ia-branch:last-child::after {
    content: "";
    position: absolute;
    left: -24px;
    top: 21px;
    bottom: 0;
    width: 4px;
    background: var(--paper-2);
  }
}

/* feature list */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
}
.feature { padding: 26px 0 30px; border-bottom: 1px solid var(--line); min-width: 0; }
.feature-no { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--navy); }
.feature h3 { margin-top: 8px; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.45; }
.feature p { margin-top: 8px; color: var(--muted); font-size: .97rem; }

@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .features { grid-template-columns: 1fr; } }

.case-next-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: end;
}
.case-next-link { grid-column: 1 / span 7; position: relative; display: block; text-decoration: none; }
.case-next-link .eyebrow { margin-bottom: 18px; }
.case-next-title {
  display: block;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.case-next-sub { display: inline-flex; gap: .5em; margin-top: 10px; color: var(--signal); font-weight: 600; }
.case-next-sub .arrow { transition: transform .18s var(--ease); }
@media (hover: hover) { .case-next-link:hover .case-next-sub .arrow { transform: translateX(4px); } }
.case-next-cta { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.case-next-cta p { color: var(--on-ink-muted); }
@media (max-width: 899px) {
  .case-next-link, .case-next-cta { grid-column: 1 / -1; }
}

/* work index intro */
.page-intro { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 72px); }
.page-intro h1 {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.page-intro .lead { max-width: 36em; margin-top: 24px; }

/* 404 */
.notfound { padding-block: clamp(72px, 12vw, 160px); }
.notfound-code {
  font-family: var(--mono);
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--navy);
}
.notfound h1 { margin-top: 24px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1.25; }
.notfound p { margin-top: 16px; color: var(--muted); }
.notfound .hero-actions { margin-top: 32px; }

/* ---------- reveal ---------- */

.js [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].reveal-wait { opacity: 0; transform: translateY(18px); }
.js .process-steps[data-reveal].reveal-wait { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal].reveal-wait { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-cta, .hero-visual { display: none !important; }
  .on-ink { background: #fff; color: #000; }
}

/* ---------- client website screens (approved captures) ---------- */

.screens { margin: 0; --screen-shadow: 0 22px 54px rgba(10, 28, 43, .18); }
.on-ink .screens { --screen-shadow: 0 26px 64px rgba(0, 0, 0, .45); }

.screens-stage { position: relative; }
.screens.has-phone .screens-stage { padding: 0 clamp(44px, 11%, 150px) clamp(36px, 7%, 96px) 0; }

.screen-desktop {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--screen-shadow), 0 0 0 1px rgba(14, 74, 120, .12);
  color: inherit;
  text-decoration: none;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  background: #E9E6E0;
}
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C7C1B7; }
.screen-desktop img, .screen-phone img { width: 100%; height: auto; }

.screen-phone {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(92px, 23%, 250px);
  overflow: hidden;
  border: 6px solid #13283A;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--screen-shadow), 0 0 0 1px rgba(237, 242, 246, .14);
  color: inherit;
}

.screens figcaption {
  max-width: 46em;
  margin-top: 18px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}
.on-ink .screens figcaption { color: var(--on-ink-muted); }
.screens figcaption strong { color: var(--text); font-weight: 600; }
.on-ink .screens figcaption strong { color: var(--on-ink); }

/* in the work rows the whole row links to the case page */
.work-screens { grid-column: 4 / -1; margin-top: 8px; }
@media (max-width: 899px) { .work-screens { grid-column: 1 / -1; } }

/* case pages: large stage, images open in a viewer */
.case-screens .screens { max-width: 1100px; }
.zoom-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: #5E6A75;
}
a.screen-desktop, a.screen-phone { cursor: zoom-in; }
@media (hover: hover) {
  a.screen-desktop:hover, a.screen-phone:hover { box-shadow: var(--screen-shadow), 0 0 0 2px var(--signal); }
}
a.screen-desktop:focus-visible, a.screen-phone:focus-visible { outline-offset: 4px; }

@media (max-width: 759px) {
  .screens.has-phone .screens-stage { padding-right: 18%; padding-bottom: 14%; }
  .screen-phone { width: 30%; border-width: 4px; border-radius: 16px; }
  .zoom-hint { display: none; }
}

/* viewer */
/* Full-viewport sheet: close bar, image and caption share the height as three grid
   rows, so the image shrinks to fit instead of pushing the caption off-screen.
   Clicks on the empty sheet area still hit the <dialog> itself and close it. */
.lightbox {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  background: transparent;
  color: var(--on-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(6, 16, 26, .92); }
.lightbox-inner {
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr) auto;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
}
.lightbox-close {
  justify-self: end;
  min-height: 44px;
  padding: .5rem 1.1rem;
  border: 1.5px solid rgba(237, 242, 246, .4);
  border-radius: 999px;
  background: transparent;
  color: var(--on-ink);
  font-weight: 600;
  cursor: pointer;
}
.lightbox-close:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.lightbox img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption {
  max-width: 60em;
  color: #C3CFDA;
  font-size: .92rem;
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 599px) {
  .lightbox-caption { font-size: .85rem; line-height: 1.55; }
}
html.dialog-open { overflow: hidden; }
