/* ==========================================================================
   Forty Two — site.css  ·  v3 "Warm light"
   Daylight and lamplight, ink type, very little else.
   ========================================================================== */

:root {
  --paper:   #FAF7F2;
  --wall:    #ECE3D6;
  --stone:   #F0E9DF;
  --ink:     #1E1915;
  --ink-2:   #574E46;
  --ink-3:   #6C6258;
  --muted:   #85776B;   /* display only (large text) */
  --line:    rgb(30 25 21 / 0.09);
  --line-2:  rgb(30 25 21 / 0.16);

  --accent:  #D4532C;
  --apricot: #F2B385;
  --night:   #1C1713;
  --cream:   #F7F0E6;
  --cream-2: #B9AD9F;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Malgun Gothic", system-ui, sans-serif;

  --max: 1200px;
  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html:lang(ko) body { line-height: 1.7; letter-spacing: -0.015em; }
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }

/* Paper grain: keeps the flat colour from feeling like a screen */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .09 0 0 0 0 .06 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--apricot); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 600;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Logo ---------------------------------------------------------- */

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; white-space: nowrap; }
.logo-mark { width: 24px; height: 24px; flex: none; }
.logo-mark .sq { fill: var(--ink); }
.logo-mark .ci { fill: var(--accent); }

/* ---------- Navigation ---------------------------------------------------- */

.nav { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: rgb(250 247 242 / 0.6);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled .nav-inner { background: rgb(250 247 242 / 0.86); box-shadow: 0 10px 30px -18px rgb(60 40 20 / 0.3); }

.nav-links { display: none; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgb(30 25 21 / 0.05); }
@media (min-width: 760px) { .nav-links { display: flex; } }

.nav-right { display: flex; align-items: center; gap: 4px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s;
}
.lang:hover { color: var(--ink); background: rgb(30 25 21 / 0.05); }
.lang svg { width: 16px; height: 16px; }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap;
  transition: transform 0.3s var(--ease), background-color 0.2s, box-shadow 0.3s;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgb(30 25 21 / 0.55); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgb(30 25 21 / 0.04); transform: translateY(-1px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Shared type --------------------------------------------------- */

.eyebrow { font-size: 15px; font-weight: 550; color: var(--ink-3); letter-spacing: -0.01em; }

.title {
  margin-top: 16px;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 650; line-height: 1.1; letter-spacing: -0.04em;
}
html:lang(ko) .title { line-height: 1.22; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 32em; }

.section { padding-block: clamp(110px, 13vw, 180px); }

/* ---------- Hero: a wall in Seoul, lit by whatever the sky is doing now --- */

.hero {
  --sun-1: #FFFDF8; --sun-2: #FFE8C8;
  --glow: rgb(255 214 168 / 0.6);
  --rot: -12deg; --skew: -18deg; --sun-a: 1; --lamp: 0;
  --mx: 0px; --my: 0px;
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(110px, 17vh, 168px);
  overflow: hidden;
  background: var(--hero-wall, var(--wall));
}
.sun { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sun-bloom {
  position: absolute; right: -18%; top: -38%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.sun-lamp {
  position: absolute; left: -16%; bottom: -46%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 168 96 / 0.55), transparent);
  opacity: var(--lamp); transition: opacity 2s;
}
.sun-drift {
  position: absolute; right: 3%; top: 4%;
  width: clamp(250px, 42vw, 620px); aspect-ratio: 1 / 1.08;
  animation: drift 34s ease-in-out infinite alternate;
}
.sun-window {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 4.5%;
  opacity: var(--sun-a);
  transform: translate(var(--mx), var(--my)) rotate(var(--rot)) skewX(var(--skew));
  transition: transform 1.6s var(--ease), opacity 2s;
  filter: blur(9px);
  overflow: hidden;
}
.sun-window i { border-radius: 5px; background: linear-gradient(160deg, var(--sun-1) 15%, var(--sun-2)); }
.sun-leaves { position: absolute; inset: -8% -10% auto auto; width: 100%; max-width: none; transform-origin: 92% 4%; animation: sway 8s ease-in-out infinite alternate; }
.sun-leaves use { fill: rgb(104 78 52 / 0.24); }
.sun-leaves .br { fill: none; stroke: rgb(104 78 52 / 0.24); stroke-linecap: round; }
@keyframes drift { from { transform: translate(-1.5%, -1.2%); } to { transform: translate(1.5%, 1.8%); } }
@keyframes sway { from { transform: rotate(-1.8deg); } to { transform: rotate(2.4deg) translateX(-8px); } }


.display {
  margin-top: 28px;
  font-size: clamp(42px, 7.2vw, 106px);
  font-weight: 660; line-height: 1.02; letter-spacing: -0.048em;
}
.display .line { display: block; }
.display .soft { color: var(--muted); }
@media (min-width: 900px) { .display .keep { white-space: nowrap; } }
html:lang(ko) .display { font-size: clamp(38px, 6.8vw, 100px); line-height: 1.16; letter-spacing: -0.045em; }

.hero-sub { margin-top: 28px; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foot { position: absolute; left: 0; right: 0; bottom: clamp(56px, 7vh, 72px); }
.hero-note { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hero-note[hidden] { display: none; }
.hero-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.hero-note .moon { display: none; }
.hero-note.is-night .sunico { display: none; }
.hero-note.is-night .moon { display: block; }

/* ---------- Vision: what people are worth, one sentence at a time -------- */

.vision {
  --p: 0;
  position: relative; z-index: 1;
  margin-top: -32px;
  border-radius: 32px 32px 0 0;
  background: var(--night); color: var(--cream);
}
.vision-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; border-radius: inherit; }
.vision-lamp {
  position: absolute; right: -24vmax; top: -30vmax; width: 80vmax; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 160 90 / 0.28), transparent);
  opacity: calc(0.25 + var(--p) * 0.75);
}
.vision .eyebrow { color: var(--cream-2); }
.manifesto {
  position: relative;
  margin-top: 32px;
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 600; line-height: 1.28; letter-spacing: -0.035em;
}
html:lang(ko) .manifesto { line-height: 1.4; letter-spacing: -0.04em; }
.m-line { max-width: 20em; text-wrap: balance; }
.m-line + .m-line { margin-top: 0.9em; }
.m-line.hl { color: var(--apricot); }
/* One sentence per screen while the section is pinned */
.js .manifesto { display: grid; }
.js .m-line { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .m-line.is-on { opacity: 1; transform: none; }
.js .m-line.is-past { transform: translateY(-28px); }
.m-steps { display: none; }
.js .m-steps { display: flex; gap: 6px; margin-top: clamp(40px, 6vh, 64px); }
.m-steps i { width: 28px; height: 2px; border-radius: 2px; background: rgb(247 240 230 / 0.18); transition: background-color 0.5s; }
.m-steps i.on { background: var(--cream-2); }
.js .vision { height: 520vh; }
html:not(.js) .vision { height: auto; }
html:not(.js) .vision-sticky { position: relative; height: auto; padding-block: 140px; }

/* ---------- Virtu: what we have made so far ---------------------------- */
/* A portfolio entry, not an ad: name, what it is, one line, a link. */

.virtu {
  position: relative; overflow: hidden; display: grid;
  margin-top: clamp(40px, 5vw, 64px); border-radius: 24px; background: var(--stone);
}
@media (min-width: 960px) { .virtu { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 520px; } }
.virtu::before { /* afternoon light on the device side */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 70% at 78% 30%, rgb(255 236 210 / 0.9), transparent 70%);
}
.virtu-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 56px); }
.virtu-mark { display: flex; width: 48px; height: 48px; padding: 2px; border-radius: 13px; background: conic-gradient(from 45deg, #00b8db, #f6339a, #00b8db, #f6339a, #00b8db); }
.virtu-mark > span { flex: 1; display: grid; place-items: center; border-radius: 11px; background: #fff; }
.virtu-mark svg { width: 30px; height: 30px; }
.virtu-name { margin-top: 28px; font-size: clamp(32px, 3.2vw, 44px); font-weight: 660; line-height: 1.1; letter-spacing: -0.045em; }
.virtu-kind { margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--ink-3); }
.virtu-body { margin-top: auto; padding-top: 48px; font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 22em; }
.virtu-meta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; font-size: 15px; color: var(--ink-3); }
.virtu-link {
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease);
}
.virtu-link:hover { text-decoration-color: currentColor; }
.virtu-link .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.virtu-link:hover .arrow { transform: translate(2px, -2px); }
.virtu-shot { position: relative; align-self: center; margin: 0; padding: 0 clamp(16px, 3vw, 40px) clamp(24px, 3vw, 40px); }
@media (min-width: 960px) { .virtu-shot { padding: 48px 48px 48px 0; } }
.virtu-shot img { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgb(60 40 20 / 0.28)); }

/* ---------- CTA: evening, the lamp on ------------------------------------ */

.cta { padding-top: 0; padding-bottom: clamp(56px, 6vw, 80px); }
.cta-block {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px;
  padding: clamp(64px, 10vw, 140px) clamp(28px, 6vw, 96px);
  background: var(--night); color: var(--cream);
}
.cta-block::before {
  content: ""; position: absolute; z-index: -1; right: -20%; top: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 160 90 / 0.26), transparent);
}
.cta-block .display { margin-top: 0; font-size: clamp(40px, 6.4vw, 92px); }
html:lang(ko) .cta-block .display { font-size: clamp(36px, 6vw, 86px); }
.cta-block .display .soft { color: var(--cream-2); }
.cta-block .lede { color: var(--cream-2); max-width: 26em; }
.cta-block .btn-primary { background: var(--cream); color: var(--ink); }
.cta-block .btn-primary:hover { background: #FFFFFF; box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.6); }

/* ---------- Footer ------------------------------------------------------- */

.footer { padding: 32px 0 clamp(32px, 5vw, 48px); overflow: hidden; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { margin-top: 14px; color: var(--ink-2); max-width: 22em; }
.footer h4 { font-size: 14px; font-weight: 550; color: var(--ink-3); }
.footer ul { margin-top: 14px; display: grid; gap: 8px; }
.footer li a { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.footer li a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 14px; color: var(--ink-3);
}

/* ---------- Reveal ------------------------------------------------------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Reduced motion: the same scenes, played slowly and without travel. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition-duration: 1.2s; }
  .sun-drift { animation-duration: 90s; }
  .sun-leaves { animation-duration: 24s; }
  .js .m-line { transform: none; transition-duration: 1.4s; }
}
