:root {
  color-scheme: dark;
  --bg: #071019;
  --bg-soft: #0b1722;
  --surface: rgba(13, 28, 40, 0.9);
  --surface-strong: #102130;
  --line: rgba(129, 174, 194, 0.18);
  --text: #f7fbfd;
  --muted: #a7b5c0;
  --cyan: #53d9ef;
  --cyan-soft: #b9f4fb;
  --red: #e52b35;
  --magenta: #de3cf1;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(65, 113, 137, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 113, 137, .075) 1px, transparent 1px),
    var(--bg);
  background-size: 76px 76px;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 25, .82);
  backdrop-filter: blur(18px);
}
.identity { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.identity-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(83, 217, 239, .75);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: -.05em;
  box-shadow: 0 0 24px rgba(83, 217, 239, .12);
}
.identity-mark::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(83, 217, 239, .12); border-radius: inherit; animation: breathe 5s ease-in-out infinite; }
.identity strong { display: block; font-size: .94rem; }
.identity small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { position: relative; text-decoration: none; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: linear-gradient(90deg, #941b23, var(--red)); transition: right .25s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--text); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }

main { overflow: hidden; }
.hero, .work-section, .approach, footer { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  padding-block: clamp(72px, 10vw, 130px);
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; color: var(--cyan); font-size: .73rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 32px; font-size: clamp(3.5rem, 6.4vw, 6.9rem); line-height: .91; letter-spacing: -.074em; font-weight: 900; }
h1 em { color: transparent; background: linear-gradient(100deg, #f7fbfd 2%, var(--cyan-soft) 55%, var(--cyan) 100%); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.hero-intro { max-width: 680px; margin-bottom: 32px; color: var(--muted); font-size: clamp(1.1rem, 1.55vw, 1.35rem); line-height: 1.6; }
.text-link, .case-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 800; letter-spacing: .05em; }
.text-link span, .case-link span { color: var(--cyan); transition: transform .2s ease; }
.text-link:hover span, .case-link:hover span { transform: translate(3px, -2px); }

.hero-signal { position: relative; aspect-ratio: 1; max-width: 500px; width: 100%; justify-self: center; }
.signal-orbit { position: absolute; inset: 10%; border: 1px solid rgba(83, 217, 239, .24); border-radius: 50%; }
.orbit-two { inset: 24%; border-color: rgba(229, 43, 53, .22); transform: rotate(33deg); }
.signal-orbit i { position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px rgba(83, 217, 239, .8); transform: translateX(-50%); }
.orbit-one { animation: orbit 28s linear infinite; }
.orbit-two { animation: orbit-reverse 21s linear infinite; }
.orbit-two i { background: var(--red); box-shadow: 0 0 14px rgba(229, 43, 53, .65); }
.signal-core { position: absolute; inset: 33%; display: grid; place-content: center; text-align: center; border: 1px solid rgba(83, 217, 239, .35); border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(83, 217, 239, .12), rgba(7, 16, 25, .96) 68%); box-shadow: 0 0 70px rgba(83, 217, 239, .08); }
.signal-core span { margin-bottom: 10px; color: var(--cyan); font-size: .62rem; font-weight: 900; letter-spacing: .18em; }
.signal-core strong { font-size: clamp(.85rem, 1.4vw, 1.05rem); line-height: 1.35; }
.signal-label { position: absolute; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 16, 25, .86); color: var(--muted); font-size: .69rem; font-weight: 700; }
.label-one { top: 17%; right: 0; }
.label-two { bottom: 19%; left: 0; }
.label-three { bottom: 4%; right: 16%; }

.work-section { padding-block: 120px 140px; }
.section-heading { display: grid; grid-template-columns: 1fr .9fr; gap: 36px 90px; align-items: end; margin-bottom: 64px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.55rem, 5vw, 5.15rem); line-height: .98; letter-spacing: -.06em; }
.section-heading > p:not(.eyebrow) { margin-bottom: 6px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.case-list { display: grid; gap: 34px; }
.case-card { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; min-height: 600px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(16, 33, 48, .96), rgba(6, 14, 22, .94)); box-shadow: 0 28px 80px rgba(0, 0, 0, .22); }
.case-content { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(34px, 5vw, 68px); }
.case-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; color: var(--cyan); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.case-meta span + span::before { content: "·"; margin-right: 9px; color: var(--muted); }
.case-content h3 { margin-bottom: 22px; font-size: clamp(2rem, 3.45vw, 3.65rem); line-height: 1.02; letter-spacing: -.05em; }
.case-content > p { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.case-content ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 36px; padding: 0; list-style: none; }
.case-content li { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #c8d3da; font-size: .69rem; font-weight: 700; }
.case-link { margin-top: auto; }
.case-visual { position: relative; display: block; min-height: 520px; overflow: hidden; background: radial-gradient(circle at 55% 45%, rgba(83, 217, 239, .14), transparent 58%); }
.case-visual img { position: absolute; width: 78%; border: 9px solid rgba(239, 248, 251, .92); border-radius: 17px; box-shadow: 0 26px 50px rgba(0,0,0,.38); transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .45s ease; }
.visual-back { top: 10%; left: 15%; transform: rotate(3deg); }
.visual-front { right: 5%; bottom: 9%; transform: rotate(-4deg); }
.case-visual span { position: absolute; left: 8%; bottom: 8%; z-index: 3; padding: 12px 16px; border-radius: 11px; background: rgba(7, 16, 25, .92); color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.case-visual:hover .visual-back { transform: rotate(1deg) translateY(-9px) scale(1.015); }
.case-visual:hover .visual-front { transform: rotate(-2deg) translateY(-13px) scale(1.02); }
.case-sabre .case-meta, .case-sabre .case-link span { color: #ff5861; }
.case-sabre .case-visual { background: radial-gradient(circle at 55% 45%, rgba(229, 43, 53, .13), transparent 58%); }
.case-sabre .case-visual span { color: #ff737b; }
.case-sabre::before, .case-valuecore::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 5; background: linear-gradient(180deg, transparent, var(--cyan), transparent); }
.case-sabre::before { background: linear-gradient(180deg, transparent, var(--red), transparent); }
.next-case { padding: clamp(34px, 5vw, 66px); border: 1px dashed rgba(129,174,194,.3); border-radius: 28px; background: rgba(7, 16, 25, .6); }
.next-case h3 { max-width: 760px; margin-bottom: 16px; font-size: clamp(1.85rem, 3.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; }
.next-case > p { max-width: 700px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.status { display: inline-block; margin-top: 20px; padding: 10px 13px; border-radius: 999px; background: rgba(83,217,239,.1); color: var(--cyan); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.approach { padding-block: 130px 150px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(9, 21, 31, .78); }
.principles > div { min-height: 250px; padding: 30px; border-right: 1px solid var(--line); }
.principles > div:last-child { border-right: 0; }
.principles span { color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.principles h3 { margin: 46px 0 13px; font-size: 1.15rem; }
.principles p { margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; padding-block: 34px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
footer p { margin: 0; }
footer strong { color: var(--text); }
footer a { color: var(--cyan); text-decoration: none; font-weight: 750; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-reverse { to { transform: rotate(-327deg); } }
@keyframes breathe { 50% { transform: scale(1.16); opacity: .35; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-signal { max-width: 420px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 480px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles > div:nth-child(2) { border-right: 0; }
  .principles > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 640px) {
  body { background-size: 52px 52px; }
  .site-header { min-height: 72px; padding-inline: 18px; }
  .identity small { display: none; }
  .identity-mark { width: 42px; height: 42px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: .66rem; }
  .hero, .work-section, .approach, footer { width: min(100% - 32px, var(--max)); }
  .hero { padding-block: 64px 92px; gap: 54px; }
  h1 { font-size: clamp(3.05rem, 15vw, 4.65rem); }
  .hero-signal { max-width: 340px; }
  .signal-label { font-size: .6rem; }
  .work-section, .approach { padding-block: 92px; }
  .case-card { min-height: 0; border-radius: 20px; }
  .case-content { padding: 30px 24px 34px; }
  .case-content h3 { font-size: 2.25rem; }
  .case-visual { min-height: 330px; }
  .case-visual img { width: 86%; border-width: 6px; }
  .case-visual span { left: 6%; bottom: 6%; max-width: 85%; font-size: .58rem; }
  .next-case { padding: 30px 24px; border-radius: 20px; }
  .principles { grid-template-columns: 1fr; }
  .principles > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles > div:last-child { border-bottom: 0; }
  .principles h3 { margin-top: 28px; }
}

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