/* ─────────────────────────────────────────────
   SELF-HOSTED FONTS
───────────────────────────────────────────── */
@font-face {
  font-family: "Bebas Neue";
  src: url("/fonts/BebasNeue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ─────────────────────────────────────────────
   DESIGN TOKENS
   Ink + warm off-white + amber — like an
   architectural drawing office, not a tech startup
───────────────────────────────────────────── */
:root {
  --ink: #0d0d0c;
  --paper: #ede9df;
  --muted: #a5a29a;
  --line: #1f1f1d;
  --accent: #d4a843;
  --accent-dim: rgb(212 168 67 / 8%);
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

/* ── Bright theme ────────────────────────────── */
[data-theme="bright"] {
  --ink: #f5f0e8;
  --paper: #1a1a18;
  --muted: #4a4540;
  --line: #d0c8bc;
  --accent: #b8861a;
  --accent-dim: rgb(184 134 26 / 10%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgb(212 168 67 / 22%);
  color: var(--paper);
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.nav-logo .accent {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 44px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.22s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  transition: border-color 0.2s;
}

.nav-hamburger:hover {
  border-color: var(--accent);
}

.nav-right {
  display: none;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--muted);
  padding: 6px 8px;
  line-height: 0;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.theme-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--paper);
}

.theme-toggle--mobile {
  display: none;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--ink) 98%, transparent);
  border-bottom: 1px solid var(--line);
  padding: 32px 56px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-mobile-menu a:hover {
  color: var(--paper);
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding: 120px 56px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

/* Top-edge amber rule */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 55%);
  opacity: 0;
  animation: fade-in 1.1s 1.4s forwards;
}

/* Mesh gradient background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% 55%, rgb(212 168 67 / 7%) 0%, transparent 60%),
    radial-gradient(ellipse 55% 65% at 85% 18%, rgb(212 168 67 / 4%) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 55% 88%, rgb(212 168 67 / 3%) 0%, transparent 60%);
  animation: mesh-drift 24s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(18px, -14px) scale(1.018);
  }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(88px, 15.5vw, 240px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--paper);
  width: fit-content;
  opacity: 0;
  animation: fade-up 0.75s 0.45s forwards;
  position: relative;
  z-index: 1;
}

.hero-title .hl {
  color: var(--accent);
}

.hero-title .hl-sub {
  color: var(--accent);
  font-size: 0.2em;
  line-height: 1.05;
  display: block;
}

.hero-title .hl-sub-right {
  color: var(--accent);
  font-size: 0.52em;
  line-height: 1.05;
  display: block;
  text-align: right;
}

.hero-title .hl-inline {
  color: var(--accent);
  font-size: 0.62em;
  display: inline;
  vertical-align: baseline;
}

.hero-title .hl-block {
  color: var(--accent);
  display: block;
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 44px 0;
  opacity: 0;
  animation: fade-in 0.6s 0.85s forwards;
  position: relative;
  z-index: 1;
}

.hero-sub {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
  opacity: 0;
  animation: fade-up 0.6s 1s forwards;
  position: relative;
  z-index: 1;
}

.hero-descriptor {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.85;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  min-width: 200px;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-ghost {
  width: 100%;
  text-align: center;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 13px 26px;
  transition:
    background 0.25s,
    transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.35s ease;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 82%, var(--paper));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(212 168 67 / 22%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
  transition-duration: 0.1s;
}

.btn-ghost {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 13px 26px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    color 0.3s;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(212 168 67 / 7%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-ghost:hover::before {
  transform: scaleX(1);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   SHARED SECTION SCAFFOLDING
───────────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-heading {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 130px);
  line-height: 0.93;
  letter-spacing: 0.02em;
  color: var(--paper);
}

/* ─────────────────────────────────────────────
   SERVICES (row list style)
───────────────────────────────────────────── */
.services {
  padding: 110px 56px;
  border-top: 1px solid var(--line);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 64px;
  gap: 40px;
}

.services-intro {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.85;
  padding-bottom: 6px;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 30px 0 30px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.22s;
  cursor: pointer;
}

.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-dim);
  opacity: 0;
  transition: opacity 0.22s;
}

.service-row:hover::before {
  opacity: 1;
}

.service-row:last-child {
  border-bottom: none;
}

/* Amber left-bar on hover */
.service-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-row:hover::after {
  transform: scaleY(1);
}

.svc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}

.svc-body {
  position: relative;
  z-index: 1;
}

.svc-arrow {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--muted);
  position: relative;
  z-index: 1;
  align-self: center;
  padding-right: 24px;
  transition:
    color 0.22s,
    transform 0.22s;
}

.service-row:hover .svc-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.svc-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 10px;
}

.svc-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.svc-tag {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.svc-tag::before {
  content: "— ";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

/* ─────────────────────────────────────────────
   ETHICS / FRAMEWORK
───────────────────────────────────────────── */
.ethics {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ethics-left {
  padding: 110px 56px;
  border-right: 1px solid var(--line);
}

.ethics-right {
  padding: 110px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ethics-statement {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.ethics-statement .hl {
  color: var(--accent);
}

.ethics-pull {
  margin-top: auto;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.principles {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 48px;
}

.principle {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.principle:last-child {
  border-bottom: none;
}

.principle-dash {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.principle-text {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--paper);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   CTA
───────────────────────────────────────────── */
.cta {
  border-top: 1px solid var(--line);
  padding: 110px 56px;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 85%, var(--paper) 15%);
}

.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
}

.cta-heading {
  font-family: var(--display);
  font-size: clamp(52px, 7.5vw, 108px);
  line-height: 0.93;
  letter-spacing: 0.02em;
  color: var(--paper);
  max-width: 680px;
}

.cta-heading .hl {
  color: var(--accent);
}

.cta-aside {
  flex-shrink: 0;
  text-align: right;
}

.cta-aside p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Ghost watermark */
.cta-mark {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-family: var(--display);
  font-size: clamp(160px, 22vw, 340px);
  line-height: 1;
  color: color-mix(in srgb, var(--paper) 4%, transparent);
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 56px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 14px;
}

.footer-logo .accent {
  color: var(--accent);
}

.footer-tagline {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-btn svg {
  width: 15px;
  height: 15px;
}

.footer-email {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-privacy {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-privacy:hover {
  color: var(--accent);
}

.footer-privacy::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─────────────────────────────────────────────
   PROJECTS / CARDS GRID (shared pattern)
───────────────────────────────────────────── */
.projects {
  border-top: 1px solid var(--line);
  padding: 110px 56px;
}

.projects-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 56px;
  gap: 40px;
}

.projects-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  display: block;
  padding: 44px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    background 0.22s,
    box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-dim);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  box-shadow:
    0 0 50px rgb(212 168 67 / 5%),
    inset 0 1px 0 rgb(212 168 67 / 8%);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.project-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.project-title {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--paper);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.project-desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.project-link {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--muted);
  margin-top: 24px;
  text-align: right;
  padding-right: 24px;
  position: relative;
  z-index: 1;
  transition:
    color 0.22s,
    transform 0.22s;
}

.project-card:hover .project-link {
  color: var(--accent);
  transform: translateX(4px);
}

.project-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
}

/* ─────────────────────────────────────────────
   SERVICE CARD EXPAND
───────────────────────────────────────────── */
.svc-card-detail {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
}

.svc-card-detail-inner {
  overflow: hidden;
}

.project-card .svc-card-detail-list {
  padding: 24px 0 4px;
}

.svc-card-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-card-detail-item {
  display: flex;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.svc-card-detail-item::before {
  content: "—";
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--mono);
}

/* ─────────────────────────────────────────────
   TEAM
───────────────────────────────────────────── */
.team {
  border-top: 1px solid var(--line);
  padding: 110px 56px;
}

.team-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 56px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.team-card {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.team-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.team-name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.team-bio {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   PULL QUOTE
───────────────────────────────────────────── */
.pullquote {
  border-top: 1px solid var(--line);
  padding: 110px 56px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  align-items: start;
}

.pullquote-rule {
  padding-top: 14px;
}

.pullquote-rule::before {
  content: "";
  display: block;
  width: 2px;
  height: 80px;
  background: var(--accent);
}

.pullquote-text {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin-bottom: 40px;
}

.pullquote-text .hl {
  color: var(--accent);
}

.pullquote-attribution {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pullquote-attribution::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--muted);
  flex-shrink: 0;
}

.pullquote-cite {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ─────────────────────────────────────────────
   KEYFRAMES
───────────────────────────────────────────── */
@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────
   SHARED EYEBROW
───────────────────────────────────────────── */
.page-header-eyebrow,
.coming-soon-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header-eyebrow::before,
.coming-soon-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ─────────────────────────────────────────────
   SHARED CARD TOP-BAR HOVER
───────────────────────────────────────────── */
.project-card::after,
.team-card::after,
.value-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover::after,
.team-card:hover::after,
.value-card:hover::after,
.contact-card:hover::after {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────
   INNER PAGE SCAFFOLDING
───────────────────────────────────────────── */
.page-header {
  padding: 160px 56px 80px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 55%);
}

.page-header-eyebrow {
  margin-bottom: 24px;
}

.page-header-desc {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.85;
  margin-top: 32px;
}

/* ─────────────────────────────────────────────
   ETHICS PAGE — VALUE GROUPS
───────────────────────────────────────────── */
.values-section {
  border-top: 1px solid var(--line);
  padding: 80px 56px;
}

.values-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.value-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 48px;
  scroll-margin-top: 80px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.value-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-row:hover::before {
  transform: scaleX(1);
}

.value-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: 6px;
}

.value-name {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.value-desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 65ch;
}

.purpose-desc {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.06em;
  color: var(--paper);
  line-height: 1.25;
  margin-top: 24px;
  margin-left: 128px;
  max-width: 65ch;
}

/* ─────────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────────── */
.contact-section {
  padding: 0 56px 110px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 56px;
}

.contact-card {
  display: block;
  padding: 44px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.contact-card-value {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 8px;
}

.contact-card-note {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   TEXT PAGE (imprint, privacy policy, etc.)
───────────────────────────────────────────── */
.text-section {
  padding: 80px 56px;
  border-top: 1px solid var(--line);
}

.text-width {
  max-width: 95ch;
  margin-left: auto;
  margin-right: auto;
}

.text-block {
  max-width: 95ch;
  margin: 0 auto 56px;
}

.text-block:last-child {
  margin-bottom: 0;
}

.text-block h2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.text-block p,
.text-block address {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  font-style: normal;
}

.text-block a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-block a:hover {
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   COMING SOON
───────────────────────────────────────────── */
.coming-soon-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 120px 56px 80px;
  position: relative;
}

.coming-soon-page::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 55%);
}

.coming-soon-eyebrow {
  margin-bottom: 24px;
}

.coming-soon-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 44px 0;
}

.coming-soon-sub {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.coming-soon-desc {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}

/* ─────────────────────────────────────────────
   CARD SPOTLIGHT
───────────────────────────────────────────── */
.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
    rgb(212 168 67 / 9%),
    transparent 70%
  );
  z-index: 0;
}

.project-card:hover .card-spotlight,
.team-card:hover .card-spotlight,
.contact-card:hover .card-spotlight,
.value-row:hover .card-spotlight {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   SERVICE CARD ICONS
───────────────────────────────────────────── */
.project-icon-wrap {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 1;
}

.project-icon {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  display: block;
  opacity: 0.65;
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.project-card:hover .project-icon {
  opacity: 1;
  transform: translateY(-1px);
}

/* value-row icons (services page list layout) */
.value-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.value-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  display: block;
  opacity: 0.65;
  transition: opacity 0.3s ease;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.value-row:hover .value-icon svg {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   GRADIENT ACCENT TEXT
───────────────────────────────────────────── */
.hl,
.hl-sub,
.hl-sub-right,
.hl-inline,
.hl-block {
  background: linear-gradient(135deg, #c09535 0%, #d4a84a 50%, #c09535 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hl-block {
  width: fit-content;
}

[data-theme="bright"] .hl,
[data-theme="bright"] .hl-sub,
[data-theme="bright"] .hl-sub-right,
[data-theme="bright"] .hl-inline,
[data-theme="bright"] .hl-block {
  background: linear-gradient(135deg, #8a6010 0%, #a87820 50%, #8a6010 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────
   MANIFESTO STRIP
───────────────────────────────────────────── */
.manifesto {
  padding: 60px 56px;
  background: color-mix(in srgb, var(--ink) 92%, var(--paper) 8%);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 32px;
}

.manifesto-icon {
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.manifesto-icon svg {
  width: 22px;
  height: 22px;
}

.manifesto-text {
  font-family: var(--display);
  font-size: clamp(20px, 2.8vw, 32px);
  color: var(--paper);
  letter-spacing: 0.03em;
  line-height: 1.2;
  max-width: 65ch;
}

.manifesto-text .hl {
  background: linear-gradient(135deg, #c49030 0%, #e8c46a 45%, #c49030 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="bright"] .manifesto-text .hl {
  background: linear-gradient(135deg, #8a5f0a 0%, #b8861a 45%, #8a5f0a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto-cta {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 12px 22px;
  transition:
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.manifesto-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (width <= 900px) {
  nav {
    padding: 20px 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .theme-toggle--mobile {
    display: block;
  }

  .nav-right {
    display: flex;
  }

  .nav-mobile-menu {
    padding: 28px;
    top: 61px;
  }

  .hero {
    padding: 100px 28px 60px;
  }

  .hero-sub {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-ctas {
    align-items: flex-start;
    flex-direction: row;
  }

  .services {
    padding: 72px 28px;
  }

  .services-header {
    grid-template-columns: 1fr;
  }

  .services-intro {
    max-width: none;
  }

  .service-row {
    grid-template-columns: 40px 1fr auto;
  }

  .stats {
    padding: 72px 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 28px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .projects {
    padding: 72px 28px;
  }

  .projects-header {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .project-card-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .team {
    padding: 72px 28px;
  }

  .team-header {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .pullquote {
    padding: 72px 28px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pullquote-rule {
    padding-top: 0;
  }

  .pullquote-rule::before {
    height: 2px;
    width: 60px;
  }

  .ethics {
    grid-template-columns: 1fr;
  }

  .ethics-left {
    padding: 72px 28px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .ethics-right {
    padding: 72px 28px;
  }

  .cta {
    padding: 72px 28px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .cta-aside {
    text-align: left;
  }

  .cta-aside p {
    max-width: none;
  }

  footer {
    padding: 56px 28px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .page-header {
    padding: 120px 28px 60px;
  }

  .values-section {
    padding: 60px 28px;
  }

  .value-row {
    grid-template-columns: 48px 1fr;
    gap: 0 24px;
    padding: 36px 0;
  }

  .purpose-desc {
    margin-left: 72px;
  }

  .contact-section {
    padding: 0 28px 72px;
  }

  .text-section {
    padding: 60px 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .coming-soon-page {
    padding: 100px 28px 60px;
  }

  .manifesto {
    padding: 40px 28px;
    flex-wrap: wrap;
    gap: 20px;
  }

  .manifesto-cta {
    margin-left: 0;
  }
}

@media (width <= 500px) {
  .hero-title {
    font-size: 72px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }

  .values-grid-4 {
    grid-template-columns: 1fr;
  }
}
