/*
  VOICE: quiet, direct, a small Brooklyn tech company
  IDEA: carried over from the Studio Support site — monochrome studio signage
  PICTURE: concentric orbit mark; two large door panels on the front page
  COLOUR and TYPE: graphite ground, off-white ink; Inter + DM Mono
  LAYOUT: fixed nav, split hero, card grids, stat stack, contact, footer
*/
@font-face { font-family: 'Saira Extra Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/saira-extra-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Saira Extra Condensed'; font-weight: 700; font-display: swap; src: url(../fonts/saira-extra-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 300; font-display: swap; src: url(../fonts/dm-mono-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-display: swap; src: url(../fonts/dm-mono-latin-400-normal.woff2) format('woff2'); }

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

:root {
  color-scheme: dark;
  --bg:     #1c1b18;
  --bg2:    #24231f;
  --bg3:    #2f2d28;
  --cream:  #e8e5d4;
  --cream2: #bdb9a6;
  --accent: #e1e0cd;   /* logo ivory */
  --hover:  #f3f0e2;
  --muted:  #8f8b7d;
  --border: rgba(225,224,205,0.12);
  --display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: clip;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 3rem;
  background: rgba(28,27,24,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
  opacity: 0; animation: fadeDown 0.8s 0.2s forwards;
}
.logo {
  font-family: 'DM Mono', monospace; font-weight: 300; font-size: 0.95rem;
  letter-spacing: 0.14em; color: var(--cream); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--muted); }
.logo img { display: block; height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--cream); }
.cta-nav {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); text-decoration: none; white-space: nowrap;
  border: 0.5px solid var(--accent); padding: 0.6rem 1.2rem; border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.cta-nav:hover { background: var(--accent); color: var(--bg); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center;
  padding: 9rem 3rem 5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 65vw; height: 65vw;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(225,224,205,0.04) 0%, transparent 65%);
}
.hero-text { opacity: 0; animation: fadeUp 0.9s 0.5s forwards; position: relative; z-index: 1; }
.eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ''; display: block; width: 32px; height: 0.5px; background: var(--accent); }
h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: 0.95;
  color: var(--cream); margin-bottom: 1.75rem; letter-spacing: -0.005em; text-wrap: balance;
}
h1 em, h2 em { font-style: normal; color: var(--cream2); }
.hero-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 460px; margin-bottom: 2.5rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.tag {
  font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  border: 0.5px solid var(--border); padding: 0.35rem 0.85rem; border-radius: 100px;
}
.hero-cta {
  display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none;
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 1rem 2.2rem; border-radius: 2px; transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover { background: var(--hover); transform: translateY(-1px); }

/* ─── HERO BEAR ─── */
.hero-bear { width: min(100%, 560px); height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35)); }

/* ─── ORBIT MARK ─── */
.hero-visual {
  display: flex; align-items: center; justify-content: center; position: relative;
  opacity: 0; animation: fadeUp 0.9s 0.8s forwards;
}
.mark {
  width: 320px; height: 320px; border: 0.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.mark::before { content: ''; position: absolute; inset: 18px; border: 0.5px solid rgba(225,224,205,0.18); border-radius: 50%; }
.mark-initials, .mark-shadow {
  font-weight: 700; font-size: 5rem; letter-spacing: -0.05em; user-select: none;
}
.mark-initials { color: var(--cream); opacity: 0.12; position: relative; z-index: 1; }
.mark-shadow { position: absolute; color: var(--accent); opacity: 0.22; transform: translate(3px,3px); }
.orbit { position: absolute; inset: 0; border-radius: 50%; animation: spin 20s linear infinite; }
.orbit-dot {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.65;
}
.orbit2 { animation: spin 30s linear infinite reverse; inset: 36px; }
.orbit2 .orbit-dot { width: 5px; height: 5px; background: var(--cream2); opacity: 0.3; }
.orbit3 { animation: spin 14s linear infinite; inset: -24px; border: 0.5px solid rgba(225,224,205,0.07); }
.orbit3 .orbit-dot { width: 4px; height: 4px; background: var(--cream); opacity: 0.2; top: -2px; }
.hero-ticker {
  position: absolute; right: -2rem; top: 50%; transform: translateY(-50%) rotate(90deg);
  font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); opacity: 0.4; white-space: nowrap;
}

/* ─── FRONT DOORS (home page) ─── */
.doors {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1px;
  background: var(--border); border: 0.5px solid var(--border); max-width: 640px;
}
.door {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.25rem;
  background: var(--bg); padding: 1.75rem 1.75rem 1.5rem; text-decoration: none;
  position: relative; overflow: hidden; transition: background 0.3s; min-height: 196px;
}
.door::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.door:hover { background: var(--bg2); }
.door:hover::after, .door:focus-visible::after { transform: scaleX(1); }
.door-title { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.door-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.6; margin-top: 0.75rem; }
.door-go {
  font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream2); display: flex; align-items: center; gap: 0.6rem;
}
.door-go::after { content: '→'; transition: transform 0.2s; }
.door:hover .door-go::after { transform: translateX(4px); }

/* ─── HOME (two choices only) ─── */
.home-main {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.75rem; padding: 3rem 1.5rem; text-align: center;
  opacity: 0; animation: fadeUp 0.9s 0.2s forwards;
}
.home-brand { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; margin: 0; }
.home-bear { width: min(78vw, 520px); height: auto; display: block; }
.home-word { width: min(46vw, 250px); height: auto; display: block; }
.home-doors { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.home-door {
  min-width: 230px; padding: 1.1rem 2.5rem; text-align: center; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); border: 1px solid var(--accent); border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.home-door:hover, .home-door:focus-visible { background: var(--accent); color: var(--bg); }
@media (max-width: 600px) {
  .home-doors { flex-direction: column; width: 100%; max-width: 320px; }
  .home-door { min-width: 0; }
}

/* ─── SECTION SHARED ─── */
.section-label {
  font-family: 'DM Mono', monospace; font-size: 0.63rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after { content: ''; display: block; flex: 1; height: 0.5px; background: var(--border); }

/* ─── CARD GRID ─── */
.disciplines { padding: 6rem 3rem; border-top: 0.5px solid var(--border); }
.disciplines-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px;
  background: var(--border); border: 0.5px solid var(--border);
}
.disciplines-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.disciplines-grid.one { grid-template-columns: minmax(0,1fr); }
.disc-card {
  background: var(--bg); padding: 3.25rem 3rem; position: relative; overflow: hidden;
  transition: background 0.3s;
}
.disc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.disc-card:hover { background: var(--bg2); }
.disc-card:hover::after { transform: scaleX(1); }
.disc-num {
  font-family: 'DM Mono', monospace; font-size: 0.63rem; color: var(--accent);
  letter-spacing: 0.15em; margin-bottom: 1.75rem; opacity: 0.8;
}
.disc-title { font-family: var(--display); font-weight: 700; font-size: 2.1rem; color: var(--cream); margin-bottom: 0.85rem; line-height: 1.15; letter-spacing: -0.01em; }
.disc-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.75rem; max-width: 560px; }
.disc-bullets { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem 1.5rem; }
.disciplines-grid.one .disc-bullets { grid-template-columns: repeat(3, minmax(0,1fr)); }
.disciplines-grid.three .disc-bullets { grid-template-columns: minmax(0,1fr); }
.disc-bullet {
  font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--cream2); opacity: 0.8;
  display: flex; align-items: center; gap: 0.6rem; line-height: 1.4;
}
.disc-bullet::before { content: ''; width: 14px; height: 0.5px; background: var(--accent); flex-shrink: 0; }

/* ─── STEPS ─── */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: var(--border); border: 0.5px solid var(--border); margin-top: 1px;
}
.step { background: var(--bg2); padding: 2.25rem 3rem; }
.step h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin: 0.9rem 0 0.6rem; letter-spacing: -0.01em; }
.step p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }

/* ─── ABOUT / STACK ─── */
.about {
  padding: 6rem 3rem; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 6rem; align-items: start; border-top: 0.5px solid var(--border);
}
.about-text h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 4.5vw, 3.8rem); line-height: 1;
  margin-bottom: 1.5rem;
}
.about-text p { color: var(--muted); font-size: 0.95rem; line-height: 1.85; margin-bottom: 1.1rem; max-width: 560px; }
.about-stack { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 0.5px solid var(--border); }
.stack-row {
  background: var(--bg2); padding: 1.5rem 2rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap; transition: background 0.2s;
}
.stack-row:hover { background: var(--bg3); }
.stack-label { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stack-value { font-family: var(--display); font-weight: 600; font-size: 1.45rem; color: var(--cream); letter-spacing: -0.005em; }
.stack-value span { color: var(--muted); }

/* ─── CONTACT ─── */
.contact {
  border-top: 0.5px solid var(--border); padding: 7rem 3rem 6rem;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 5rem; align-items: end;
}
.contact h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; margin-bottom: 1.2rem; }
.contact p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; max-width: 440px; }
.contact-right { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.email-link {
  font-family: 'DM Mono', monospace; font-size: clamp(0.95rem, 2.4vw, 1.2rem); color: var(--cream);
  text-decoration: none; letter-spacing: 0.04em; border-bottom: 0.5px solid var(--accent);
  padding-bottom: 3px; transition: color 0.2s; overflow-wrap: anywhere;
}
.email-link:hover { color: var(--hover); }
.contact-note { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; line-height: 1.8; font-family: 'DM Mono', monospace; }

/* ─── FOOTER ─── */
footer {
  border-top: 0.5px solid var(--border); padding: 2rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-logo { font-family: 'DM Mono', monospace; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); }
.footer-logo span { color: var(--cream2); }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a, .footer-right {
  font-family: 'DM Mono', monospace; font-size: 0.63rem; letter-spacing: 0.15em;
  color: var(--muted); text-transform: uppercase; text-decoration: none;
}
.footer-links a:hover { color: var(--cream); }

/* ─── ANIMATION ─── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  nav, .hero-text, .hero-visual, .reveal, .home-main { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .disciplines-grid.three { grid-template-columns: minmax(0,1fr); }
  .disciplines-grid.three .disc-bullets { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .disciplines-grid.one .disc-bullets { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  nav { padding: 1.1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0,1fr); padding: 7rem 1.5rem 3rem; min-height: auto; }
  .hero-visual { display: none; }
  .disciplines { padding: 4rem 1.5rem; }
  .disciplines-grid { grid-template-columns: minmax(0,1fr); }
  .disc-card { padding: 2.5rem 1.75rem; }
  .steps { grid-template-columns: minmax(0,1fr); }
  .step { padding: 2rem 1.75rem; }
  .about { grid-template-columns: minmax(0,1fr); padding: 4rem 1.5rem; gap: 3rem; }
  .contact { grid-template-columns: minmax(0,1fr); padding: 4rem 1.5rem; gap: 2.5rem; }
  footer { padding: 1.5rem; flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .doors { grid-template-columns: minmax(0,1fr); }
  .disc-bullets, .disciplines-grid.three .disc-bullets, .disciplines-grid.one .disc-bullets { grid-template-columns: minmax(0,1fr); }
  .stack-row { padding: 1.25rem 1.25rem; }
}
