/* OfficeCloud Brand Pack — Fourths brand world
 * Locked from The Fourths Brand Handbook v1.0
 * Midnight + Charcoal + Orange + Off-White + Cream
 * Space Grotesk (display) + DM Sans (body) + JetBrains Mono (specs)
 */

:root {
  --midnight: #0A0A0A;
  --charcoal: #1A1A1A;
  --charcoal-soft: #1F1F1F;
  --orange: #F97316;
  --orange-readable: #C05A0C;
  --off-white: #F5F0EB;
  --cream: #F5F5F5;
  --pale-gray: #E5E5E5;
  --warm-gray: #D4CEC7;

  --space: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --dm: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --serif: 'New York', 'Charter', Georgia, serif;

  --duration-fast: 150ms;
  --duration-base: 240ms;
  --easing-decel: cubic-bezier(0, 0, 0.2, 1);
  --easing-standard: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--off-white);
  font-family: var(--dm);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  background: var(--off-white); color: var(--midnight);
  padding: 12px 16px; z-index: 9999;
  border-radius: 8px;
}

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

.container {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
}
.container.narrow { max-width: min(800px, 92vw); }

.mono-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mono-tag.dim { opacity: 0.55; }

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.accent { color: var(--orange); }

/* ============================================================
   Nav (minimal, fixed-style top bar)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 240, 235, 0.08);
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--space);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(80px, 14vw, 180px) 0 clamp(80px, 12vw, 140px);
  border-bottom: 1px solid rgba(245, 240, 235, 0.08);
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
}

.hero h1 {
  margin: 0 0 32px;
  font-family: var(--space);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 152px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}
.hero h1 .hero-sub-line {
  display: block;
  margin-top: 24px;
  font-family: var(--space);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(245, 240, 235, 0.85);
  max-width: 22ch;
}

.hero-meta {
  margin: 0 0 48px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.55);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--space);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--duration-fast) var(--easing-decel),
              color var(--duration-fast) var(--easing-decel),
              transform var(--duration-fast) var(--easing-decel),
              border-color var(--duration-fast) var(--easing-decel);
}
.btn .arrow { transition: transform var(--duration-fast) var(--easing-decel); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn-light {
  background: var(--off-white);
  color: var(--midnight);
}
.btn-light:hover { background: #FFFFFF; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(245, 240, 235, 0.25);
}
.btn-ghost:hover { background: rgba(245, 240, 235, 0.08); border-color: rgba(245, 240, 235, 0.4); }

.btn-orange {
  background: var(--midnight);
  color: var(--off-white);
  border-color: var(--midnight);
}
.btn-orange:hover { background: var(--charcoal); transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--midnight);
  border-color: rgba(10, 10, 10, 0.4);
}
.btn-ghost-light:hover { background: rgba(10, 10, 10, 0.08); }

/* Hero figures (4-up stat strip) */
.hero-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  padding-top: 48px;
  border-top: 1px solid rgba(245, 240, 235, 0.08);
}
.figure-num {
  font-family: var(--space);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.figure-label {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.55);
}
@media (min-width: 768px) {
  .hero-figures { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}

/* ============================================================
   Section base
   ============================================================ */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
  border-bottom: 1px solid rgba(245, 240, 235, 0.08);
}

.section h2 {
  margin: 0 0 32px;
  font-family: var(--space);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 22ch;
}

.section p {
  margin: 0 0 20px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: rgba(245, 240, 235, 0.8);
}

.competitive {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--charcoal);
  border-radius: 16px;
  border-left: 3px solid var(--orange);
}
.competitive .eyebrow { margin-bottom: 12px; }
.competitive p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.competitive strong { color: var(--off-white); font-weight: 600; }

/* ============================================================
   Bento grid
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.cell {
  padding: 32px;
  background: var(--charcoal);
  border: 1px solid rgba(245, 240, 235, 0.06);
  border-radius: 20px;
  transition: border-color var(--duration-fast) var(--easing-decel),
              transform var(--duration-fast) var(--easing-decel);
  position: relative;
  overflow: hidden;
}
.cell:hover {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-2px);
}

.cell-label {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.cell h3 {
  margin: 0 0 12px;
  font-family: var(--space);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.cell p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 240, 235, 0.85);
}

.cell-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 240, 235, 0.08);
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: rgba(245, 240, 235, 0.55) !important;
  font-style: italic;
}

/* Bento cell variants */

/* Essence — large quote */
.cell-essence .essence-quote {
  font-family: var(--space);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--off-white);
  margin: 0 0 16px;
}

/* Hero headline mock */
.cell-headline { background: linear-gradient(150deg, #FAF7F2 0%, #F5EDE3 100%); border: 1px solid #E5DED2; }
.cell-headline .cell-label { color: var(--orange-readable); }
.cell-headline .serif-headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--midnight);
  margin: 0;
}
.cell-headline .cell-note {
  color: rgba(10, 10, 10, 0.6) !important;
  border-top-color: rgba(10, 10, 10, 0.1);
}

/* Palette */
.palette-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.swatch {
  padding: 14px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
}
.swatch-name {
  font-family: var(--space);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.swatch-hex {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-top: 6px;
}

/* Typography */
.type-display {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.95;
  margin: 8px 0 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--off-white);
}
.type-pair {
  display: grid;
  gap: 16px;
}
.type-name {
  margin: 0;
  font-family: var(--space);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--off-white);
}
.type-meta {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.55);
}

/* Logo pair */
.logo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0;
}
.logo-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  border-radius: 12px;
}
.logo-frame span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.logo-on-linen { background: #FAF7F2; color: var(--midnight); }
.logo-on-navy { background: #0E1E48; color: #fff; }

/* Voice list */
.voice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.voice-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 240, 235, 0.06);
}
.voice-list li:last-child { border-bottom: none; padding-bottom: 0; }
.voice-where {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.voice-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--off-white);
}

/* Testimonial */
.cell-testimonial { background: var(--charcoal-soft); border-left: 3px solid var(--orange); padding-left: 32px; }
.testimonial-quote {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px) !important;
  line-height: 1.3 !important;
  color: var(--off-white) !important;
  margin: 0 0 12px !important;
}
.testimonial-attribution {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.55) !important;
  margin: 0 !important;
}

/* Colophon mechanic cell */
.cell-colophon { background: linear-gradient(135deg, var(--charcoal) 0%, #221A12 100%); }
.cell-colophon h3 {
  font-family: var(--space);
  font-size: 26px;
  font-weight: 700;
  color: var(--off-white);
}
.cell-colophon h3::after {
  content: ' →';
  color: var(--orange);
}
.cell-colophon code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Bento layout — desktop */
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .cell-essence { grid-column: span 6; }
  .cell-headline { grid-column: span 3; }
  .cell-palette { grid-column: span 3; }
  .cell-typography { grid-column: span 3; }
  .cell-logo { grid-column: span 3; }
  .cell-voice { grid-column: span 3; }
  .cell-testimonial { grid-column: span 3; }
  .cell-colophon { grid-column: span 6; }
}

@media (min-width: 1024px) {
  .cell-essence { grid-column: span 4; grid-row: span 1; }
  .cell-headline { grid-column: span 2; }
  .cell-palette { grid-column: span 4; }
  .cell-typography { grid-column: span 2; }
  .cell-logo { grid-column: span 2; }
  .cell-voice { grid-column: span 2; }
  .cell-testimonial { grid-column: span 2; }
  .cell-colophon { grid-column: span 6; }
}

/* ============================================================
   Site preview grid
   ============================================================ */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}
.preview-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
  background: var(--charcoal);
  border: 1px solid rgba(245, 240, 235, 0.06);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--easing-decel),
              transform var(--duration-fast) var(--easing-decel);
  position: relative;
  min-height: 140px;
}
.preview-tile:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}
.preview-tile::after {
  content: '↗';
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--orange);
  font-size: 18px;
  transition: transform var(--duration-fast) var(--easing-decel);
}
.preview-tile:hover::after { transform: translate(2px, -2px); }

.preview-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.55);
}
.preview-title {
  font-family: var(--space);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--off-white);
}
.preview-quote {
  margin-top: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(245, 240, 235, 0.7);
}

.preview-tile-fourths {
  background: linear-gradient(135deg, var(--midnight) 0%, #1A0F08 100%);
  border-color: rgba(249, 115, 22, 0.3);
}
.preview-tile-fourths .preview-title { color: var(--orange); }

@media (min-width: 768px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .preview-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Phase list (the seven sub-projects)
   ============================================================ */
.phase-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.phase-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 20px 24px;
  background: var(--charcoal);
  border-radius: 14px;
  border-left: 3px solid var(--orange);
}
.phase-list li.phase-pending {
  border-left-color: rgba(245, 240, 235, 0.2);
  opacity: 0.65;
}
.phase-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--orange);
  align-self: start;
  padding-top: 4px;
}
.phase-name {
  margin: 0 0 4px;
  font-family: var(--space);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--off-white);
}
.phase-meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 240, 235, 0.7);
}
.phase-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-left: 6px;
}
.phase-pending .phase-status { color: rgba(245, 240, 235, 0.4); }

/* ============================================================
   Final CTA strip
   ============================================================ */
.cta-strip {
  background: var(--orange);
  color: var(--midnight);
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
}
.cta-strip h2 {
  margin: 0 0 16px;
  font-family: var(--space);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: none;
  color: var(--midnight);
}
.cta-strip p {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--midnight);
  opacity: 0.85;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-locale {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.cta-locale .dot { color: var(--midnight); margin: 0 12px; opacity: 0.5; }

/* ============================================================
   Tiny print footer
   ============================================================ */
.tiny {
  background: var(--midnight);
  padding: 48px 0 64px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.5);
  line-height: 1.7;
}
.tiny p { margin: 4px 0; }
