:root {
  --home-width:1120px;
  --home-gutter:clamp(20px,4vw,48px);
  --home-heading:clamp(32px,3.2vw,44px);
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:var(--type-body)/1.7 var(--sans);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,p,figure { margin:0; }
h1,h2,h3,h4 { font-family:var(--grotesk); font-weight:500; }
:lang(ko) :is(h2,h3,h4) { font-family:var(--sans); font-weight:600; }
a { color:inherit; text-decoration:none; }
button,input,textarea { font:inherit; }
button,a,input,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
img { display:block; width:100%; height:auto; }
::selection { background:#673522; }
:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.wrap { width:min(var(--home-width),calc(100% - var(--home-gutter) * 2)); margin-inline:auto; }

/* Navigation shares the content's left and right edges. */
.site-header {
  position:fixed;
  inset:0 0 auto;
  z-index:100;
  display:flex;
  align-items:center;
  height:72px;
  padding-inline:max(var(--home-gutter),calc((100% - var(--home-width)) / 2));
  border-bottom:1px solid var(--line);
  background:#0b0b0cf5;
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font:600 17px/1 var(--grotesk);
  white-space:nowrap;
}
.brand-mark {
  flex:none;
  width:14px;
  height:23px;
  background:var(--accent);
  mask:url('/assets/flame.png') center/contain no-repeat;
  -webkit-mask:url('/assets/flame.png') center/contain no-repeat;
}
.site-header nav { display:flex; gap:28px; margin-left:auto; }
.site-header nav a { padding-block:12px; }
.home-page .site-header nav a[aria-current="location"] { color:var(--text); text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:8px; text-decoration-thickness:2px; }
.skip-link { position:fixed; top:-100px; left:20px; padding:10px 20px; background:var(--text); color:var(--bg); z-index:200; }
.skip-link:focus { top:12px; }

/* A short introduction, followed immediately by the actual work. */
.home-hero { padding-block:144px 64px; }
.hero-copy h1[lang="en"] {
  font-family:var(--grotesk);
  font-size:clamp(38px,5.3vw,80px);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-.055em;
  text-wrap:wrap;
}
.hero-copy h1 span { display:inline-block; }
.hero-copy h1 span:last-child { color:var(--accent); }
.hero-description { margin-top:20px; max-width:44em; color:var(--muted); font-size:18px; line-height:1.65; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:24px; margin-top:24px; }
.button { display:inline-flex; align-items:center; justify-content:space-between; gap:28px; min-height:48px; padding:11px 20px; border:1px solid transparent; border-radius:4px; font-size:var(--type-support); font-weight:500; transition:background .2s; }
.button-dark { background:var(--text); color:var(--bg); }
.button-dark:hover { background:#d7d3c9; }
.button-orange { background:#c8421e; color:#fff; }
.button-orange:hover { background:#ab3617; }
.button:disabled { cursor:not-allowed; opacity:.5; }
.text-link { display:inline-flex; align-items:center; gap:12px; min-height:44px; font-size:var(--type-support); }
.text-link:hover { color:var(--accent); }
/* Three primary sections share a clear boundary and heading scale. */
.page-section { padding-block:88px; border-top:1px solid #ffffff26; }
.approach-section { background:#141416; }
.section-heading { margin-bottom:44px; }
.section-heading h2,.contact-copy h2 { font-size:var(--home-heading); line-height:1.25; letter-spacing:-.035em; }
.subsection-title { font:500 16px/1.5 var(--sans); color:var(--muted); }
.owned-work > .subsection-title { margin-bottom:18px; }

/* One image, one title, one description, one proof point per project. */
.project-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:64px; }
.project-card { display:flex; flex-direction:column; min-width:0; }
.project-image { aspect-ratio:1.92; overflow:hidden; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.project-image img { width:100%; height:100%; object-fit:cover; object-position:top; transition:transform .3s; }
.project-card:hover .project-image img { transform:scale(1.015); }
.project-title { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; }
.project-title h4 { font:500 clamp(26px,2.5vw,32px)/1.3 var(--grotesk); letter-spacing:-.035em; }
.project-arrow { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; flex:none; font-size:20px; color:var(--muted); transition:color .2s,transform .2s; }
.project-card:hover .project-arrow { color:var(--accent); transform:translate(2px,-2px); }
.project-card > p { margin-block:10px 18px; max-width:64ch; color:var(--muted); font-size:18px; line-height:1.65; }
.project-proof { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; min-height:28px; font-size:var(--type-body); line-height:1.6; color:var(--muted); }
.project-proof strong { color:var(--text); font-size:22px; font-weight:600; white-space:nowrap; }
.client-work { display:grid; grid-template-columns:200px minmax(0,1fr); align-items:baseline; gap:24px 48px; margin-top:36px; padding-top:26px; border-top:1px solid var(--line); }
.client-list { display:flex; flex-wrap:wrap; gap:16px 40px; list-style:none; margin:0; padding:0; font:500 20px/1.5 var(--grotesk); letter-spacing:-.02em; }
.client-list li { white-space:nowrap; }

/* Capabilities and process are subordinate parts of the approach section. */
.detail-section { display:grid; grid-template-columns:200px minmax(0,1fr); gap:48px; }
.detail-section + .detail-section { margin-top:48px; padding-top:40px; border-top:1px solid var(--line); }
.detail-heading h3 { font-size:22px; line-height:1.4; letter-spacing:-.025em; }
.service-grid article { display:grid; grid-template-columns:180px minmax(0,1fr); gap:24px; padding-block:22px; border-bottom:1px solid var(--line); }
.service-grid article:first-child { padding-top:0; }
.service-grid article:last-child { padding-bottom:0; border-bottom:0; }
.service-grid h4 { font-size:20px; line-height:1.45; letter-spacing:-.025em; }
.service-grid p { color:var(--muted); font-size:var(--type-body); line-height:1.65; }
.process-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; list-style:none; margin:0; padding:0; }
.process-list > li { min-width:0; }
.process-list > li:first-child { grid-column:1/-1; }
.process-list > li + li { padding-top:24px; border-top:1px solid var(--line); }
.process-stage { display:flex; align-items:baseline; gap:12px; }
.process-stage > span { color:var(--accent); font-size:var(--type-support); line-height:1.5; }
.process-stage h4 { font-size:20px; line-height:1.45; letter-spacing:-.02em; }
.process-list > li > p { margin-top:12px; color:var(--muted); font-size:var(--type-body); line-height:1.7; }
.process-list > li:first-child > p { font-size:18px; }

/* Domain discovery has its own compact diagram; product evidence lives in Portfolio. */
.domain-research { container-type:inline-size; margin-top:24px; padding:28px; border:1px solid #ffffff26; border-radius:6px; background:#0e0e10; }
.research-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; list-style:none; margin:0; padding:0; }
.research-flow > li { position:relative; min-width:0; padding-top:24px; border-top:1px solid #ffffff38; }
.research-flow > li::before { content:""; position:absolute; top:-4px; left:0; width:7px; height:7px; border-radius:50%; background:var(--accent); }
.research-flow > li:not(:last-child)::after { content:""; position:absolute; top:-4px; right:-18px; width:7px; height:7px; border-top:1px solid var(--muted); border-right:1px solid var(--muted); transform:rotate(45deg); }
.research-flow h5 { margin:0; font:500 18px/1.5 var(--sans); letter-spacing:-.02em; }
.research-flow ul { display:grid; gap:8px; list-style:none; margin:12px 0 0; padding:0; color:var(--muted); font-size:var(--type-body); line-height:1.65; }
.research-feedback { display:flex; align-items:flex-start; gap:12px; margin-top:28px; padding-top:20px; border-top:1px solid var(--line); color:var(--muted); font-size:var(--type-body); line-height:1.65; }
.research-feedback svg { flex:none; margin-top:3px; color:var(--accent); }
@container (max-width:640px) {
  .research-flow { grid-template-columns:1fr; gap:0; }
  .research-flow > li { padding:0 0 28px 24px; border-top:0; border-left:1px solid #ffffff38; }
  .research-flow > li:last-child { padding-bottom:0; border-left-color:transparent; }
  .research-flow > li::before { top:10px; left:-4px; }
  .research-flow > li:not(:last-child)::after { top:auto; right:auto; bottom:10px; left:-4px; transform:rotate(135deg); }
  .research-flow ul { gap:4px; margin-top:8px; }
}

/* The contact form uses the same grid and text scale. */
.contact-section { background:var(--bg); }
.contact-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:80px; align-items:start; }
.contact-copy > p { max-width:32ch; margin-top:16px; color:var(--muted); font-size:var(--type-body); line-height:1.65; }
.contact-form { min-width:0; }
.form-notice { margin-bottom:24px; padding:12px 15px; border:1px solid #3f3f42; border-radius:4px; background:var(--surface); font-size:var(--type-support); line-height:1.6; }
.form-notice:empty { display:none; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-field { margin-bottom:20px; }
.form-field label { display:block; margin-bottom:8px; font-size:var(--type-support); font-weight:500; line-height:1.5; }
.form-field input,.form-field textarea { width:100%; border:1px solid #444448; border-radius:4px; padding:11px 13px; background:var(--bg); color:var(--text); font-size:var(--type-body); }
.form-field textarea { min-height:140px; resize:vertical; line-height:1.65; }
.form-field textarea::placeholder { color:#96938d; opacity:1; font-size:var(--type-support); }
.field-hint { display:block; margin-top:8px; color:var(--muted); font-size:var(--type-label); line-height:1.6; }
.contact-form .button { min-width:170px; }
.form-status { margin-top:16px; font-size:var(--type-support); line-height:1.65; }
.form-status[data-state="error"] { color:#f6a080; }
.form-status[data-state="success"] { color:#edac92; }
.contact-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.site-footer { padding-block:28px; color:var(--muted); font-size:var(--type-label); }
.footer-bar { display:flex; align-items:center; gap:28px; }
.site-footer .brand { margin-right:auto; color:var(--text); }
.footer-meta { display:grid; grid-template-columns:auto auto auto; align-items:center; gap:28px; }
.footer-meta > * { white-space:nowrap; line-height:1.5; }
.footer-meta > :last-child { justify-self:end; }
.site-footer .footer-email { justify-self:center; font-size:inherit; }

@media(max-width:1000px) {
  .detail-section { grid-template-columns:180px minmax(0,1fr); gap:32px; }
  .service-grid article { grid-template-columns:145px minmax(0,1fr); gap:20px; }
  .contact-grid { gap:48px; }
}
@media(max-width:800px) {
  .detail-section { grid-template-columns:1fr; gap:28px; }
  .page-section { padding-block:56px; }
  .section-heading { margin-bottom:32px; }
  .detail-section + .detail-section { margin-top:32px; padding-top:32px; }
  .contact-grid { grid-template-columns:1fr; gap:32px; }
  .contact-copy > p { max-width:52ch; }
  .client-work { grid-template-columns:150px minmax(0,1fr); gap:24px; }
}
@media(max-width:700px) {
  :root { --home-gutter:20px; }
  html { scroll-padding-top:136px; }
  .home-hero { padding-block:148px 48px; }
  .hero-description { font-size:var(--type-body); }
  .project-grid { gap:40px; }
  .project-card > p { font-size:var(--type-body); }
  .project-proof { font-size:var(--type-support); }
  .client-work { grid-template-columns:1fr; gap:16px; margin-top:32px; padding-top:24px; }
}
@media(max-width:560px) {
  .hero-copy h1 span:last-child { display:block; }
  .hero-actions { gap:12px 20px; }
  .button { gap:20px; padding-inline:16px; }
  .service-grid article { grid-template-columns:1fr; gap:8px; }
  .service-grid h4 { font-size:20px; }
  .process-list { grid-template-columns:1fr; gap:24px; }
  .process-list > li:first-child > p { font-size:var(--type-body); }
  .domain-research { padding:24px 20px; }
  .form-row { grid-template-columns:1fr; gap:0; }
  .footer-bar { display:grid; gap:24px; }
  .footer-meta { gap:20px; }
}
@media(max-width:400px) {
  .footer-meta { grid-template-columns:1fr 1fr; gap:14px; }
  .footer-meta .footer-email { grid-column:1/-1; grid-row:2; }
  .footer-meta > :last-child { grid-column:2; grid-row:1; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
