/* ============================================================
   Wavelength Studios — wavelengthstudio.net
   Editorial / characterful identity, card- & button-driven.
   Instrument Serif (display) · Space Grotesk (text) · warm cream + bold color.
   Original to Wavelength.
   ============================================================ */

:root {
  --paper:     #F4EEE0;
  --paper-2:   #ECE3D0;
  --card:      #FBF7EE;
  --ink:       #1B1712;
  --ink-soft:  #574F42;
  --ink-faint: #998C77;
  --line:      #DDD2BC;
  --line-2:    #CDBFA2;
  --line-soft: rgba(27,23,18,.10);

  --red:    #DE3F1E;
  --cobalt: #2336B5;
  --teal:   #0F5A4B;
  --ochre:  #D8961A;
  --plum:   #7A2B57;
  --on-color: #F6F0E2;

  --maxw: 1160px;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.6; overflow-x: hidden;
}
body::before {
  content:""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(216,150,26,.12), transparent 60%),
    radial-gradient(60% 55% at 0% 100%, rgba(35,54,181,.07), transparent 60%);
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 400; line-height: 1.0; letter-spacing: -.005em; margin: 0; }
h1.display { font-size: clamp(2.9rem, 7.5vw, 5.6rem); }
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.display .it, .display em { font-style: italic; }

.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: "◆"; font-size: 8px; color: var(--red); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--ink-soft); max-width: 42ch; line-height: 1.5; }

/* ---------- buttons (no bare links) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans);
  font-weight: 600; font-size: 14.5px; padding: 12px 24px; border-radius: 3px;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); white-space: nowrap;
  transition: transform .14s, background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn .ar { transition: transform .18s; }
.btn:hover .ar { transform: translateX(4px); }
.btn.solid { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 rgba(27,23,18,.18); }
.btn.solid:hover { background: var(--red); border-color: var(--red); transform: translate(-1px,-1px); box-shadow: 6px 6px 0 rgba(222,63,30,.22); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.cream { background: var(--on-color); color: var(--ink); border-color: var(--on-color); }
.btn.cream:hover { background: transparent; color: var(--on-color); }
.btn.outline { background: transparent; color: var(--on-color); border-color: rgba(246,240,226,.5); }
.btn.outline:hover { background: var(--on-color); color: var(--ink); border-color: var(--on-color); }
.btn.lg { padding: 14px 28px; font-size: 15.5px; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(244,238,224,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; align-items: center; height: 72px; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 16px; height: 16px; background: var(--red); transform: rotate(45deg); flex: none; box-shadow: 3px 3px 0 var(--ink); }
.brand-wm { font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.brand-wm .sub { color: var(--ink-faint); font-weight: 500; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

section { padding: 100px 0; position: relative; }
.section-head { margin-bottom: 44px; }
.section-head .display { margin-top: 12px; }
.section-head .sub { color: var(--ink-soft); font-size: 1.06rem; margin: 16px 0 0; max-width: 52ch; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; }
.hero h1 { margin: 22px 0 0; max-width: 15ch; }
.hero h1 .it { color: var(--ink); }
.hero-row { display: flex; gap: 44px; align-items: flex-end; margin-top: 32px; flex-wrap: wrap; }
.hero .lede { margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-strip { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.stat { border: 1px solid var(--line-2); border-radius: 5px; padding: 14px 20px; background: var(--card); min-width: 130px; }
.stat .v { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.stat .l { font-size: 12px; letter-spacing: .04em; color: var(--ink-faint); margin-top: 5px; text-transform: uppercase; }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; background: var(--paper-2); }
.track { display: flex; gap: 0; width: max-content; animation: slide 40s linear infinite; }
.track span { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); display: inline-flex; align-items: center; }
.track span::after { content: "◆"; font-style: normal; font-size: .6rem; color: var(--red); margin: 0 26px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- the work (color cards + buttons) ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-card {
  border-radius: 8px; padding: 38px 36px; color: var(--on-color); position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 340px;
}
.work-card.uniflection { background: var(--cobalt); }
.work-card.sinai { background: var(--red); }
.work-card::after { content:""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background: radial-gradient(70% 90% at 90% 8%, #fff, transparent 55%); }
.work-card > * { position: relative; }
.work-card .w-top { display: flex; justify-content: space-between; align-items: baseline; }
.work-card .num { font-family: var(--serif); font-size: 2rem; opacity: .55; line-height: 1; }
.work-card .w-kind { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.work-card .w-name { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: 18px 0 0; }
.work-card .w-desc { font-size: 1.04rem; opacity: .92; margin: 14px 0 18px; }
.work-card .w-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.work-card .tag { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 4px 11px; border: 1px solid rgba(246,240,226,.4); border-radius: 999px; }
.work-card .btn { margin-top: auto; align-self: flex-start; }
.work-cta {
  margin-top: 20px; border: 1.5px dashed var(--line-2); border-radius: 8px; padding: 30px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--card);
}
.work-cta .t { font-family: var(--serif); font-size: 1.7rem; }
.work-cta .t .it { font-style: italic; color: var(--ink-soft); }

/* ---------- capabilities cards ---------- */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cap-card { border: 1px solid var(--line-2); border-radius: 7px; padding: 24px 22px; background: var(--card); transition: transform .16s, border-color .18s; }
.cap-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.cap-card .ci { font-family: var(--serif); font-size: 1.5rem; color: var(--red); }
.cap-card h4 { font-size: 1.05rem; font-weight: 600; margin: 12px 0 7px; letter-spacing: -.01em; }
.cap-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- statement band ---------- */
.statement { background: var(--ink); color: var(--paper); }
.statement .wrap { max-width: 980px; }
.statement .eyebrow { color: rgba(246,240,226,.55); }
.statement .eyebrow::before { color: var(--ochre); }
.statement .big { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin: 22px 0 0; }
.statement .big .hl { color: var(--ochre); font-style: italic; }

/* ---------- principles as cards ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { border: 1px solid var(--line-2); border-radius: 8px; padding: 30px 28px; background: var(--card); }
.principle .pn { font-family: var(--serif); font-size: 1.5rem; color: var(--red); }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.05; margin: 10px 0 12px; }
.principle p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.about-grid .lead { font-family: var(--serif); font-size: 1.95rem; line-height: 1.16; }
.about-grid .body p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 16px; }
.about-grid .body p:last-child { margin: 0; }

/* ---------- contact card ---------- */
.contact { padding-top: 40px; }
.contact-card {
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 60px 50px; text-align: center;
  position: relative; overflow: hidden;
}
.contact-card::after { content:""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(45% 70% at 88% 0%, rgba(216,150,26,.4), transparent 60%), radial-gradient(40% 60% at 8% 100%, rgba(35,54,181,.5), transparent 60%); }
.contact-card > * { position: relative; }
.contact-card .eyebrow { color: rgba(246,240,226,.6); }
.contact-card .eyebrow::before { color: var(--ochre); }
.contact-card h2 { color: var(--paper); margin: 14px 0 8px; }
.contact-card .sub { color: rgba(246,240,226,.72); margin: 0 auto 28px; max-width: 46ch; }
.contact-card .cbtns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-card .btn.solid { background: var(--on-color); color: var(--ink); border-color: var(--on-color); box-shadow: none; }
.contact-card .btn.solid:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

/* ---------- footer ---------- */
footer.site { padding: 70px 0 44px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--ink-soft); font-size: .95rem; margin: 18px 0 0; max-width: 36ch; }
.foot-col h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--red); }
.foot-base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; font-size: 13px; color: var(--ink-faint); }

/* ---------- legal pages ---------- */
main.legal { max-width: 740px; margin: 0 auto; padding: 60px 30px 84px; }
main.legal .back-link { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); text-decoration: none; display: inline-block; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
main.legal .back-link:hover { color: var(--red); border-color: var(--red); }
main.legal h1.display { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 10px 0 6px; }
main.legal .updated { font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint); margin: 0 0 32px; }
main.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 38px 0 8px; }
main.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 22px 0 6px; }
main.legal p, main.legal li { color: var(--ink-soft); font-size: 1.02rem; }
main.legal a { color: var(--cobalt); }
main.legal ul { padding-left: 20px; }
main.legal li { margin-bottom: 7px; }
main.legal .callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; padding: 16px 22px; margin: 24px 0; }
main.legal .callout p { margin: 0; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  section { padding: 70px 0; }
  .caps, .foot-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 44px 26px; }
  .wrap { padding: 0 22px; }
}
