/* Cally Raja · site styles. Tokens from the Cally Raja design system. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/fonts/geist-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #f5f5f6; --surface: #ffffff;
  --metal-1: #d4d5d8; --metal-2: #a9aaaf; --metal-3: #6b6c72; --metal-4: #46474c;
  --ink: #1c1c1f; --coral: #ff5a4e; --accent-ink: #c8352b;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --card: 380px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--metal-4); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 27px; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex-shrink: 0; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.muted { color: var(--metal-3); }
.h2 { margin: 0; font-size: 44px; line-height: 48px; font-weight: 500; letter-spacing: -0.04em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ground); border-bottom: 1px solid var(--metal-1); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.navlinks { display: flex; align-items: center; gap: 36px; }
.navlink { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 2px; border-bottom: 1.5px solid transparent; }
.navlink:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Buttons */
.btn { height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; border-radius: 4px; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--ink); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { color: var(--ink); filter: brightness(0.96); }
.btn-secondary { border-color: var(--ink); font-weight: 400; }
.btn-secondary:hover { background: var(--ink); color: #ffffff; }
.btn-quiet { padding: 0 8px; font-weight: 500; }
.btn-quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; padding-top: 72px; padding-bottom: 120px; scroll-margin-top: 72px; }
.hero-text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hero-visual { grid-column: 6 / span 7; min-width: 0; padding-top: 10px; }
.ramp { margin: 0; font-size: clamp(52px, 6vw, 88px); line-height: 0.93; font-weight: 500; letter-spacing: -0.06em; }
.ramp span[class^="ramp-"] { display: block; }
.ramp-1 { color: var(--ink); } .ramp-2 { color: var(--metal-4); } .ramp-3 { color: var(--metal-3); }
.stop { display: inline-block; width: 0.16em; height: 0.16em; margin-left: 0.04em; border-radius: 999px; background: var(--coral); }
.intro { display: flex; align-items: stretch; gap: 22px; }
.intro picture { flex: 0 0 168px; width: 168px; display: block; }
.portrait { width: 168px; height: 100%; min-height: 220px; object-fit: cover; object-position: center top; border-radius: 4px; }
.intro-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.intro-copy p { margin: 0; font-size: 18px; line-height: 28px; color: var(--metal-4); }
.intro-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* Hero visual: stacked plates */
.stack { margin: 0; width: 100%; container-type: inline-size; }
.stack-fig { position: relative; width: 100%; aspect-ratio: 560 / 470; --u: calc(100cqw / 560); }
.plate { position: absolute; left: calc(var(--u) * 45); width: calc(var(--u) * 170); height: calc(var(--u) * 170); border: 1px solid var(--metal-2); background: linear-gradient(135deg, #ffffff 0%, #ffffff 45%, #d4d5d8 130%); transform: rotateX(60deg) rotateZ(45deg); }
.p-outcome { border: 1px dashed var(--ink); background: var(--ground); }
.p-foundation { border: 1.5px solid var(--ink); }
.beam { position: absolute; left: calc(var(--u) * 128.5); top: calc(var(--u) * 62); width: calc(var(--u) * 3); height: calc(var(--u) * 328); z-index: 30; background: var(--coral); }
.dot { position: absolute; z-index: 31; width: calc(var(--u) * 10); height: calc(var(--u) * 10); border-radius: 999px; background: var(--coral); }
.leader { position: absolute; left: calc(var(--u) * 258); width: calc(var(--u) * 24); height: 1px; z-index: 30; background: var(--ink); }
.stack-label { position: absolute; left: calc(var(--u) * 292); width: calc(var(--u) * 268); transform: translateY(-50%); display: flex; flex-direction: column; gap: calc(var(--u) * 3); }
.stack-outcome { flex-direction: row; align-items: center; gap: calc(var(--u) * 10); font-size: calc(var(--u) * 26); line-height: 1.15; font-weight: 500; letter-spacing: -0.035em; }
.stack-disc { display: inline-block; flex-shrink: 0; width: calc(var(--u) * 12); height: calc(var(--u) * 12); border-radius: 999px; background: var(--coral); }
.stack-layer { font-family: var(--mono); font-size: max(10px, calc(var(--u) * 11)); line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--metal-3); }
.stack-domains { font-size: max(13px, calc(var(--u) * 17)); line-height: 1.3; font-weight: 500; }
.stack-domains.is-strong { font-weight: 600; }

/* Section rail */
.rail { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.rail-left { display: flex; gap: 24px; }
.rail-fig { color: var(--ink); } .rail-title { color: var(--metal-3); }
.rail-mono { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; }

/* Work */
.sec { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 48px; scroll-margin-top: 72px; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.carousel-controls { display: flex; align-items: center; gap: 12px; }
.pos { min-width: 64px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.arrow { appearance: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.arrow:disabled { border-color: var(--metal-1); color: var(--metal-2); cursor: default; }
.arrow-plain { border-color: transparent; }
.work-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.sequence { display: flex; flex-direction: column; gap: 24px; padding-top: 14px; border-top: 1px solid var(--ink); }
.sequence ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.sequence li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
.sequence li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.seq-n { font-size: 20px; line-height: 24px; font-weight: 300; letter-spacing: -0.04em; color: var(--metal-3); font-variant-numeric: tabular-nums; }
.seq-t { font-size: 17px; line-height: 24px; font-weight: 500; }
.seq-l { font-size: 15px; line-height: 22px; color: var(--metal-4); }
.track-viewport { overflow: hidden; min-width: 0; }
.track { display: flex; gap: 24px; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card { appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; flex: 0 0 var(--card); width: var(--card); min-height: 560px; background: var(--surface); border: 1px solid var(--metal-1); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card:hover { border-color: var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-open { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.card-title { font-size: 24px; line-height: 29px; font-weight: 500; letter-spacing: -0.03em; }
.card-metric { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.card-num { font-size: 80px; line-height: 76px; font-weight: 300; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.card-num-label { font-size: 16px; line-height: 22px; color: var(--metal-4); }
.card-sector { font-size: 14px; line-height: 20px; color: var(--metal-3); }
.card-crop { position: relative; height: 176px; margin-top: auto; overflow: hidden; background: var(--surface); border: 1px solid var(--metal-1); border-radius: 2px; pointer-events: none; }
.card-crop-inner { position: absolute; width: 135%; }

/* Concept figure type */
.fig svg { display: block; width: 100%; height: auto; }
.sv-s { font-family: var(--sans); fill: #1c1c1f; }
.sv-m { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; fill: #6b6c72; text-transform: uppercase; }
.sv-ml { font-family: var(--mono); font-size: 9.5px; fill: #46474c; }
.on-dark { fill: #ffffff !important; } .on-dark-2 { fill: #d4d5d8 !important; } .f-ink { fill: #1c1c1f !important; } .f-m4 { fill: #46474c !important; }

/* Case dialog */
.case-dialog { padding: 0; border: 0; border-radius: 4px; width: min(1200px, calc(100vw - 48px)); max-width: none; height: min(760px, calc(100vh - 48px)); max-height: none; overflow: hidden; background: var(--surface); color: var(--ink); }
.case-dialog::backdrop { background: rgba(70, 71, 76, 0.62); }
.case-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); height: 100%; }
.case-text { display: flex; flex-direction: column; gap: 22px; padding: 36px 40px 32px; min-height: 0; overflow-y: auto; }
.case-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.case-title { margin: 0; font-size: 34px; line-height: 38px; font-weight: 500; letter-spacing: -0.04em; }
.case-meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--metal-3); }
.case-context { margin: 0; font-size: 17px; line-height: 27px; color: var(--metal-4); }
.case-built { display: flex; flex-direction: column; gap: 12px; }
.case-built ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.case-built li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; font-size: 16px; line-height: 24px; }
.case-built li span:first-child { color: var(--metal-3); font-variant-numeric: tabular-nums; }
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-stat { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--ink); }
.case-stat-v { font-size: 48px; line-height: 48px; font-weight: 300; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.case-stat-l { font-size: 14px; line-height: 20px; color: var(--metal-4); }
.case-nav { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.case-fig { margin: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px 32px 28px; background: var(--ground); border-left: 1px solid var(--metal-1); }
.case-fig-box { padding: 12px 14px 10px; background: var(--surface); border: 1px solid var(--metal-1); border-radius: 4px; }
.case-fig figcaption { font-size: 14px; line-height: 20px; color: var(--metal-3); }
body.modal-open { overflow: hidden; }

/* Contact */
.contact { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: space-between; background: var(--metal-4); color: #ffffff; }
.contact-inner { padding-bottom: 96px; }
.rail-dark { border-bottom-color: #ffffff; }
.rail-dark .rail-fig { color: #ffffff; } .rail-dark .rail-title { color: var(--metal-1); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 24px; }
.contact-copy .h2 { color: #ffffff; }
.contact-copy .q { color: var(--metal-1); }
.lead { margin: 0; max-width: 460px; font-size: 17px; line-height: 27px; color: var(--metal-1); }
.contact-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; line-height: 22px; color: var(--metal-1); }
.contact-links a { color: #ffffff; text-decoration: none; border-bottom: 1.5px solid var(--coral); }
.contact-links a:hover { color: #ffffff; border-bottom-color: #ffffff; }
.contact :focus-visible { outline-color: #ffffff; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; line-height: 20px; font-weight: 600; color: #ffffff; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #ffffff; border: 1px solid var(--metal-1); border-radius: 4px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 148px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-note { font-size: 14px; line-height: 20px; color: var(--metal-1); }
.hp { position: absolute; left: -9999px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--metal-3); font-size: 14px; line-height: 20px; color: var(--metal-1); }
.footer-name { color: #ffffff; font-weight: 600; letter-spacing: -0.02em; }

/* Thank-you page */
.thanks { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-top: 120px; padding-bottom: 120px; }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 72px; }
  .hero-text, .hero-visual { grid-column: 1 / -1; }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .h2 { font-size: 32px; line-height: 36px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  :root { --card: 296px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .case-dialog { height: auto; max-height: calc(100vh - 24px); width: calc(100vw - 24px); overflow-y: auto; }
  .case-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; }
  .case-text { overflow: visible; padding: 24px 20px; }
  .case-fig { border-left: 0; border-top: 1px solid var(--metal-1); padding: 20px; }
  .navlinks { gap: 18px; }
}
@media (max-width: 560px) {
  .navlink { font-size: 14px; }
  .navlinks { gap: 12px; }
  .brand { font-size: 18px; }
  .intro { gap: 16px; }
  .intro picture { flex: 0 0 116px; width: 116px; }
  .portrait { width: 116px; min-height: 170px; }
  .intro-copy p { font-size: 16px; line-height: 24px; }
  .stack-layer { font-size: max(9px, calc(var(--u) * 11)); }
  .stack-domains { font-size: max(11px, calc(var(--u) * 17)); }
  .form-pair { grid-template-columns: minmax(0, 1fr); }
  .card-num { font-size: 64px; line-height: 64px; }
  .case-title { font-size: 28px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .track { transition: none; } }
