:root {
  --ink: #0b1020;
  --ink-soft: #1a2134;
  --paper: #f5f7f4;
  --white: #ffffff;
  --muted: #606778;
  --line: rgba(11, 16, 32, 0.14);
  --blue: #5867ff;
  --teal: #8ee8dd;
  --orange: #ff7848;
  --shadow: 0 30px 80px rgba(7, 10, 24, 0.16);
  --radius: 24px;
  --page: min(1440px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 80px;
  padding: 15px max(32px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
  display:none;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--ink);
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; text-decoration: none; font-size: 0.92rem; font-weight: 650; }
.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--blue);
  transition: right 180ms ease;
}
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { right: 0; }
.nav-cta { padding: 11px 18px; border: 1px solid var(--ink); border-radius: 999px; transition: color 180ms ease, background 180ms ease; }
.nav-cta:hover, .nav-cta:focus-visible { color: white; background: var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 700; }

.hero, .work, .profile, .contact, .site-footer { width: var(--page); margin-inline: auto; }
.hero { min-height: calc(100svh - 80px); padding: clamp(64px, 8vw, 128px) 0 42px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-kicker, .eyebrow, .case-kicker, .contact-label { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.74rem; font-weight: 800; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(255, 120, 72, 0.12); }
.hero-grid { display: grid; grid-template-columns: 1.42fr 0.72fr; gap: clamp(40px, 8vw, 130px); align-items: end; margin-block: clamp(56px, 7vw, 112px); }
.hero-name { margin: 0 0 18px; color: var(--blue); font-size: 1rem; font-weight: 800; }
.hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(4rem, 8.5vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 780;
}
.hero h1 em, .contact h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--orange); }
.hero-intro { max-width: 760px; margin: 32px 0 0; color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 12px 30px rgba(88, 103, 255, 0.25); }
.button-primary:hover, .button-primary:focus-visible { box-shadow: 0 16px 38px rgba(88, 103, 255, 0.34); }
.button-dark { color: white; background: var(--ink); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.button-ghost:hover, .button-ghost:focus-visible { color: white; background: var(--ink); }
.text-link { text-underline-offset: 5px; text-decoration-thickness: 1px; font-weight: 750; }

.hero-board {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  padding: 22px;
  color: white;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-board::after { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; bottom: -60px; border: 1px solid rgba(142, 232, 221, 0.5); border-radius: 50%; box-shadow: 0 0 0 34px rgba(142, 232, 221, 0.08), 0 0 0 68px rgba(88, 103, 255, 0.08); }
.board-head, .board-foot { display: flex; justify-content: space-between; gap: 18px; color: rgba(255,255,255,0.63); font: 700 0.7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.board-focus { position: absolute; left: 22px; top: 92px; max-width: 300px; z-index: 2; }
.focus-number { color: var(--teal); font: 700 0.8rem/1 ui-monospace, monospace; }
.board-focus p { margin: 15px 0 0; font-size: 2.25rem; line-height: 1.08; letter-spacing: -0.045em; font-weight: 650; }
.board-orbit { position: absolute; right: 36px; bottom: 88px; width: 174px; height: 174px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; animation: rotate 30s linear infinite; }
.board-orbit span { position: absolute; padding: 5px 8px; color: var(--ink); background: var(--teal); border-radius: 99px; font: 800 0.62rem/1 ui-monospace, monospace; }
.board-orbit span:nth-child(1) { top: -10px; left: 58px; }
.board-orbit span:nth-child(2) { top: 70px; right: -16px; background: var(--orange); }
.board-orbit span:nth-child(3) { bottom: -10px; left: 55px; background: var(--blue); color: white; }
.board-orbit span:nth-child(4) { top: 70px; left: -22px; }
.board-foot { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.proof-strip div { padding: 25px 22px 0 0; }
.proof-strip div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.proof-strip dt { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 750; letter-spacing: -0.035em; }
.proof-strip dd { margin: 5px 0 0; color: var(--muted); font-size: 0.88rem; }

.work { padding: clamp(100px, 12vw, 180px) 0; }
.section-heading { display: grid; grid-template-columns: 0.52fr 1.5fr 0.72fr; gap: 38px; align-items: start; margin-bottom: 72px; }
.eyebrow { margin: 7px 0 0; color: var(--blue); }
.section-heading h2 { margin: 0; max-width: 850px; font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.06em; }
.section-heading > p:last-child { margin: 8px 0 0; color: var(--muted); }
.case { margin-bottom: 30px; padding: clamp(30px, 5vw, 72px); border: 1px solid var(--line); border-radius: 32px; overflow: hidden; }
.case h3, .supporting-work h3 { margin: 6px 0 20px; font-size: clamp(2.4rem, 4.5vw, 5rem); line-height: 0.96; letter-spacing: -0.06em; }
.case-copy { align-self: center; }
.case-copy > p:not(.case-kicker):not(.case-lede):not(.case-note) { max-width: 660px; color: var(--muted); }
.case-meta { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 0.7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.case-kicker { margin: 0 0 10px; color: var(--blue); }
.case-lede { max-width: 680px; margin: 0 0 22px; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.35; letter-spacing: -0.025em; }
.case-note { margin: 24px 0; padding-left: 15px; color: var(--muted); border-left: 3px solid var(--orange); font-size: 0.88rem; }
.case-points { list-style: none; margin: 28px 0 34px; padding: 0; }
.case-points li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; }
.case-points li::before { content: "↳"; position: absolute; left: 2px; color: var(--blue); font-weight: 800; }
.case-marcan { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 110px); color: white; background: var(--blue); border: 0; }
.case-marcan .case-meta, .case-marcan .case-copy > p:not(.case-kicker):not(.case-lede), .case-marcan .case-note { color: rgba(255,255,255,0.74); }
.case-marcan .case-meta, .case-marcan .case-points li { border-color: rgba(255,255,255,0.22); }
.case-marcan .case-kicker, .case-marcan .case-points li::before { color: var(--teal); }
.marcan-system { position: relative; min-height: 600px; padding: 28px; color: var(--ink); background: var(--paper); border-radius: 24px; overflow: hidden; }
.system-topline { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 700 0.68rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.system-title { margin-top: 50px; font-size: clamp(2rem, 3vw, 3.4rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 750; }
.system-map { position: absolute; inset: 230px 22px 75px; }
.system-map::before, .system-map::after { content: ""; position: absolute; background: var(--ink); opacity: 0.22; }
.system-map::before { left: 50%; top: 74px; width: 1px; height: 190px; }
.system-map::after { left: 18%; right: 18%; top: 264px; height: 1px; }
.system-node { position: absolute; z-index: 2; display: grid; place-items: center; width: 112px; aspect-ratio: 1; padding: 8px; text-align: center; background: white; border: 1px solid var(--ink); border-radius: 50%; font-size: 0.78rem; font-weight: 750; box-shadow: 8px 8px 0 var(--teal); }
.node-main { left: calc(50% - 65px); top: 0; width: 130px; color: white; background: var(--ink); border: 0; box-shadow: 10px 10px 0 var(--orange); font-size: 2rem; line-height: 1; }
.node-main small { display: block; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.system-node:nth-child(2) { left: 2%; top: 210px; }
.system-node:nth-child(3) { left: 27%; top: 250px; }
.system-node:nth-child(4) { right: 27%; top: 250px; }
.system-node:nth-child(5) { right: 2%; top: 210px; }
.system-note { position: absolute; left: 28px; right: 28px; bottom: 20px; margin: 0; color: var(--muted); font-size: 0.72rem; }

.case-image { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(36px, 6vw, 92px); min-height: 760px; background: white; }
.case-reverse { grid-template-columns: 0.82fr 1.18fr; }
.case-visual { position: relative; min-width: 0; min-height: 610px; }
.browser-frame { overflow: hidden; background: white; border: 1px solid rgba(11,16,32,0.2); border-radius: 16px; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; color: var(--muted); background: #eef1f4; font: 600 0.62rem/1 ui-monospace, monospace; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #bac0ca; }
.browser-bar span { margin-left: auto; }
.browser-frame img { width: 100%; height: auto; }
.visual-chameex { padding: 26px 80px 40px 0; }
.visual-chameex::before { content: ""; position: absolute; inset: 0 8% 5% 4%; background: linear-gradient(135deg, #c7fff3, #e6e8ff 50%, #ffd9c7); border-radius: 40% 20% 48% 18%; transform: rotate(-4deg); }
.browser-wide { position: relative; z-index: 2; margin-top: 35px; }
.phone-frame { position: absolute; z-index: 3; right: 0; bottom: 10px; width: 29%; height: 63%; padding: 18px 5px 6px; overflow: hidden; background: #0b1020; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 20px 55px rgba(11,16,32,0.3); }
.phone-frame img { width: 100%; height: auto; border-radius: 17px; }
.phone-speaker { position: absolute; top: 7px; left: 50%; z-index: 2; width: 42px; height: 4px; background: #5c6270; border-radius: 99px; transform: translateX(-50%); }
.visual-block { display: grid; align-items: center; }
.visual-block::after { content: "03"; position: absolute; z-index: 3; right: -20px; bottom: -20px; display: grid; place-items: center; width: 100px; aspect-ratio: 1; color: white; background: var(--orange); border-radius: 50%; font: 700 1rem/1 ui-monospace, monospace; }

.supporting-work { display: grid; grid-template-columns: 0.85fr 1.2fr 0.55fr; gap: 30px; align-items: stretch; padding: clamp(30px, 5vw, 64px); background: var(--ink); color: white; border-radius: 32px; }
.supporting-copy { align-self: center; }
.supporting-work .case-meta { color: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.18); }
.supporting-work .case-kicker { color: var(--teal); }
.supporting-work h3 { font-size: clamp(2.2rem, 3.5vw, 4.2rem); }
.supporting-work .case-lede { color: white; }
.supporting-copy > p:not(.case-kicker):not(.case-lede):not(.case-note) { color: rgba(255,255,255,0.65); }
.publication-card, .craft-card { overflow: hidden; background: white; border-radius: 20px; }
.publication-card { display: grid; align-items: center; }
.publication-card img { width: 100%; height: 100%; object-fit: cover; }
.craft-card { display: flex; flex-direction: column; }
.craft-card img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center; }
.craft-card div { padding: 18px; color: var(--ink); }
.craft-card span { color: var(--blue); font: 800 0.68rem/1 ui-monospace, monospace; text-transform: uppercase; }
.craft-card p { margin: 7px 0 0; font-weight: 750; }

.profile { width: 100%; max-width: none; padding: clamp(100px, 12vw, 180px) max(32px, calc((100vw - 1440px) / 2)); color: white; background: var(--ink); }
.section-heading-light { grid-template-columns: 0.52fr 1.5fr 0.72fr; }
.section-heading-light .eyebrow { color: var(--teal); }
.profile-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(50px, 9vw, 140px); }
.profile-statement { align-self: start; position: sticky; top: 130px; }
.profile-statement p { margin: 0 0 28px; max-width: 650px; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.35; letter-spacing: -0.035em; }
.text-link-light { color: var(--teal); }
.capability-list { border-top: 1px solid rgba(255,255,255,0.18); }
.capability-list div { display: grid; grid-template-columns: 50px 0.7fr 1fr; gap: 18px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.capability-list span { color: var(--orange); font: 700 0.72rem/1 ui-monospace, monospace; }
.capability-list p { margin: 0; font-size: 1.22rem; font-weight: 750; }
.capability-list small { color: rgba(255,255,255,0.58); font-size: 0.85rem; }
.experience { margin-top: 100px; border-top: 1px solid rgba(255,255,255,0.22); }
.experience article { display: grid; grid-template-columns: 1fr 0.6fr 0.9fr; gap: 30px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.22); }
.experience article > div { display: grid; grid-template-columns: 100px 1fr; gap: 25px; align-items: baseline; }
.experience span { color: var(--teal); font: 700 0.7rem/1 ui-monospace, monospace; }
.experience h3 { margin: 0; font-size: 1.2rem; }
.experience p { margin: 0; color: white; }
.experience small { color: rgba(255,255,255,0.58); font-size: 0.85rem; }
.tool-line { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.tool-line span { padding: 9px 14px; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; font-size: 0.82rem; }

.contact { padding: clamp(100px, 14vw, 200px) 0; }
.contact-label { color: var(--blue); }
.contact h2 { max-width: 1100px; margin: 22px 0 50px; font-size: clamp(3.3rem, 8vw, 8rem); line-height: 0.92; letter-spacing: -0.075em; }
.contact-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button-large { min-height: 62px; padding-inline: 30px; font-size: 1.08rem; }
.contact-detail { font-weight: 700; text-underline-offset: 5px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 40px; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.82rem; }

.image-dialog { width: min(1200px, calc(100vw - 30px)); height: min(92vh, 1000px); padding: 0; color: var(--ink); background: var(--paper); border: 0; border-radius: 22px; box-shadow: 0 50px 120px rgba(0,0,0,0.44); }
.image-dialog::backdrop { background: rgba(5, 8, 18, 0.78); backdrop-filter: blur(8px); }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; background: rgba(245,247,244,0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.dialog-header h2 { margin: 0; font-size: 1rem; }
.dialog-header p { margin: 3px 0 0; color: var(--muted); font-size: 0.75rem; }
.dialog-close { padding: 9px 14px; color: white; background: var(--ink); border: 0; border-radius: 999px; font: inherit; font-size: 0.8rem; font-weight: 750; cursor: pointer; }
.dialog-stage { min-height: 100%; padding: 28px; }
.dialog-stage img { width: min(100%, 900px); height: auto; margin: 0 auto; box-shadow: var(--shadow); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  :root { --page: calc(100vw - 40px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-board { min-height: 390px; max-width: 640px; }
  .section-heading { grid-template-columns: 0.35fr 1.4fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .case-marcan, .case-image, .case-reverse { grid-template-columns: 1fr; }
  .case-marcan .case-copy { order: 1; }
  .marcan-system { order: 2; }
  .case-image .case-copy { order: 1; }
  .case-image .case-visual { order: 2; }
  .supporting-work { grid-template-columns: 1fr 1fr; }
  .supporting-copy { grid-column: 1 / -1; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-statement { position: static; }
  .experience article { grid-template-columns: 0.9fr 0.7fr 1fr; }
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 28px); --radius: 18px; }
  .site-header { min-height: 68px; padding: 12px 14px; }
  .brand > span:last-child { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; }
  .menu-lines { width: 19px; height: 12px; border-top: 2px solid; border-bottom: 2px solid; }
  .site-nav { position: fixed; inset: 68px 12px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 12px; }
  .nav-cta { margin-top: 6px; text-align: center; }
  .hero { min-height: auto; padding-top: 72px; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 5.5rem); }
  .hero-grid { margin-block: 45px 60px; }
  .hero-board { min-height: 380px; }
  .board-focus p { font-size: 1.8rem; }
  .board-orbit { right: 24px; bottom: 86px; width: 145px; height: 145px; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div, .proof-strip div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 42px; }
  .section-heading > p:last-child { grid-column: auto; }
  .work { padding-block: 90px; }
  .case, .supporting-work { border-radius: 22px; }
  .case { padding: 24px; min-height: 0; }
  .case h3 { font-size: 3rem; }
  .case-meta { align-items: flex-start; }
  .marcan-system { min-height: 520px; padding: 20px; }
  .system-map { inset: 220px 10px 70px; transform: scale(0.82); transform-origin: center top; }
  .visual-chameex { min-height: 520px; padding: 12px 40px 20px 0; }
  .phone-frame { width: 34%; height: 67%; }
  .case-visual { min-height: 460px; }
  .visual-block { min-height: 0; }
  .supporting-work { grid-template-columns: 1fr; padding: 24px; }
  .supporting-copy { grid-column: auto; }
  .craft-card { flex-direction: row; }
  .craft-card img { width: 42%; min-height: 200px; }
  .craft-card div { align-self: center; }
  .profile { padding-inline: 14px; }
  .capability-list div { grid-template-columns: 36px 1fr; }
  .capability-list small { grid-column: 2; }
  .experience article { grid-template-columns: 1fr; gap: 12px; }
  .experience article > div { grid-template-columns: 90px 1fr; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; padding-inline: 0; }
  .dialog-stage { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-board, .image-viewer, .image-dialog { display: none !important; }
  .hero, .work, .profile, .contact, .site-footer { width: 100%; }
  .profile { color: black; background: white; }
  .reveal { opacity: 1; transform: none; }
}
