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

/* ========================================
   DESIGN TOKENS
======================================== */
:root {
  --bg:           #080808;
  --bg-alt:       #0e0e0e;
  --text:         #EDE9E1;
  --text-muted:   #7A756D;
  --text-dim:     #3C3935;
  --border:       rgba(237, 233, 225, 0.09);
  --border-mid:   rgba(237, 233, 225, 0.16);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   BASE
======================================== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  cursor: none;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.038;
  pointer-events: none;
  z-index: 9000;
}

/* ========================================
   CUSTOM CURSOR
======================================== */
.cursor {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.15s var(--ease-out);
  will-change: left, top;
}

.cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(237, 233, 225, 0.35);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
              opacity 0.4s, border-color 0.4s;
  will-change: left, top;
}

.cursor.hovering       { transform: translate(-50%, -50%) scale(0.2); opacity: 0.4; }
.cursor-ring.hovering  { width: 52px; height: 52px; border-color: rgba(237, 233, 225, 0.2); }

@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  body, button, a, input, textarea { cursor: auto; }
}

/* ========================================
   SCROLL PROGRESS BAR
======================================== */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: rgba(237, 233, 225, 0.22);
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ========================================
   SECTION META TAGS
======================================== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-tag .num {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.section-tag .rule {
  width: 36px;
  height: 1px;
  background: var(--text-dim);
}

.section-tag .label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ========================================
   HERO
======================================== */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 52px 80px;
  position: relative;
  overflow: hidden;
}

.hero-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 75% at 18% 62%,
              rgba(255,255,255,0.016) 0%, transparent 68%);
  pointer-events: none;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/*
  Hero wordmark fix:
  - Removed overflow: hidden so descenders (e.g. "y") are not clipped.
  - Added padding-bottom to give the descender room.
  - The slide-up animation clip is handled by .line-wrap (overflow: hidden),
    which does NOT clip the block itself.
*/
.hero-wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(96px, 23vw, 380px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.025em;
  color: var(--text);
  padding-bottom: 0.15em;
}

.hero-wordmark .line-wrap  { display: block; overflow: hidden; padding-bottom: 0.28em; }
.hero-wordmark .line-inner {
  display: block;
  transform: translateY(115%);
  animation: slideUp 1.3s var(--ease-out) 0.1s forwards;
}

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

.hero-company-name {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.4vw, 17px);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1s forwards;
}

.hero-statement {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.8vw, 36px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.15s forwards;
  text-align: right;
  max-width: 420px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 80px;
  right: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 2s forwards;
}

.scroll-cue-line {
  width: 1px;
  height: 56px;
  background: var(--text-dim);
  transform-origin: top;
  animation: pulseDown 2s var(--ease-out) 2.5s infinite;
}


/* ========================================
   SECTION: POSITIONING
======================================== */
#positioning {
  padding: 140px 52px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--border);
}

.pos-aside {
  padding-top: 6px;
  position: sticky;
  top: 120px;
}

.pos-body { max-width: 700px; }

.pos-statement {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 56px;
}

.pos-pillars {
  border-left: 1px solid var(--border-mid);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pos-pillar {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ========================================
   SECTION: MANIFESTO
======================================== */
#manifesto {
  padding: 160px 52px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 76px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
  max-width: 940px;
}

.manifesto-credit {
  margin-top: 52px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ========================================
   MARQUEE TICKER
======================================== */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 32px;
}

/* ========================================
   SECTION: CAPABILITIES
======================================== */
#capabilities {
  padding: 120px 52px;
  background: var(--bg-alt);
}

.cap-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.cap-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  gap: 1px;
  margin-top: 1px;
}

.cap-item {
  background: var(--bg-alt);
  padding: 52px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease-out);
}

.cap-item:hover { background: #121212; }

.cap-idx {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 40px;
  display: block;
}

.cap-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  margin-bottom: 20px;
}

.cap-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ========================================
   SECTION: APPROACH
======================================== */
#approach {
  padding: 160px 52px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.approach-aside {
  position: sticky;
  top: 120px;
  padding-top: 6px;
}

.approach-list { display: flex; flex-direction: column; }

.approach-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.approach-item:first-child { border-top: 1px solid var(--border); }

.approach-n {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1;
  color: var(--text-dim);
}

.approach-inner { padding-top: 6px; }

.approach-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
}

.approach-body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 480px;
}

/* ========================================
   SECTION: IDENTITY
======================================== */
#identity {
  padding: 160px 52px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.identity-statement {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 50px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
}

.identity-meta {
  margin-top: 36px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

/* ========================================
   SECTION: CONTACT
======================================== */
#contact {
  padding: 120px 52px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contact-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 72px;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 300;
  line-height: 0.9;
  color: var(--text);
}

.contact-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.contact-info-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-email-link {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.3s;
}

.contact-email-link:hover { opacity: 1; }

.contact-location-txt {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-pitch {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-input,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-mid);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color 0.3s;
  cursor: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(237, 233, 225, 0.38);
}

.form-textarea {
  resize: none;
  min-height: 96px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-submit {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--border-mid);
  padding: 16px 44px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  cursor: none;
  transition: background 0.35s, border-color 0.35s;
}

.form-submit:hover {
  background: rgba(237, 233, 225, 0.05);
  border-color: rgba(237, 233, 225, 0.3);
}

.form-success {
  display: none;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.6s;
}

.form-success.visible { display: block; }
.form-success.shown   { opacity: 1; }

/* ========================================
   SECTION: LEGAL
======================================== */
#legal {
  padding: 80px 52px;
  border-top: 1px solid var(--border);
}

.legal-intro { margin-bottom: 48px; }

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.legal-block h3 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.legal-block p {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-dim);
}

/* ========================================
   FOOTER
======================================== */
footer {
  padding: 36px 52px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  gap: 36px;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--text); }

/* ========================================
   SCROLL REVEAL
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ========================================
   KEYFRAME ANIMATIONS
======================================== */
@keyframes slideUp {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulseDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 960px) {
  #hero             { padding: 0 28px 60px; }
  .scroll-cue       { right: 28px; bottom: 60px; }
  .hero-row         { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-statement   { text-align: left; }

  #positioning {
    padding: 100px 28px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pos-aside        { position: static; }

  #manifesto        { padding: 100px 28px; }

  #capabilities     { padding: 80px 28px; }
  .cap-grid         { grid-template-columns: repeat(2, 1fr); }

  #approach {
    padding: 100px 28px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .approach-aside   { position: static; }

  #identity         { padding: 100px 28px; }

  #contact          { padding: 80px 28px; }
  .contact-masthead { flex-direction: column; align-items: flex-start; gap: 32px; }
  .contact-info     { text-align: left; }
  .contact-body     { grid-template-columns: 1fr; gap: 52px; }

  #legal            { padding: 64px 28px; }
  .legal-grid       { grid-template-columns: 1fr; gap: 48px; }

  footer            { padding: 28px 28px; flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 600px) {
  .cap-grid         { grid-template-columns: 1fr; }
  .approach-item    { grid-template-columns: 56px 1fr; gap: 20px; }
  .footer-nav       { gap: 24px; }
}
