/* ============================================================
   Clocktower Studios — shared styles
   Storm-night palette, Fraunces + Hanken Grotesk + JetBrains Mono.
   Effects kept light: CSS-only rain, page-load fade, scroll reveal.
   ============================================================ */

:root {
  --night: #0c141f;
  --storm: #131e2b;
  --storm-2: #1b2a3a;
  --slate: #2a3b4f;
  --slate-line: #28384a;
  --mist: #6e7d90;
  --fog: #97a6b8;
  --paper: #eaeff4;
  --glow: #ecb877;
  --glow-2: #f5d3a1;
  --glow-deep: #d99a4e;

  --display: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--storm);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.accent { color: var(--glow); }
em.i { font-style: italic; color: var(--glow); font-weight: 400; }

/* ============ MARK ============ */
.clocktower { display: block; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 30, 43, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .clocktower { width: 28px; color: var(--paper); }
.brand .bt { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.brand .bs { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--mist); margin-top: 3px; padding-left: 0.38em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--glow);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--slate);
  border-radius: 6px;
  color: var(--paper);
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { border-color: var(--glow); color: var(--glow); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--storm);
    border-bottom: 1px solid var(--slate-line);
  }
  .nav-toggle {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper);
  }
}

/* ============ RAIN (cheap, composited) ============ */
.rain, .rain-2 {
  position: absolute;
  left: -10%; right: -10%; top: -100%;
  height: 200%;
  pointer-events: none;
  will-change: transform;
}
.rain {
  background-image: repeating-linear-gradient(96deg, rgba(190,205,222,0) 0 6px, rgba(190,205,222,0.06) 6px 7px);
  animation: rain 0.7s linear infinite;
}
.rain-2 {
  opacity: 0.5;
  background-image: repeating-linear-gradient(94deg, rgba(190,205,222,0) 0 11px, rgba(190,205,222,0.05) 11px 12px);
  animation: rain 1.15s linear infinite;
}
@keyframes rain { from { transform: translateY(0); } to { transform: translateY(7%); } }

/* ============ HERO (shared shell) ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 12%, rgba(236, 184, 119, 0.10) 0%, transparent 46%),
    radial-gradient(140% 120% at 50% 120%, var(--night) 0%, transparent 60%),
    linear-gradient(180deg, #0a121c 0%, var(--storm) 60%, var(--storm-2) 100%);
}
.hero-page { padding: 120px 0 100px; }   /* interior page hero */
.hero-home { padding: 150px 0 120px; }   /* home hero a touch taller */

.hero .wrap { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--glow); }

h1.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
h1.title em { font-style: italic; color: var(--glow); font-weight: 400; }

.lede {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--fog);
  line-height: 1.6;
}

.cta-row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}
.btn-primary { background: var(--glow); color: var(--night); font-weight: 500; }
.btn-primary:hover { background: var(--glow-2); transform: translateY(-1px); }
.btn-ghost { border-color: var(--slate); color: var(--paper); }
.btn-ghost:hover { border-color: var(--glow); color: var(--glow); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ============ SECTIONS ============ */
section.block { padding: 110px 0; }
section.block.shadow { background: var(--night); }
section.block.mid { background: var(--storm-2); }

.sec-head { margin-bottom: 56px; max-width: 60ch; }
.sec-head .label { display: block; margin-bottom: 18px; }
.sec-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.sec-head h2 em { font-style: italic; color: var(--glow); font-weight: 400; }
.sec-head p { margin-top: 18px; color: var(--fog); font-size: 17px; }

/* ============ APPROACH STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--slate-line); border: 1px solid var(--slate-line); border-radius: 8px; overflow: hidden; }
.step { background: var(--storm); padding: 40px 30px; min-height: 280px; display: flex; flex-direction: column; transition: background 0.4s var(--ease); }
.step:hover { background: var(--storm-2); }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--glow); }
.step h3 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.05; letter-spacing: -0.01em; margin: 32px 0 16px; }
.step p { color: var(--fog); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ============ SERVICE CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  padding: 36px 32px;
  background: var(--storm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover { border-color: var(--slate); transform: translateY(-3px); }
.card .ct { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; }
.card .price { font-family: var(--mono); font-size: 13px; color: var(--glow); white-space: nowrap; }
.card p { margin-top: 16px; color: var(--fog); font-size: 15px; line-height: 1.6; flex: 1; }
.card .more { margin-top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); display: inline-flex; gap: 8px; align-items: center; }
.card .more:hover { color: var(--glow); }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

/* ============ PRICING LINE ============ */
.priceline {
  margin-top: 44px;
  padding: 24px 30px;
  border: 1px dashed var(--slate);
  border-radius: 8px;
  font-size: 16px;
  color: var(--paper);
}
.priceline strong { color: var(--glow); font-weight: 500; }

/* ============ FEATURE BAND (why / stack) ============ */
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.band .item .bn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--glow); }
.band .item h4 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 14px 0 10px; letter-spacing: -0.01em; }
.band .item p { color: var(--fog); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 880px) { .band { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .band { grid-template-columns: 1fr; } }

/* ============ CTA BAND ============ */
.cta-band { position: relative; overflow: hidden; padding: 120px 0; text-align: center; background: var(--night); }
.cta-band::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px; background: radial-gradient(circle, rgba(236,184,119,0.10) 0%, transparent 60%); filter: blur(30px); pointer-events: none;
}
.cta-band .inner { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.03em; }
.cta-band h2 em { font-style: italic; color: var(--glow); font-weight: 400; }
.cta-band .cta-row { justify-content: center; margin-top: 40px; }

/* ============ FOOTER ============ */
footer { background: var(--night); border-top: 1px solid var(--slate-line); padding: 70px 0 32px; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 70px; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand .brand .clocktower { width: 34px; }
.foot-brand .brand .bt { font-size: 24px; }
.foot-brand p { color: var(--fog); font-size: 14px; max-width: 36ch; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); margin-bottom: 18px; font-weight: 500; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 11px; font-size: 14px; }
.foot-col a { color: var(--fog); transition: color 0.3s var(--ease); }
.foot-col a:hover { color: var(--glow); }
.foot-col .place { color: var(--fog); font-size: 14px; }
.foot-bottom {
  border-top: 1px solid var(--slate-line);
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist);
}
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } }

/* ============ WORK: horizontal scroll ============ */
.cs { position: relative; height: 460vh; background: var(--storm-2); }
.cs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.cs-head { padding: 96px 60px 36px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-shrink: 0; }
.cs-head .label { display: block; margin-bottom: 14px; }
.cs-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.5vw, 64px); line-height: 0.98; letter-spacing: -0.02em; }
.cs-head h2 em { font-style: italic; color: var(--glow); font-weight: 400; }
.cs-prog { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.cs-prog-bar { width: 110px; height: 1px; background: var(--slate); position: relative; overflow: hidden; }
.cs-prog-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--glow); }
.cs-view { flex: 1; overflow: hidden; position: relative; }
.cs-track { display: flex; gap: 36px; height: 100%; align-items: center; padding: 0 60px; will-change: transform; }

.cs-intro { flex-shrink: 0; width: 46vw; max-width: 560px; padding-right: 30px; }
.cs-intro p { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; color: var(--fog); }
.cs-intro p em { color: var(--glow); font-style: italic; }

.cs-card {
  flex-shrink: 0;
  width: 60vw; max-width: 920px; height: 66vh;
  position: relative;
  border: 1px solid var(--slate);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(236,184,119,0.07), transparent 50%),
    var(--storm);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px;
}
.cs-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.cs-card .ph {
  flex: 1; margin: 24px 0;
  border: 1px dashed var(--slate);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mist); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.cs-card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.02em; }
.cs-card h3 em { font-style: italic; color: var(--glow); font-weight: 400; }
.cs-card .meta { color: var(--fog); font-size: 14.5px; margin-top: 12px; max-width: 46ch; }

.cs-outro { flex-shrink: 0; width: 40vw; max-width: 480px; padding-left: 36px; border-left: 1px solid var(--slate); }
.cs-outro p { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; color: var(--fog); margin-bottom: 28px; }
.cs-outro p em { color: var(--glow); font-style: italic; }

@media (max-width: 920px) {
  .cs { height: auto; }
  .cs-sticky { position: static; height: auto; }
  .cs-head { padding: 70px 20px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .cs-prog { display: none; }
  .cs-view { overflow: visible; }
  .cs-track { flex-direction: column; padding: 0 20px 70px; transform: none !important; gap: 20px; }
  .cs-card { width: 100%; height: auto; min-height: 380px; }
  .cs-intro, .cs-outro { width: 100%; max-width: none; padding: 0; border: none; }
}

/* ============ AUDIT page bits ============ */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 8px; }
.checklist li { list-style: none; padding-left: 28px; position: relative; color: var(--paper); font-size: 15.5px; line-height: 1.5; padding-bottom: 6px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 0 4px rgba(236,184,119,0.12);
}
.checklist li span { color: var(--fog); display: block; font-size: 13.5px; margin-top: 2px; }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.note-box { border: 1px solid var(--slate-line); border-radius: 10px; padding: 30px 32px; background: var(--storm); }
.note-box h3 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin-bottom: 14px; }
.note-box p { color: var(--fog); font-size: 15px; line-height: 1.6; }
.note-box p + p { margin-top: 12px; }
.note-box .big { font-family: var(--display); font-size: 52px; color: var(--glow); line-height: 1; }

.steps-num { counter-reset: step; }
.steps-num li {
  list-style: none; position: relative; padding: 0 0 26px 52px; color: var(--fog); font-size: 15.5px; line-height: 1.6;
}
.steps-num li strong { color: var(--paper); font-weight: 500; }
.steps-num li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 12px; color: var(--glow);
  border: 1px solid var(--slate); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
}
.steps-num li:not(:last-child)::after {
  content: ''; position: absolute; left: 17px; top: 38px; bottom: 6px; width: 1px; background: var(--slate-line);
}

/* ============ ABOUT ============ */
.prose { max-width: 64ch; }
.prose p { font-size: 17px; color: var(--fog); line-height: 1.7; margin-bottom: 22px; }
.prose p strong { color: var(--paper); font-weight: 500; }
.prose .placeholder { color: var(--glow); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--slate-line); border: 1px solid var(--slate-line); border-radius: 8px; overflow: hidden; margin-top: 10px; }
.fact { background: var(--storm); padding: 28px 26px; }
.fact .ft { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; }
.fact .fv { font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; }
.fact .fv em { font-style: italic; color: var(--glow); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ============ CONTACT FORM ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 800px) { .form-grid { grid-template-columns: 1fr; gap: 32px; } }

.field { margin-bottom: 26px; }
.field > label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); margin-bottom: 10px; }
.field .opt { color: var(--mist); text-transform: none; letter-spacing: 0; }
.input, .textarea, select.input {
  width: 100%;
  background: var(--storm);
  border: 1px solid var(--slate);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.25s var(--ease);
}
.input:focus, .textarea:focus, select.input:focus { outline: none; border-color: var(--glow); }
.input::placeholder, .textarea::placeholder { color: var(--mist); }
.textarea { resize: vertical; min-height: 120px; }

.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill label {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--slate); border-radius: 999px; padding: 10px 20px;
  font-size: 14px; color: var(--fog); cursor: pointer; transition: all 0.25s var(--ease);
}
.radio-pill input:checked + label { border-color: var(--glow); color: var(--glow); background: rgba(236,184,119,0.06); }

.conditional { display: none; }
.conditional.show { display: block; animation: slideDown 0.35s var(--ease-out); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.form-aside { border: 1px solid var(--slate-line); border-radius: 10px; padding: 32px; background: var(--storm); }
.form-aside h3 { font-family: var(--display); font-weight: 500; font-size: 24px; margin-bottom: 14px; letter-spacing: -0.01em; }
.form-aside p { color: var(--fog); font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; }
.form-aside a.inline { color: var(--glow); border-bottom: 1px solid rgba(236,184,119,0.4); }
.form-note { font-size: 13px; color: var(--mist); margin-top: 8px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ============ PAGE-LOAD FADE ============ */
.fade-up { opacity: 0; animation: fadeUp 1s var(--ease-out) forwards; }
.fade-up.delay1 { animation-delay: 0.12s; }
.fade-up.delay2 { animation-delay: 0.24s; }
.fade-up.delay3 { animation-delay: 0.36s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .rain, .rain-2 { animation: none; }
  .fade-up { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
