/* Hallmark · genre: modern-minimal · macrostructure: Narrative Workflow
 * theme: custom (brand-derived) · tone: considered-technical · anchor hue: 153
 * mood: veiled — withhold, then resolve
 * F4 step-sequence knobs: numbering=1.0–4.0, layout=vertical rail, connector=chevron
 * section rhythm: hero (tonal wash) · services (index) · stages (full-bleed band)
 *   — three different shapes on purpose; the previous build ran two
 *     identical two-column lists back to back (audit: rhythm monotony)
 * N5 knobs: width=content-sized, backdrop=blur+saturate, anchor=top-centred
 * Ft2 knobs: order=logo/meta/credit, separator=space, density=spaced
 * enrichment: Tier-A CSS chevron rail, derived from the logo's gold K
 * contrast: pass (40–41) · nav: N5 · footer: Ft2 · slop: pass (42–45)
 * honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49)
 * icons: pass (30) · mobile: pass (34, 49, 50–57)
 */

/* ── reset floor ─────────────────────────────────────────────── */
html,
body {
  overflow-x: clip; /* `clip`, never `hidden` — gate 34 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* `proximity`, never `mandatory`. The stages section is intrinsically
     taller than a laptop viewport (4 numbered steps); mandatory snap
     would fight the user inside it. Proximity settles on a section when
     they land near one and otherwise stays out of the way. */
  scroll-snap-type: y proximity;
  scroll-padding-top: 5rem; /* clears the fixed nav pill */
}

/* One screen per section. `svh` rather than `vh` so mobile browser
   chrome appearing/disappearing doesn't resize the sections mid-scroll. */
main > section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}

/* The exception. Let it be as tall as it needs to be — it starts at the
   top of the screen and the reader scrolls through it. */
.stages {
  min-height: auto;
  justify-content: flex-start;
}

@supports not (height: 100svh) {
  main > section {
    min-height: 100vh;
  }
  .stages {
    min-height: auto;
  }
}

body {
  background: var(--color-paper);
  color: var(--color-neutral);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.72;
  word-break: keep-all; /* Hangul breaks at word boundaries only */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── shared ──────────────────────────────────────────────────── */
.wrap {
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Latin machine register — the outlier face, two roles only:
   the stage numerals and these micro-labels. (gate 38) */
.en {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

a {
  color: inherit;
}

/* Inline icons scale with their label and inherit its colour, so a
   single mark works on a filled pill and on a plain link alike. */
.icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: currentColor;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  transition: none; /* focus rings appear instantly — gate 15 */
}

/* ── reveal — the veil lifting.
   Content resolves out of a soft blur rather than sliding in. Hallmark's
   default rule is transform + opacity only; `filter` is a considered
   deviation here because the brief is "veiled" and a blur-to-sharp
   resolve is the one effect that actually says it. It stays on the
   compositor, runs once, and collapses entirely under reduced-motion.
   Gated behind `.js` so the page is readable without scripting. */
.js .sweep {
  opacity: 0;
  transform: translate3d(0, 0.75rem, 0);
  filter: blur(10px);
  transition:
    opacity var(--dur-veil) var(--ease-out),
    transform var(--dur-veil) var(--ease-out),
    filter var(--dur-veil) var(--ease-out);
}

.js .sweep.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger inside a group so a list resolves line by line, not at once. */
.js .svc__row:nth-child(2),
.js .stage:nth-child(2) {
  transition-delay: 130ms;
}
.js .svc__row:nth-child(3),
.js .stage:nth-child(3) {
  transition-delay: 260ms;
}
.js .stage:nth-child(4) {
  transition-delay: 390ms;
}

@media (prefers-reduced-motion: reduce) {
  .js .sweep,
  .js .svc__row,
  .js .stage {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 150ms linear;
    transition-delay: 0s;
  }
}

/* ── N5 · floating pill, carrying the logo lockup ────────────── */
.nav {
  position: fixed;
  z-index: var(--z-nav);
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center; /* gate 36 */
  gap: var(--space-lg);
  max-width: calc(100% - (var(--space-md) * 2));
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  /* Nearly opaque on purpose. At 0.82 the copy scrolling underneath
     stayed half-legible through the blur and the pill read as a smear
     across the text rather than as an object floating above it. */
  background: var(--color-paper-veil);
  box-shadow: 0 2px 10px oklch(23% 0.03 152 / 0.06);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.nav__mark {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav__mark img {
  height: 30px;
  width: auto;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  color: var(--color-brand-ink);
  background: var(--color-brand);
  text-decoration: none;
  white-space: nowrap; /* gate 49 */
  padding: var(--space-sm) var(--space-md);
  min-height: 36px;
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-short) var(--ease-out);
}

.nav__cta:hover {
  background: var(--color-brand-deep);
}

.nav__cta:active {
  transform: translateY(1px);
}

.nav__cta[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav__cta:active {
    transform: none;
  }
}

@media (max-width: 26rem) {
  .nav {
    gap: var(--space-md);
    padding-left: var(--space-md);
  }
  .nav__mark img {
    height: 18px;
  }
}

/* ── hero.
   Top padding clears the fixed pill; bottom runs 1.33× the top so
   the hero seats into the sequence below — gate 44(a). ───────── */
.hero {
  /* min-height + centring now place the content, so the padding only has
     to keep it off the edges and hold the bottom heavier than the top. */
  padding-block: var(--space-3xl) var(--space-4xl);
  /* A tonal wash, not a decorative gradient: two stops of the paper
     itself, no accent colour. Reads as light falling through the top
     of the page and gives the first screen depth without ornament.

     The stop is a fixed distance, not a percentage. As a percentage it
     stretched with the section — once the hero became a full screen the
     same 2% lightness step spread over twice the pixels and started to
     band on 8-bit displays. Fixed distance holds the density constant
     whatever the viewport does. */
  background: linear-gradient(
    180deg,
    var(--color-paper-2) 0,
    var(--color-paper) 420px
  );
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display);
  line-height: 1.22;
  letter-spacing: -0.032em;
  color: var(--color-ink);
  /* No measure cap. The headline is short enough to hold a single line
     at every width down to ~480px; the 15ch cap was what forced it onto
     two. `balance` keeps the break even when it does wrap on phones. */
  max-width: none;
  text-wrap: balance;
  overflow-wrap: anywhere; /* gate 51 */
  min-width: 0;
}

/* Emphasis is colour, never italic — gate 38a. */
.hero__title em {
  font-style: normal;
  color: var(--color-brand);
  white-space: nowrap;
}

.hero__lede {
  margin-top: var(--space-xl);
  /* 52ch ≈ 26 Hangul characters — inside the 45–75ch gate and right
     for Korean, whose glyphs run ~2× the `ch` unit. */
  max-width: 52ch;
  font-size: var(--text-md);
  line-height: 1.78;
}

/* ── services — three named lines, each a heading beside its
   description. A heading/body pair, so gate 54 never applies. ── */
.svc {
  padding-block: var(--space-3xl) var(--space-4xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.svc__heading {
  margin-bottom: 0;
}

/* Names only. No rules, no columns — space does the separating. A
   bordered two-column table reads as a spec sheet, which is what this
   section is deliberately not. */
.svc__index {
  list-style: none;
  margin-top: var(--space-2xl);
  display: grid;
  gap: var(--space-lg);
}

.svc__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.32;
  letter-spacing: -0.026em;
  color: var(--color-ink);
  overflow-wrap: anywhere; /* gate 51 */
  min-width: 0;
}

/* The AX tag. Brand green, not brass — brass fails 4.5:1 at this
   size on bone paper (2.44:1), so it stays off small text. */
.svc__abbr {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-brand);
  padding: 0.15em 0.5em;
  border: var(--rule-hair) solid var(--color-brand-wash);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* The one clause left standing on the whole section. 성공사진관 is the
   only publicly nameable thing this company has, so it survives the cut
   — set quiet, in the body face, so it reads as an aside. */
.svc__of {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0;
  color: var(--color-muted);
}

.svc__note {
  margin-top: var(--space-2xl);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ── stages — the spine.
   A brass rail runs the length of the sequence with a chevron at
   each stage. The chevron is the logo's own K, rebuilt in CSS —
   decoration with a semantic anchor (gate 45), not an ornament. ── */
/* Full-bleed tonal band. Without it the page is a flat white sheet and
   every section reads at the same depth — the audit's rhythm finding.
   Text colour is restated here so no surface can go ink-on-ink (gate 41). */
.stages {
  padding-block: var(--space-3xl) var(--space-4xl);
  background: var(--color-paper-2);
  color: var(--color-neutral);
  border-block: var(--rule-hair) solid var(--color-rule);
}

.stages__heading {
  margin-bottom: var(--space-2xl);
}

.stages__list {
  position: relative;
}

/* The brass rail. It starts at the first chevron and fades out below
   the last one — a hard stop mid-column reads as a broken border,
   and running it to the container edge leaves a dangling tail. */
.stages__list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(var(--space-2xl) + 0.55em);
  bottom: 0;
  width: var(--rule-hair);
  background: linear-gradient(
    var(--color-gold-wash) 62%,
    transparent 100%
  );
}

/* The rule spans the full column so it crosses the rail — rail plus
   rungs reads as a ladder. Indenting the rule instead left the rail
   floating 50px away from everything else. */
.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-2xl);
  padding-left: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.stage:first-child {
  border-top-color: var(--color-rule-2);
}

/* the chevron node — the K of the mark, drawn with two borders,
   sitting on the rail */
.stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-2xl) + 0.3em);
  width: 8px;
  height: 8px;
  border-top: var(--rule-stage) solid var(--color-gold);
  border-right: var(--rule-stage) solid var(--color-gold);
  transform: rotate(45deg);
}

.stage__head {
  display: grid;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.34;
  letter-spacing: -0.022em;
  color: var(--color-ink);
  overflow-wrap: anywhere; /* gate 51 */
  min-width: 0;
}

.stage__no {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-stage);
  line-height: 1;
  letter-spacing: -0.04em;
  /* gold-deep clears 3:1 on bone, and this is large display text */
  color: var(--color-gold-deep);
}

/* Hangul phase label — no uppercase, no Latin tracking. */
.stage__phase {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--color-brand);
}

.stage__text {
  max-width: 26ch;
}

/* Single column throughout. The two-column split existed to hold an
   evidence paragraph beside each statement; there are no paragraphs
   left, so the second column is gone rather than left empty. */
@media (min-width: 60rem) {
  .stage {
    padding-left: var(--space-2xl);
  }
}

/* ── contact — the one global action, at the foot of the sequence ─ */
/* No border-top — the stages band already closes with one, and two
   hairlines a pixel apart read as a rendering fault. */
.contact {
  padding-block: var(--space-4xl) var(--space-4xl);
}

.contact__line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-s);
  line-height: 1.3;
  letter-spacing: -0.028em;
  color: var(--color-ink);
  max-width: 20ch;
  margin-bottom: var(--space-lg);
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Two ways in, ranked. KakaoTalk is the outlined pill — it is where
   most Korean enquiries will actually start — and the address stays a
   plain typographic link beside it. Body face throughout; the outlier
   is already spent on the numerals and the micro-labels. */
.contact__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
}

.contact__link {
  display: inline-flex;
  align-items: center; /* gate 36 */
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-md);
  line-height: 1;
  color: var(--color-brand);
  text-decoration: none;
  white-space: nowrap; /* gate 49 */
  min-height: 44px;
  padding-block: var(--space-sm);
  border-bottom: var(--rule-stage) solid var(--color-gold-wash);
  transition: border-color var(--dur-short) var(--ease-out);
}

.contact__link:hover {
  border-bottom-color: var(--color-gold);
}

.contact__link:active {
  border-bottom-color: var(--color-brand);
}

.contact__link[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.contact__link--kakao {
  padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid var(--color-brand-wash);
  border-radius: var(--radius-pill);
  transition:
    border-color var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out);
}

.contact__link--kakao:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-wash);
}

.contact__link--kakao:active {
  border-color: var(--color-brand-deep);
}

.contact__aside {
  margin-top: var(--space-xl);
  max-width: 48ch;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

@media (max-width: 26rem) {
  .contact__link {
    font-size: var(--text-base);
  }
}

/* ── Ft2 · inline single line, anchored by the mark ──────────── */
.foot {
  padding-block: var(--space-xl) var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.foot__mark {
  margin-bottom: var(--space-lg);
}

.foot__mark img {
  height: 26px;
  width: auto;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline; /* gate 36 */
  gap: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.foot__row span {
  white-space: nowrap;
}
