:root {
  --bg: #f1f0eb;
  --paper: #f6f5f1;
  --ink: #282828;
  --ink-2: rgba(40, 40, 40, .72);
  --ink-3: #72726f;
  --line: #d9d8d2;
  --line-2: #b4b4b0;
  --accent: #fa3600;
  --accent-2: #dd6013;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --pad: clamp(16px, 2vw, 28px);
  --frame: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
::selection { background: var(--accent); color: #fff; }

/* paper grain */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .3  0 0 0 0 .28  0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ FRAME ============ */
.frame {
  position: fixed; inset: var(--frame); z-index: 50; pointer-events: none;
  border: 1px solid var(--line);
}
.plus { position: absolute; font: 300 14px/1 var(--mono); color: var(--ink-3); }
.plus.tl { top: -8px; left: -5px; } .plus.tr { top: -8px; right: -5px; }
.plus.bl { bottom: -8px; left: -5px; } .plus.br { bottom: -8px; right: -5px; }

/* ============ CURSOR ============ */
.cursor { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.cursor-line { position: absolute; background: rgba(40,40,40,.12); }
.cursor-x { left: 0; right: 0; height: 1px; top: 0; }
.cursor-y { top: 0; bottom: 0; width: 1px; left: 0; }
.cursor-dot {
  position: absolute; top: 0; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--accent); transition: width .25s, height .25s, margin .25s, background .25s;
}
.cursor.hover .cursor-dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: transparent; border: 1px solid var(--accent); }
.cursor-coord { position: absolute; top: 0; left: 0; color: var(--accent); transform: translate(12px, 10px); white-space: nowrap; }
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }
@media (hover: hover) and (min-width: 901px) { body, a, button { cursor: none; } }

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg); color: var(--ink);
  overflow: hidden;
}
.loader-ruler-h, .loader-ruler-v { position: absolute; background: var(--line-2); }
.loader-ruler-h { left: 0; right: 0; height: 1px; top: 50%; transform-origin: left; }
.loader-ruler-v { top: 0; bottom: 0; width: 1px; left: 50%; transform-origin: top; }
.loader-plus { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%); font: 300 22px var(--mono); color: var(--accent); }
.loader-coord { position: absolute; top: calc(50% + 10px); left: calc(50% + 10px); color: var(--ink-3); }
.loader-content { position: absolute; top: calc(var(--frame) + 40px); left: calc(var(--frame) + 40px); }
.loader-title { font-size: clamp(40px, 7vw, 96px); font-weight: 700; letter-spacing: -.04em; line-height: .9; color: var(--ink); overflow: hidden; }
.loader-title .ch { display: inline-block; }
.loader-spec { margin-top: 18px; display: grid; gap: 6px; color: var(--ink-3); }
.loader-spec div { display: flex; align-items: center; gap: 10px; }
.loader-spec .hd { color: var(--ink); width: 54px; }
.loader-spec .dash { width: 40px; height: 1px; background: var(--line-2); }
.loader-draw { position: absolute; right: 6vw; bottom: 12vh; width: min(52vw, 640px); color: var(--ink); }
.loader-progress { position: absolute; left: calc(var(--frame) + 24px); right: calc(var(--frame) + 24px); bottom: calc(var(--frame) + 18px); }
.loader-percent { color: var(--accent); font-size: 12px; margin-bottom: 8px; }
.loader-bar { height: 1px; background: var(--line); }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: var(--frame); left: var(--frame); right: var(--frame); z-index: 60;
  display: flex; justify-content: space-between; align-items: stretch; height: 44px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; padding: 0 var(--pad); color: var(--ink); font-weight: 700; letter-spacing: -.02em; font-size: 15px; }
.logo svg { width: 24px; height: 24px; }
.nav { display: flex; }
.nav-link {
  display: flex; align-items: flex-start; width: clamp(110px, 10vw, 160px); padding: 8px 10px;
  border-left: 1px solid var(--line); font: 500 10px var(--sans); letter-spacing: .02em; color: var(--ink);
}
.nav-link.is-accent { color: var(--accent); }
.burger { display: none; width: 44px; border-left: 1px solid var(--line); position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1px; background: var(--ink); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }

/* text roll hover */
.roll > span { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll-in { display: block; position: relative; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.roll-in::after { content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap; }
.roll:hover .roll-in { transform: translateY(-100%); }

/* ============ SHARED ============ */
section { position: relative; z-index: 2; }
.sec-label { color: var(--ink); }
.h2 { font-size: clamp(30px, 4.2vw, 64px); line-height: .95; letter-spacing: -.035em; font-weight: 700; color: var(--ink); }
.h3 { font-size: clamp(24px, 2.6vw, 40px); line-height: .95; letter-spacing: -.03em; font-weight: 700; color: var(--ink); }
.split-lines .line { overflow: hidden; }
.link-arrow { font: 500 10px var(--sans); letter-spacing: .03em; color: var(--ink); display: inline-flex; padding: 6px 10px; border: 1px solid var(--line-2); }
.link-arrow.accent { color: var(--accent); border-color: transparent; padding-left: 0; }
.link-arrow > span::before { content: none; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; padding: calc(var(--frame) + 60px) calc(var(--frame) + var(--pad)) calc(var(--frame) + 20px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-art { position: relative; width: min(1000px, 92%); margin: 2vh auto 0; color: var(--ink); }
.building { width: 100%; display: block; }
.building .fill-soft { fill: rgba(40,40,40,.035); }
.building .fill-glass { fill: rgba(40,40,40,.07); }
.building .dim { stroke: var(--accent); }
.tag { position: absolute; display: flex; flex-direction: column; gap: 2px; padding-left: 14px; }
.tag i { position: absolute; left: 0; top: 2px; width: 8px; height: 8px; background: var(--accent); }
.tag i::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--accent); animation: ping 2s infinite; }
.tag span { color: var(--ink-3); }
.tag b { font-size: 11px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.tag-1 { left: 22%; top: 28%; } .tag-2 { left: 33%; top: 70%; } .tag-3 { left: 66%; top: 46%; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-bottom { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 30px; align-items: end; border-top: 1px solid var(--line); padding-top: 18px; }
.hero-title { font-size: clamp(34px, 4.6vw, 76px); line-height: .92; letter-spacing: -.04em; font-weight: 700; color: var(--ink); }
.hero-side { display: grid; gap: 14px; border-left: 1px solid var(--line); padding-left: 16px; }
.hero-desc { font-size: 12px; max-width: 360px; }
.scroll-hint { position: absolute; right: calc(var(--frame) + var(--pad)); top: calc(var(--frame) + 60px); color: var(--ink-3); }

/* ============ INTRO ============ */
.intro { padding: 18vh calc(var(--frame) + var(--pad)); display: grid; gap: 50px; border-top: 1px solid var(--line); }
.intro-text { font-size: clamp(28px, 4.4vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 700; text-transform: uppercase; color: var(--ink); max-width: 1300px; }
.intro-text .word { color: #cfcec8; }
.intro-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 18px 16px 0 0; display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 16px; }
.stat-num { font-size: clamp(36px, 4vw, 60px); font-weight: 600; letter-spacing: -.04em; color: var(--ink); line-height: 1; }

/* ============ PROBLEMS ============ */
.problems { border-top: 1px solid var(--line); margin: 0 var(--frame); }
.problems-head { display: grid; grid-template-columns: 1fr 340px; gap: 20px 40px; padding: 30px var(--pad) 40px; }
.problems-head .sec-label { grid-column: 1 / -1; }
.problems-head p { font-size: 12px; align-self: start; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.card { padding: 12px var(--pad) 26px; min-height: 480px; display: flex; flex-direction: column; border-right: 1px solid var(--line); transition: background .4s; }
.card:last-child { border-right: 0; }
.card:hover { background: var(--paper); }
.card-top { display: flex; justify-content: space-between; color: var(--ink); }
.card-top span:last-child { color: var(--ink-3); }
.iso { width: 62%; margin: 40px auto; color: var(--ink-3); stroke-width: 1; transition: transform .8s cubic-bezier(.2,.8,.2,1), color .4s; }
.card:hover .iso { transform: rotate(-6deg) scale(1.06); color: var(--accent); }
.card h3 { margin-top: auto; font-size: clamp(20px, 2vw, 30px); line-height: .95; letter-spacing: -.03em; font-weight: 700; color: var(--ink); }
.card p { margin-top: 12px; font-size: 12px; max-width: 240px; }

/* ============ PLAN (pinned) ============ */
.plan { height: 420vh; border-top: 1px solid var(--line); }
.plan-pin { position: relative; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.plan-words { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.plan-word { grid-area: 1 / 1; overflow: hidden; line-height: 1.1; font-size: clamp(28px, 4vw, 58px); font-weight: 700; letter-spacing: -.035em; color: var(--ink); text-align: center; }
.plan-word .ch { display: inline-block; }
.plan-svg { width: min(560px, 74vw); height: auto; color: var(--ink); }
.plan-walls rect { fill: transparent; }
.plan-mark rect { fill: var(--accent); }
.plan-mark text { fill: #fff; font: 600 9px var(--mono); }
.plan-dimtxt { font-family: var(--mono); }
.plan-note {
  position: absolute; left: calc(var(--frame) + 16px); bottom: calc(var(--frame) + 16px);
  width: 250px; background: var(--paper); border: 1px solid var(--ink); font-size: 11px;
}
.plan-note-head { background: var(--ink); color: #fff; padding: 6px 10px; }
.plan-note .pn { padding: 10px 10px 0; display: none; }
.plan-note .pn.on { display: block; }
.plan-note-foot { padding: 10px; color: var(--ink-3); }

/* ============ SERVICES ============ */
.services { margin: 0 var(--frame); border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 120px 1fr 1.2fr; border-bottom: 1px solid var(--line); min-height: 60vh; }
.svc-num { padding: 16px var(--pad); color: var(--accent); }
.svc-body { padding: 16px var(--pad) 30px; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--line); }
.svc-body p { font-size: 12px; max-width: 320px; }
.svc-body .link-arrow { margin-top: auto; align-self: flex-start; }
.svc-art { border-left: 1px solid var(--line); display: grid; place-items: center; padding: 30px; color: var(--ink); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px; background-color: var(--paper); }
.svc-art svg { width: 90%; max-width: 520px; }

/* ============ WHY ============ */
.why { margin: 0 var(--frame); display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding-top: 50px; }
.why-step { padding: 24px var(--pad) 60px; display: grid; gap: 10px; align-content: start; }
.why-step + .why-step { border-left: 1px solid var(--line); }
.why-step span { color: var(--accent); }
.why-step h3 { font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.03em; font-weight: 700; color: var(--ink); line-height: 1; }
.why-step p { font-size: 12px; }
.why-line { position: absolute; top: 50px; left: 0; right: 0; height: 1px; background: var(--line); }
.why-line i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ============ SECTORS ============ */
.sectors { margin: 0 var(--frame); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.sectors-left { padding: 16px var(--pad) 30px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--line); }
.sector-visual { margin-top: auto; aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.sector-visual svg { width: 80%; }
.sv { opacity: 0; }
.sector-list { list-style: none; }
.sector-list li { border-bottom: 1px solid var(--line); }
.sector-list button { width: 100%; display: flex; justify-content: space-between; padding: 18px var(--pad); font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-align: left; }
.sector-list em { font-style: normal; font-weight: 300; transition: transform .4s; }
.sector-list li.active em { transform: rotate(45deg); color: var(--accent); }
.sector-list li.active span { color: var(--accent); }
.sector-list p { height: 0; overflow: hidden; padding: 0 var(--pad); font-size: 12px; max-width: 420px; }

/* ============ CTA ============ */
.cta { margin: 0 var(--frame); border-top: 1px solid var(--line); min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 90px var(--pad); overflow: hidden; }
.cta-coord { position: absolute; color: var(--ink-3); }
.c1 { left: 14px; top: 14px; } .c2 { right: 14px; top: 14px; } .c3 { left: 14px; bottom: 14px; } .c4 { right: 14px; bottom: 14px; }
.cta-title { font-size: clamp(30px, 4.6vw, 70px); line-height: .95; font-weight: 700; letter-spacing: -.035em; color: var(--ink); text-align: center; max-width: 900px; }
.cta-art { position: relative; width: min(560px, 90%); color: var(--ink); }
.cta-art svg { width: 100%; display: block; }
.sun { position: absolute; width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); right: 24%; top: 6%; mix-blend-mode: multiply; }
.btn { background: var(--accent); color: #fff; padding: 12px 22px; font: 600 11px var(--sans); letter-spacing: .04em; }

/* ============ FOOTER ============ */
.footer { margin: 0 var(--frame) var(--frame); position: relative; z-index: 2; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.foot-cell { padding: 14px var(--pad) 22px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.foot-cell:nth-child(4n) { border-right: 0; }
.foot-cell .mono { color: var(--ink-3); margin-bottom: 8px; }
.foot-cell a { align-self: flex-start; color: var(--ink); }
.foot-cell a.is-accent { color: var(--accent); }
.foot-claim h3 { font-size: clamp(20px, 2vw, 30px); line-height: .95; letter-spacing: -.03em; font-weight: 700; color: var(--ink); max-width: 320px; }
.foot-sub form { display: flex; border-bottom: 1px solid var(--ink); margin-top: 10px; }
.foot-sub input { flex: 1; border: 0; background: none; padding: 8px 0; font: inherit; color: var(--ink); outline: none; }
.foot-mark { align-items: center; justify-content: center; color: var(--ink); }
.foot-mark svg { width: 80px; }
.foot-word { display: block; width: 100%; padding: 20px var(--pad) 0; color: var(--ink); }
.foot-word text { fill: transparent; }
.foot-bottom { display: flex; justify-content: space-between; padding: 12px var(--pad) 16px; color: var(--ink-3); border-top: 1px solid var(--line); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; padding-left: 0; }
  .tag { display: none; }
  .problems-head { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { min-height: 380px; border-bottom: 1px solid var(--line); }
  .svc { grid-template-columns: 1fr; }
  .svc-body, .svc-art { border-left: 0; }
  .svc-art { min-height: 260px; }
  .why { grid-template-columns: 1fr 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .sectors-left { border-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-cell { border-right: 1px solid var(--line) !important; }
  .foot-cell:nth-child(2n) { border-right: 0 !important; }
  .plan-note { width: auto; right: calc(var(--frame) + 16px); }
  .loader-draw { width: 86vw; right: 7vw; }
}
@media (max-width: 560px) {
  :root { --frame: 6px; }
  .cards, .why, .intro-meta { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .why-step + .why-step { border-left: 0; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .tag i::after { animation: none; }
}
