:root {
  --ink: #08090c;
  --surface: #0d0f14;
  --surface-raised: #12151c;
  --text: #eef0f4;
  --muted: #9da4b0;
  --accent: #496dff;
  --line: rgba(255, 255, 255, 0.09);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #8fa5ff; outline-offset: 4px; }
::selection { background: var(--accent); color: white; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: white; color: #08090c; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; min-height: 72px; padding: 16px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; background: rgba(8, 9, 12, 0.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.wordmark { display: flex; gap: 9px; font: 700 14px/1 var(--display); letter-spacing: .27em; text-transform: uppercase; white-space: nowrap; }
.wordmark span:last-child { color: #7290ff; }
.site-header nav, footer nav { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 38px); color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.site-header nav a, footer nav a { transition: color .2s ease; }
.site-header nav a:hover, footer nav a:hover { color: white; }
.site-header .nav-cta { padding: 10px 14px; border: 1px solid rgba(255,255,255,.22); color: white; }

.hero { position: relative; min-height: 94svh; padding: 112px clamp(20px, 5vw, 72px) clamp(52px, 7vw, 96px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url('/assets/sodam-wall.jpg') 51% center / cover no-repeat; }
.hero-shade { background: linear-gradient(180deg, rgba(8,9,12,.18), rgba(8,9,12,.08) 35%, rgba(8,9,12,.72) 72%, var(--ink) 100%), radial-gradient(100% 90% at 50% 45%, transparent 32%, rgba(8,9,12,.6) 100%); }
.eyebrow { position: relative; margin: 0; color: #7692ff; font: 500 11px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; }
.hero-eyebrow { color: rgba(238,240,244,.64); }
.hero-content { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero h1 { max-width: 880px; margin: 0; font: 600 clamp(42px, 6.5vw, 94px)/.97 var(--display); letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 10px 45px rgba(0,0,0,.6); }
.hero-intro { max-width: 650px; margin: 25px 0 0; color: #c5cad3; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; font: 600 14px/1 var(--display); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 12px 36px rgba(73,109,255,.24); }
.button-primary:hover { background: #5a7aff; }
.button-secondary { background: rgba(8,9,12,.35); border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.button-secondary:hover { border-color: rgba(255,255,255,.55); }

.section { padding: clamp(80px, 10vw, 150px) clamp(20px, 5vw, 72px); }
.work-section { background: #0a0b0f; }
.section-heading { margin-bottom: clamp(42px, 6vw, 74px); display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2, .advisory-intro h2 { margin: 15px 0 0; font: 600 clamp(38px, 5vw, 66px)/1 var(--display); letter-spacing: -.04em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); }
.project-card { min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
a.project-card:hover { transform: translateY(-5px); border-color: rgba(73,109,255,.6); box-shadow: 0 22px 60px rgba(0,0,0,.32); }
.project-media { position: relative; aspect-ratio: 16 / 9.5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; overflow: hidden; border-bottom: 1px solid var(--line); background-color: #141720; background-image: linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.035) 50%, rgba(255,255,255,.035) 75%, transparent 75%); background-size: 18px 18px; }
.project-media::after { content: ""; position: absolute; top: 16px; right: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px var(--accent); }
.project-media span { color: rgba(238,240,244,.52); font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.project-media small { color: rgba(157,164,176,.48); font: 400 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.project-media-dram { display: block; background: radial-gradient(circle at 67% 47%, rgba(198, 111, 29, .3), transparent 31%), radial-gradient(circle at 35% 59%, rgba(240, 179, 77, .12), transparent 29%), #13110f; }
.project-media-dram::after { background: #d9a15f; box-shadow: 0 0 13px rgba(217,161,95,.75); }
.dram-logo { position: absolute; z-index: 1; top: 17%; left: 8%; width: 38%; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.65)); }
.dram-phone { position: absolute; right: 10%; bottom: 0; z-index: 2; height: 91%; aspect-ratio: 1290 / 2796; overflow: hidden; border: 4px solid #090909; border-bottom: 0; border-radius: 16px 16px 0 0; background: #151515; box-shadow: 0 12px 30px rgba(0,0,0,.62); }
.dram-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-media-screenshot, .project-media-photo, .project-media-abide { display: block; background: #f7f7f7; }
.project-media-screenshot > img, .project-media-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-media-photo { background: #dad8d2; }
.project-media-abide { display: block; padding: 0; background: #fff; }
.project-media-abide > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-copy { padding: 24px; display: flex; flex: 1; flex-direction: column; }
.project-type { margin: 0; color: #7692ff !important; font: 500 10px/1.3 var(--mono) !important; letter-spacing: .13em; text-transform: uppercase; }
.project-copy h3 { margin: 13px 0 0; font: 600 24px/1.15 var(--display); letter-spacing: -.02em; }
.project-copy > p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.project-meta { margin-top: 24px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: #777e8a; font: 500 9.5px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.project-meta span:last-child { color: #cfd3da; text-align: right; }
.project-card-muted .project-media::after { background: #6c727d; box-shadow: none; }

.advisory-section { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 130px); background: radial-gradient(70% 110% at 95% 0%, rgba(73,109,255,.15), transparent 55%), var(--ink); border-block: 1px solid var(--line); }
.advisory-intro > p:not(.eyebrow) { max-width: 570px; margin: 26px 0 0; color: #abb1bb; font-size: 17px; line-height: 1.7; }
.advisory-intro .button { margin-top: 34px; }
.service-list { border: 1px solid var(--line); }
.service-list article { padding: 25px 28px; display: grid; grid-template-columns: 36px 1fr; gap: 14px; background: rgba(18,21,28,.72); }
.service-list article + article { border-top: 1px solid var(--line); }
.service-list article > span { padding-top: 4px; color: #647081; font: 400 10px/1 var(--mono); }
.service-list h3 { margin: 0; font: 600 17px/1.3 var(--display); }
.service-list p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.about-section { max-width: 1080px; margin: 0 auto; }
.about-statement { margin: 26px 0 0; color: #dfe2e8; font: 500 clamp(25px, 3.25vw, 42px)/1.4 var(--display); letter-spacing: -.025em; text-wrap: pretty; }
.about-statement strong { color: white; }
.about-links { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 13px; }
.text-link { padding: 13px 20px; border: 1px solid rgba(255,255,255,.18); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s ease, color .2s ease; }
.text-link:hover { border-color: var(--accent); color: white; }

footer { padding: 52px clamp(20px, 5vw, 72px); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
footer p { margin: 13px 0 0; color: #717783; font: 400 10px/1.4 var(--mono); letter-spacing: .05em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 980px) {
  .hero-content { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advisory-section { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 64px; }
  .site-header { min-height: 64px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .site-header .nav-cta { padding: 9px 11px; }
  .hero { min-height: 88svh; padding-top: 96px; }
  .hero-image { background-color: var(--ink); background-position: 65% 0; background-repeat: no-repeat; background-size: 185% auto; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,9,12,.08) 0%, rgba(8,9,12,.18) 26%, rgba(8,9,12,.76) 53%, var(--ink) 71%), radial-gradient(105% 70% at 50% 28%, transparent 28%, rgba(8,9,12,.38) 100%); }
  .hero h1 { font-size: clamp(40px, 13vw, 62px); }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .about-statement { font-size: 26px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; row-gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
