/* SILENTFOUNDRY.AI — global styles */

:root {
  --cream: #F4EFE7;
  --ink: #141412;
  --sage: #55604F;
  --sage-light: #AEBBA8;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
}

body {
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
}

body.menu-open { overflow: hidden; }

a { color: var(--ink); }
a:hover { color: var(--sage); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.mono { font-family: 'Space Mono', monospace; }

/* ============ Header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.menu-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.menu-button img {
  height: 52px;
  width: auto;
  display: block;
}

/* ============ Menu drawer ============ */
.menu-drawer {
  position: fixed;
  top: 96px;
  right: 0;
  bottom: 0;
  width: min(520px, 92vw);
  background: var(--ink);
  color: var(--cream);
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: 48px 48px 40px 48px;
  overflow-y: auto;
}

.menu-drawer.open { display: flex; }

.menu-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(244,239,231,0.5);
  margin-bottom: 12px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(244,239,231,0.2);
  text-decoration: none;
  color: var(--cream);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.menu-item:hover { color: var(--sage-light); }

.menu-item[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.menu-item .num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(244,239,231,0.45);
}

.menu-foot { margin-top: auto; padding-top: 48px; }

.menu-contact {
  display: inline-block;
  color: var(--cream);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-bottom: 1px solid rgba(244,239,231,0.5);
  padding-bottom: 5px;
}

.menu-contact:hover { color: var(--sage-light); border-bottom-color: var(--sage-light); }

.menu-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(244,239,231,0.5);
  flex-wrap: wrap;
}

/* ============ Shared type ============ */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.link-underline {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.link-underline:hover { color: var(--sage); border-bottom-color: var(--sage); }

.link-underline-dark {
  display: inline-block;
  color: var(--cream);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-bottom: 1px solid rgba(244,239,231,0.5);
  padding-bottom: 5px;
}

.link-underline-dark:hover { color: var(--sage-light); border-bottom-color: var(--sage-light); }

.chip {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  border: 2px solid var(--ink);
  padding: 8px 16px;
}

.chip b { font-weight: 700; }

/* ============ Hero ============ */
.hero { padding: 72px var(--gutter) 56px var(--gutter); }

.hero .eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
  text-wrap: pretty;
}

.hero-inner h1 {
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 1.05;
  max-width: 18ch;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.lede {
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
  color: rgba(20,20,18,0.75);
}

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ============ Video band ============ */
.video-band { padding: 0 var(--gutter); }

.video-band .frame {
  height: 460px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.video-band video,
.video-band .poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-band .poster-fallback { display: none; }

/* ============ Marquee ============ */
.marquee {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  margin-top: 64px;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 56px;
  padding: 16px 0;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  animation: sf-marquee 28s linear infinite;
  will-change: transform;
}

@keyframes sf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ What we do ============ */
.pillars {
  padding: 88px var(--gutter);
  border-bottom: 2px solid var(--ink);
}

.pillars-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.pillars-head .eyebrow { margin-bottom: 20px; }

.pillars-head h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.pillars-head p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20,20,18,0.65);
  max-width: 40ch;
  margin: 0;
}

.pillar {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.3fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-top: 2px solid var(--ink);
}

.pillar .num {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(20,20,18,0.5);
}

.pillar h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

.pillar .tagline {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--sage);
  margin-top: 12px;
}

.pillar .desc {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  color: rgba(20,20,18,0.75);
}

.pillar .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pillar .tags .chip {
  letter-spacing: 0.1em;
  padding: 6px 12px;
}

.pillar .link-underline { margin-top: 24px; }

/* ============ Why ============ */
.why {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  padding: 88px var(--gutter);
  border-bottom: 2px solid var(--ink);
}

.why .eyebrow { margin-bottom: 24px; }

.why h2 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  text-wrap: pretty;
}

.why .link-underline { margin-top: 40px; padding-bottom: 5px; }

.diffs {
  border-left: 2px solid var(--ink);
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.diff { display: flex; gap: 20px; }

.diff .marker {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diff .marker::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--ink);
}

.diff .title {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.diff p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20,20,18,0.7);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 88px var(--gutter) 40px var(--gutter);
}

.site-footer.footer-home { padding-top: 96px; }

.site-footer .eyebrow {
  color: rgba(244,239,231,0.6);
  margin-bottom: 28px;
}

.site-footer h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  max-width: 18ch;
  text-wrap: pretty;
}

.site-footer.footer-home h2 {
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 1.04;
  max-width: 16ch;
}

.site-footer .footer-copy {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(244,239,231,0.7);
  max-width: 48ch;
  margin: 28px 0 0 0;
}

.footer-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.footer-links a { color: rgba(244,239,231,0.7); text-decoration: none; }
.footer-links a:hover { color: var(--cream); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(244,239,231,0.2);
  margin-top: 80px;
  padding-top: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(244,239,231,0.5);
  flex-wrap: wrap;
}

/* ============ Services page ============ */
.catalogue-hero {
  padding: 72px var(--gutter) 56px var(--gutter);
  border-bottom: 2px solid var(--ink);
}

.catalogue-hero .eyebrow { margin-bottom: 28px; }

.catalogue-hero h1 {
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  text-wrap: pretty;
}

.catalogue-hero .lede { max-width: 62ch; margin-top: 36px; }

.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.stepper .chip {
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 9px 18px;
}

.stepper .sep { font-family: 'Space Mono', monospace; }

.stage {
  padding: 72px var(--gutter);
  border-bottom: 2px solid var(--ink);
}

.stage-head {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.stage-num {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(20,20,18,0.25);
}

.stage-count {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(20,20,18,0.55);
  margin-bottom: 8px;
}

.stage h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.stage h2 .sub { color: rgba(20,20,18,0.5); font-weight: 400; }

.stage-tag {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(20,20,18,0.7);
  margin: 12px 0 0 0;
  max-width: 70ch;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 6px 0;
}

.group-label .tick { width: 16px; height: 1px; background: rgba(20,20,18,0.3); }

.group-label .name {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sage);
}

.group-label .rule { flex: 1; height: 1px; background: rgba(20,20,18,0.18); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.service-card {
  border: 2px solid var(--ink);
  padding: 22px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.25);
}

.service-card .idx {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.service-card .desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(20,20,18,0.7);
  margin: 0;
}

.service-card .includes-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(20,20,18,0.5);
  margin: 16px 0 8px 0;
}

.service-card ul {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card ul li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.4;
}

.service-card ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ink);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.service-card .outcome {
  margin-top: auto;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.service-card .outcome .label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--sage);
  flex-shrink: 0;
}

.service-card .outcome .text {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(20,20,18,0.75);
}

/* ============ About page ============ */
.about-photo { padding: 0 var(--gutter); }

.about-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 56px var(--gutter) 88px var(--gutter);
  margin-top: 24px;
  border-bottom: 2px solid var(--ink);
  align-items: stretch;
}

.founder { display: flex; flex-direction: column; }

.founder h2 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.founder .role {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-top: 14px;
}

.founder .short {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(20,20,18,0.75);
  margin: 24px 0 0 0;
}

.founder .full-profile {
  border-top: 2px solid var(--ink);
  margin-top: 28px;
  padding-top: 24px;
}

.founder .full-profile[hidden] { display: none; }

.founder .full-profile .label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(20,20,18,0.55);
  margin-bottom: 16px;
}

.founder .full-profile p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 18px 0;
  color: rgba(20,20,18,0.85);
}

.founder .spacer { flex: 1; min-height: 28px; }

.founder .toggle {
  align-self: flex-start;
  background: none;
  color: var(--ink);
  border: none;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 0;
}

.founder .toggle:hover { color: var(--sage); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .pillar { grid-template-columns: 48px 1fr; }
  .pillar > div:last-child { grid-column: 2; }
  .why { grid-template-columns: 1fr; gap: 48px; }
  .diffs { padding-left: 32px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .founders { grid-template-columns: 1fr; gap: 64px; }
  .stage-head { flex-direction: column; gap: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; }
  .site-header { padding: 16px var(--gutter); }
  .menu-button img { height: 22px; }
  .menu-drawer { top: 54px; padding: 32px 24px 32px 24px; }
  .menu-item { font-size: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .video-band .frame { height: 280px; }
  .about-photo img { height: 340px; }
  .pillar { grid-template-columns: 1fr; gap: 16px; }
  .pillar > div:last-child { grid-column: auto; }
  .diffs { border-left: none; padding-left: 0; }
  .stage-num { font-size: 56px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(40px, 11vw, 52px); }
  .hero-inner h1 { font-size: clamp(38px, 10vw, 48px); }
  .catalogue-hero h1 { font-size: clamp(38px, 10vw, 48px); }
  .site-footer h2, .site-footer.footer-home h2 { font-size: clamp(34px, 9.5vw, 48px); }
}

@media (max-width: 900px) and (min-width: 641px) {
  .menu-button img { height: 32px; }
  .menu-drawer { top: 86px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .video-band video { display: none; }
  .video-band .poster-fallback { display: block; }
}
