:root {
  --ink: #0a0a0b;
  --ink-2: #111115;
  --smoke: #1b1b22;
  --bone: #f2ede4;
  --bone-dim: #c8c2b6;
  --dust: #8a847a;
  --azure: #3d7cff;
  --azure-glow: rgba(61, 124, 255, 0.18);
  --ff-display: "Fraunces", "Times New Roman", serif;
  --ff-body: "Instrument Sans", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Global focus state */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 4px;
  border-radius: 2px;
}


body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--azure); color: var(--bone); }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.65); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(10,10,11,0.85) 0%, rgba(10,10,11,0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.logo:hover .logo-img { transform: rotate(-8deg) scale(1.05); }
.logo-sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.3s;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.nav-links a span {
  color: var(--azure);
  font-size: 9px;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--bone);
  padding: 9px 16px;
  border-radius: 999px;
  transition: all 0.35s ease;
}
.nav-cta:hover {
  background: var(--bone);
  color: var(--ink);
}

/* Hero */
.hero {
  min-height: 92vh;
  padding: 130px var(--pad) 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 110vw;
  height: 70vh;
  background: radial-gradient(ellipse at center, var(--azure-glow) 0%, transparent 55%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.hero-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  gap: 20px;
  flex-wrap: wrap;
}
.pill-avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border: 1px solid rgba(61, 124, 255, 0.35);
  border-radius: 999px;
  background: rgba(61, 124, 255, 0.06);
  color: var(--bone);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 2.2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  position: relative;
  z-index: 1;
  margin: auto 0;
  max-width: 14ch;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: reveal 1.3s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) { animation-delay: 0.3s; padding-left: 1.4em; }
.hero-title .line:nth-child(3) { animation-delay: 0.45s; padding-left: 0.3em; }
.hero-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--azure);
  font-weight: 300;
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal 1.3s cubic-bezier(0.2, 0.7, 0.1, 1) 0.65s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.1, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--azure);
  color: var(--bone);
  border-color: var(--azure);
  box-shadow: 0 0 0 0 rgba(61, 124, 255, 0);
}
.btn-primary:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
  box-shadow: 0 0 40px rgba(61, 124, 255, 0.35);
  transform: translateY(-2px);
}
.btn-primary .btn-arrow {
  transition: transform 0.4s ease;
}
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-ghost {
  color: var(--bone);
  border-color: rgba(242, 237, 228, 0.25);
}
.btn-ghost:hover {
  border-color: var(--bone);
  background: rgba(242, 237, 228, 0.06);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 70px;
  margin: 50px 0 44px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: reveal 1.4s ease 0.75s forwards;
}
.waveform .bar {
  flex: 1;
  min-width: 2px;
  background: var(--azure);
  opacity: 0.55;
  border-radius: 1px;
  transform-origin: center;
  animation: wave 2.4s ease-in-out infinite;
  animation-delay: var(--delay);
  height: var(--h);
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.22); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 0.85; }
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-family: var(--ff-body);
  position: relative;
  z-index: 1;
}
.hero-col { min-width: 0; }
.hero-col-end { text-align: right; }
.mono-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--bone-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.hero-val {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--bone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Section head */
.section-head {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0 var(--pad);
  margin-bottom: 80px;
}
.section-head .num {
  color: var(--azure);
  border: 1px solid var(--azure);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10px;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--smoke);
}

/* Manifesto */
.manifesto {
  padding: 140px 0 130px;
  border-top: 1px solid var(--smoke);
}
.manifesto-q {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  padding: 0 var(--pad);
  max-width: 22ch;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  color: var(--bone);
  text-wrap: balance;
}
.manifesto-q em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--azure);
  font-weight: 300;
}
.sign {
  padding: 56px var(--pad) 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--bone-dim);
  text-transform: uppercase;
}

/* About */
.about {
  padding: 130px 0;
  border-top: 1px solid var(--smoke);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 140px;
  padding: 0 var(--pad);
  max-width: 1500px;
}
.about-text p {
  font-family: var(--ff-body);
  font-size: 26px;
  line-height: 1.5;
  margin-bottom: 36px;
  color: var(--bone-dim);
  max-width: 28ch;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text em {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--azure);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 48;
}
.about-text strong {
  color: var(--bone);
  font-weight: 600;
}
.about-meta {
  padding-top: 6px;
}
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--smoke);
  font-size: 15px;
  color: var(--bone);
}
.meta-row:first-child { border-top: 1px solid var(--smoke); }

/* Services */
.services {
  padding: 130px 0;
  border-top: 1px solid var(--smoke);
}
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.service {
  padding: 70px 50px;
  border-top: 1px solid var(--smoke);
  border-left: 1px solid var(--smoke);
  position: relative;
  transition: background 0.5s ease;
}
.service:nth-child(2n+1) { border-left: none; }
.service:nth-child(-n+2) { border-top: none; }
.service:hover { background: var(--ink-2); }
.service-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--azure);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}
.service h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  font-variation-settings: "SOFT" 30, "opsz" 144;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  line-height: 1;
}
.service p {
  color: var(--bone-dim);
  font-size: 16px;
  max-width: 42ch;
  line-height: 1.6;
}

/* Work — single featured card + request block */
.work {
  padding: 130px 0 120px;
  border-top: 1px solid var(--smoke);
}
.work-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
  margin: 0 var(--pad);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--smoke);
  overflow: hidden;
  transition: border-color 0.5s ease, transform 0.5s ease;
  position: relative;
}
.work-featured:hover {
  border-color: rgba(61, 124, 255, 0.45);
}
.work-featured-media {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #14141f 0%, #0a0a10 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--smoke);
}
.work-featured-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(61,124,255,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(61,124,255,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.work-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 80%, var(--azure-glow) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.work-featured:hover .work-featured-media::after { opacity: 1; }
.wf-code {
  position: absolute;
  top: 28px;
  left: 32px;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.9;
  color: var(--bone);
  opacity: 0.12;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.work-featured:hover .wf-code { opacity: 0.3; }
.wf-status {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--azure);
  text-transform: uppercase;
}
.wf-play {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--azure);
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--azure);
  padding-left: 4px;
  transition: all 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.work-featured:hover .wf-play {
  background: var(--azure);
  color: var(--bone);
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(61, 124, 255, 0.45);
}
.wf-label {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--bone-dim);
  text-transform: uppercase;
  opacity: 0.55;
}
.work-featured-meta {
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.work-featured-meta h3 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  color: var(--bone);
}
.work-featured-meta p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 42ch;
}
.wf-cta {
  margin-top: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--azure);
  transition: gap 0.4s ease;
}
.work-featured:hover .wf-cta { gap: 14px; }

.work-request {
  margin: 40px var(--pad) 0;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border: 1px dashed rgba(242, 237, 228, 0.15);
  border-radius: 2px;
}
.work-request-copy {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.25;
  color: var(--bone);
  font-variation-settings: "SOFT" 30, "opsz" 48;
  margin-top: 10px;
  max-width: 38ch;
}
.work-request-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  border: 1px solid var(--bone);
  border-radius: 999px;
  transition: all 0.4s ease;
}
.work-request-btn:hover {
  background: var(--bone);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Contact */
.contact {
  padding: 150px 0 120px;
  border-top: 1px solid var(--smoke);
}
.contact-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  padding: 0 var(--pad);
  font-variation-settings: "SOFT" 40, "opsz" 144;
  margin-bottom: 100px;
  max-width: 15ch;
}
.contact-title em {
  font-style: italic;
  color: var(--azure);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 300;
}
.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px var(--pad);
  border-top: 1px solid var(--smoke);
  border-bottom: 1px solid var(--smoke);
  font-family: var(--ff-display);
  font-size: clamp(22px, 4.5vw, 62px);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  text-decoration: none;
  letter-spacing: -0.015em;
  color: var(--bone);
  transition: all 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
  position: relative;
  overflow: hidden;
}
.email-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--azure);
  transform: translate3d(-101%, 0, 0);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
  z-index: 0;
  will-change: transform;
}
.email-link:hover::before,
.email-link:focus-visible::before { transform: translate3d(0, 0, 0); }
.email-text, .email-arrow { position: relative; z-index: 1; }
.email-arrow {
  font-family: var(--ff-body);
  font-size: 0.7em;
  transition: transform 0.5s ease;
}
.email-link:hover .email-arrow { transform: translate(10px, -10px); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 44px var(--pad);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.socials a {
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.socials a:hover { color: var(--azure); }
.socials a span { font-size: 10px; }

/* Footer */
.footer {
  border-top: 1px solid var(--smoke);
  padding: 60px var(--pad);
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.footer-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.85;
}
.footer-cols {
  display: flex;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-links a span { display: none; }
}

@media (max-width: 900px) {
  :root { --pad: 22px; }
  .nav { padding: 18px var(--pad); }
  .nav-links { display: none; }
  .logo-sub { display: none; }
  .hero { padding: 130px var(--pad) 50px; min-height: 92vh; }
  .hero-label { flex-direction: column; gap: 6px; }
  .hero-title { font-size: clamp(52px, 16vw, 110px); }
  .hero-title .line:nth-child(2) { padding-left: 0.6em; }
  .hero-foot { flex-direction: column; gap: 22px; }
  .hero-col-end { text-align: left; }
  .waveform { height: 50px; margin: 40px 0 32px; }
  .section-head { margin-bottom: 50px; }
  .manifesto, .about, .services, .work, .contact { padding-top: 90px; padding-bottom: 90px; }
  .manifesto-q { font-size: clamp(28px, 8vw, 44px); }
  .sign { padding-top: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-text p { font-size: 18px; margin-bottom: 22px; }
  .services-list { grid-template-columns: 1fr; }
  .service { padding: 50px var(--pad); border-left: none; }
  .service:nth-child(-n+2) { border-top: 1px solid var(--smoke); }
  .service:first-child { border-top: none; }
  .work-featured { grid-template-columns: 1fr; margin: 0 var(--pad); }
  .work-featured-media { border-right: none; border-bottom: 1px solid var(--smoke); }
  .work-featured-meta { padding: 36px 28px 44px; gap: 18px; }
  .wf-code { font-size: 68px; top: 18px; left: 22px; }
  .wf-status { top: 18px; right: 22px; }
  .wf-play { width: 78px; height: 78px; }
  .work-request { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 28px; margin-top: 24px; }
  .work-request-btn { width: 100%; justify-content: center; }
  .hero-label { flex-direction: column; align-items: flex-start; }
  .pill-avail { font-size: 10px; padding: 6px 12px 6px 10px; }
  .btn { padding: 15px 22px; font-size: 11px; }
  .contact-title { margin-bottom: 60px; }
  .email-link { padding: 32px var(--pad); font-size: 22px; }
  .socials { padding: 32px var(--pad); gap: 22px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 24px; padding: 44px var(--pad); }
  .footer-mark { width: 56px; height: 56px; }
  .footer-cols { flex-direction: column; gap: 8px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .line,
  .waveform,
  .reveal,
  .hero-cta { opacity: 1 !important; transform: none !important; }
  .pill-dot { animation: none !important; }
}
