: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; scroll-padding-top: 110px; }
body {
  margin: 0;
  min-width: 280px;
  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; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.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));
  background: rgba(7, 16, 25, .82);
  backdrop-filter: blur(18px);
}
.identity { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 14px; text-decoration: none; }
.identity-mark {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  aspect-ratio: 1 / 1;
  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; }
.header-links { align-items: center; }
.header-links a { display: inline-flex; align-items: center; min-height: 40px; }
.nav-prefix { margin-right: .35em; }
.site-header .social-icon { justify-content: center; width: 20px; }
.social-icon span { display: none; }
.social-icon svg { display: block; width: 19px; height: 19px; flex-shrink: 0; }
.site-header .social-icon::after { display: none; }

main { overflow: hidden; }
.hero, .work-section, .selected-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.55fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(32px, 3vw, 56px);
  padding-block: clamp(72px, 10vw, 130px);
}
.eyebrow { display: flex; align-items: center; gap: 17px; margin: 0 0 30px; color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-disc { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; aspect-ratio: 1; border-radius: 50%; color: var(--bg); background: #59bed3; font-size: .77rem; font-weight: 900; letter-spacing: -.025em; }
.eyebrow-text { line-height: 1.6; text-wrap: balance; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 32px; font-size: clamp(3.1rem, 5.1vw, 5.1rem); line-height: 1; letter-spacing: -.065em; font-weight: 900; }
h1 > span, h1 > em { display: block; }
.hero-copy { min-width: 0; }
@media (min-width: 981px) {
  .hero h1 { font-size: clamp(3.1rem, 4.7vw, 4.8rem); }
  .hero h1 > span, .hero h1 > em { white-space: nowrap; }
}
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: 19%; 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; }
.portrait-core { inset: 25%; padding: 8px; overflow: hidden; display: block; }
.portrait-core img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.signal-label { position: absolute; z-index: 2; margin: 0; padding: 9px 14px; border: 1px solid #345562; border-radius: 999px; background: #0b1822; color: #c1d0d8; font-size: .69rem; font-weight: 650; line-height: 1.3; white-space: nowrap; transform: translate(-50%, -50%); }
/* The label centers lie on the same circles as their assigned tracks. */
.label-one { left: 71.9203%; top: 28.0797%; border-color: #60363b; }
.label-two { left: 28.0797%; top: 28.0797%; border-color: #60363b; }
.label-three { left: 50%; top: 75%; background: #112631; border-color: #477586; color: #e1f7fa; }
.signal-toggle { position: absolute; inset: 4%; z-index: 3; width: 92%; height: 92%; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.signal-labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(7px); transition: opacity .32s ease, transform .4s cubic-bezier(.2,.8,.2,1), visibility 0s .4s; }
.hero-signal.is-revealed .signal-labels { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: .05s, .05s, 0s; }

.work-section { padding-block: 85px 115px; }
.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); }
.case-simplenight .case-meta, .case-simplenight .case-link span { color: #be95ff; }
.case-simplenight .case-visual { background: radial-gradient(circle at 55% 45%, rgba(126, 38, 235, .19), transparent 62%); }
.case-simplenight .case-visual span { color: #c7a4ff; }
.case-simplenight::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 5; background: linear-gradient(180deg, transparent, #8428ec, transparent); }
.case-simplenight .visual-back { height: 61%; object-fit: cover; object-position: top; }
.case-simplenight .visual-front { height: 57%; object-fit: cover; object-position: top; }
.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; }

.selected-section { padding-block: 100px 120px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.gallery-filters button { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(9,21,31,.65); padding: 11px 18px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.gallery-filters button:hover { color: var(--text); border-color: rgba(83,217,239,.55); }
.gallery-filters button.is-active { color: var(--bg); border-color: var(--cyan); background: var(--cyan); }
.gallery-filters button span { margin-left: 6px; font-size: .66rem; opacity: .7; }
.selected-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.selected-card { min-width: 0; }
.selected-image { position: relative; display: grid; place-items: center; width: 100%; height: clamp(300px, 30vw, 400px); padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at top, #172e3c, #0c1822 70%); cursor: zoom-in; overflow: hidden; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.selected-image img { display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.expand-cue { position: absolute; right: 16px; bottom: 16px; border: 1px solid #47727f; padding: 9px 12px; border-radius: 999px; background: #071019ed; color: #cef5fa; font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.selected-copy { padding: 23px 5px 0; }
.selected-meta { color: var(--cyan); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; line-height: 1.5; }
.selected-copy h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); letter-spacing: -.04em; margin-bottom: 12px; }
.selected-copy > p:last-child { color: var(--muted); line-height: 1.65; font-size: .92rem; max-width: 51ch; margin-bottom: 0; }
.approach { padding-block: 70px 120px; }
.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; 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; }

.screen-dialog { position: fixed; inset: 0; width: min(1440px, calc(100vw - 48px)); height: calc(100dvh - 48px); max-width: none; max-height: none; margin: auto; padding: 0; color: var(--text); background: #09131c; border: 1px solid #385768; border-radius: 20px; overflow: hidden; box-shadow: 0 35px 150px #000a; }
.screen-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.screen-dialog::backdrop { background: rgba(1,6,10,.9); backdrop-filter: blur(12px); }
.dialog-toolbar, .dialog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 23px; background: #0d1b26; }
#dialog-counter { color: var(--cyan); font-size: .72rem; font-weight: 750; letter-spacing: .1em; }
.screen-dialog button { padding: 10px 14px; border: 1px solid #365362; border-radius: 999px; background: #122633; color: var(--text); cursor: pointer; font-size: .8rem; font-weight: 650; }
.screen-dialog button:hover { background: #214356; }
.dialog-close { display: flex; align-items: center; gap: 18px; }
.dialog-close span { font-size: 1.3rem; line-height: 1; }
.dialog-scroll { overflow: auto; overscroll-behavior: contain; }
.dialog-image-wrap { min-height: 45%; padding: clamp(15px, 3vw, 45px); display: grid; place-items: center; background: radial-gradient(ellipse at top, #17303f, #08121a 80%); }
.dialog-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 5px; }
.dialog-caption { max-width: 850px; margin: 0 auto; padding: 28px 28px 36px; }
.dialog-caption h2 { margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.7rem); letter-spacing: -.045em; }
.dialog-caption > p:not(.selected-meta) { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.dialog-bottom > span { color: var(--muted); font-size: .7rem; }
body.dialog-open { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .selected-image:hover { transform: translateY(-4px); border-color: rgba(83,217,239,.5); box-shadow: 0 16px 35px rgba(0,0,0,.2); }
}
.selected-image:focus-visible { border-color: var(--cyan); }

.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; }
  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 { flex-basis: 42px; width: 42px; height: 42px; min-width: 42px; min-height: 42px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: .66rem; }
  .nav-prefix { display: none; }
  .hero, .work-section, .selected-section, .approach, footer { width: min(100% - 32px, var(--max)); }
  .hero { padding-block: 64px 92px; gap: 54px; }
  h1 { font-size: clamp(2.05rem, 10.2vw, 4rem); line-height: 1.06; }
  .hero-signal { max-width: 340px; }
  .signal-label { font-size: .6rem; }
  .work-section, .selected-section, .approach { padding-block: 72px; }
  .eyebrow { gap: 13px; }
  .eyebrow-disc { flex-basis: 36px; width: 36px; height: 36px; font-size: .7rem; }
  .selected-grid { grid-template-columns: 1fr; gap: 36px; }
  .selected-image { height: 290px; padding: 20px; }
  .gallery-filters { gap: 7px; }
  .gallery-filters button { font-size: .7rem; padding: 10px 13px; }
  .screen-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 15px; }
  .dialog-toolbar, .dialog-bottom { padding: 10px 12px; }
  .dialog-bottom > span { display: none; }
  .dialog-caption { padding: 24px 20px; }
  .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; }
  .principles h3 { margin-top: 28px; }
}

@media (max-width: 430px) {
  .identity > span:last-child { display: none; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: .61rem; letter-spacing: .08em; }
  .eyebrow { font-size: .62rem; letter-spacing: .11em; }
  .hero-signal { max-width: 300px; }
  .signal-label { padding: 7px 10px; font-size: .55rem; }
  .hero { padding-bottom: 60px; }
}

@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; }
}
