/* ==========================================================================
   Corecut Studios — design system
   Palette: cool graphite ink + cool bone + machined brass ("the cut")
   Type:    Newsreader (display serif) · IBM Plex Mono (utility) · IBM Plex Sans (body)
   ========================================================================== */

:root {
  --ink:        #12161a;   /* cool graphite near-black */
  --ink-soft:   #1a2026;   /* raised dark surface       */
  --ink-line:   #2b333a;   /* hairline on dark          */
  --bone:       #edece6;   /* cool bone paper           */
  --bone-dim:   #e0dfd7;   /* dimmed bone surface       */
  --bone-line:  #d3d2c8;   /* hairline on light         */
  --slate:      #6b7378;   /* muted secondary text      */
  --slate-dk:   #8b9298;   /* muted text on dark        */
  --brass:      #c08a3e;   /* machined brass — the cut  */
  --brass-hi:   #d8a55a;   /* brass highlight on dark   */
  --brass-dk:   #a1712c;   /* brass on light bg         */

  --ff-display: "Newsreader", Georgia, "Times New Roman", serif;
  --ff-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1220px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --band-y: clamp(5rem, 10vw, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- layout helpers ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); position: relative; }
.band--dark  { background: var(--ink);  color: var(--bone); }
.band--soft  { background: var(--bone-dim); color: var(--ink); }
.band--ink2  { background: var(--ink-soft); color: var(--bone); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.band--dark .eyebrow, .band--ink2 .eyebrow { color: var(--slate-dk); }
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--brass);
  transform: skewY(-18deg);
  display: inline-block;
}

/* The recurring "cut": a shallow brass diagonal that slices a boundary */
.cut-rule { line-height: 0; }
.cut-rule svg { width: 100%; height: 40px; display: block; }
.cut-rule line { stroke: var(--brass); stroke-width: 1.4; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.12; }
em, .it { font-style: italic; }
.brass { color: var(--brass-dk); }
.band--dark .brass, .band--ink2 .brass { color: var(--brass-hi); }

.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
}
.band--dark .lead, .band--ink2 .lead { color: var(--bone); }
.muted { color: var(--slate); }
.band--dark .muted, .band--ink2 .muted { color: var(--slate-dk); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
  color: var(--bone);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.05rem; }
.site-header.scrolled {
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--bone-line);
  color: var(--ink);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .mark .tile { fill: currentColor; }
.brand .mark .kerf { stroke: var(--ink); }
.site-header:not(.scrolled) .brand .mark .kerf { stroke: var(--ink); }
.brand .mark .glint { stroke: var(--brass-hi); }
.brand-name { font-family: var(--ff-mono); font-weight: 600; letter-spacing: 0.14em; font-size: 0.92rem; }
.brand-name small { display: block; font-size: 0.58rem; letter-spacing: 0.42em; color: var(--slate-dk); font-weight: 400; }
.site-header.scrolled .brand-name small { color: var(--slate); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  font-family: var(--ff-mono);
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: inherit; opacity: .82; position: relative; padding-block: 4px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brass); transition: width .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }

.nav-cta {
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 0.55rem 1rem; border-radius: 2px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.nav-cta:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }

.nav-toggle { display: none; width: 42px; height: 42px; flex: none; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; background: var(--ink); color: var(--bone);
  min-height: 100svh; display: flex; align-items: center;
  padding-block: clamp(8rem, 16vh, 12rem) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 92px) clamp(48px, 7vw, 92px);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 10%, #000 20%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 20% 10%, #000 20%, transparent 78%);
}
.hero__cut { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__cut line { stroke: var(--brass); }
.hero .wrap { position: relative; z-index: 2; }

.hero__eyebrow { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero h1 .it { color: var(--brass-hi); }
.hero__sub {
  margin-top: clamp(1.4rem, 3.5vh, 2.2rem);
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  line-height: 1.5;
  color: #c7cace;
}
.hero__actions { margin-top: clamp(1.8rem, 4vh, 2.8rem); display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__meta {
  margin-top: clamp(2.4rem, 6vh, 4rem);
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3.2rem);
  padding-top: 1.4rem; border-top: 1px solid var(--ink-line);
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-dk);
}
.hero__meta b { color: var(--bone); font-weight: 500; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase;
  padding: 0.95rem 1.5rem; border-radius: 2px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--solid { background: var(--brass); color: var(--ink); }
.btn--solid:hover { background: var(--brass-hi); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: #000; }

/* ==========================================================================
   Section scaffold
   ========================================================================== */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; max-width: 62ch; }
.section-head h2 { max-width: 18ch; }
.section-head--wide { max-width: none; }

/* Vision — statement + column of disciplines */
.vision-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.vision-list { display: grid; gap: 0; border-top: 1px solid var(--bone-line); }
.band--dark .vision-list, .band--ink2 .vision-list { border-color: var(--ink-line); }
.vision-list li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; padding-block: 1.05rem; border-bottom: 1px solid var(--bone-line); }
.band--dark .vision-list li, .band--ink2 .vision-list li { border-color: var(--ink-line); }
.vision-list .n { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--brass-dk); letter-spacing: 0.1em; }
.band--dark .vision-list .n, .band--ink2 .vision-list .n { color: var(--brass-hi); }
.vision-list .t { font-family: var(--ff-display); font-size: clamp(1.15rem, 2vw, 1.5rem); }

/* Statement / pull quote band */
.statement { text-align: left; }
.statement p {
  font-family: var(--ff-display); font-weight: 300;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem); line-height: 1.14; letter-spacing: -0.02em;
  max-width: 20ch;
}
.statement .credit { margin-top: 2rem; font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-dk); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--bone-line); margin-top: clamp(2.5rem, 6vw, 4rem); border: 1px solid var(--bone-line); }
.service {
  background: var(--bone); padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid; gap: 1rem; position: relative;
  transition: background .3s var(--ease);
}
.service:hover { background: var(--bone-dim); }
.service__no { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--brass-dk); }
.service h3 { max-width: 16ch; }
.service p { color: var(--slate); max-width: 42ch; }
.service__price { font-family: var(--ff-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink); padding-top: 0.9rem; border-top: 1px solid var(--bone-line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.service__price .arw { color: var(--brass-dk); transition: transform .25s var(--ease); }
.service:hover .service__price .arw { transform: translateX(5px); }

/* Work / studies */
.studies { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.study {
  border: 1px solid var(--ink-line); border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 340px; position: relative;
  background: var(--ink-soft);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.study:hover { transform: translateY(-4px); border-color: var(--brass); }
.study__canvas { height: 190px; position: relative; overflow: hidden; }
.study__canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.study__body { padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; flex: 1; }
.study__tag { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-hi); }
.study h3 { color: var(--bone); }
.study p { color: var(--slate-dk); font-size: 0.96rem; }

/* Studio / approach — three columns */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.approach > div { display: grid; gap: 0.9rem; align-content: start; }
.approach h3 { display: flex; align-items: baseline; gap: 0.6rem; }
.approach h3 .k { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--brass-dk); }
.approach p { color: var(--slate); }
.band--dark .approach p, .band--ink2 .approach p { color: var(--slate-dk); }

/* Systems — the lexicon grid */
.lexicon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); margin-top: clamp(2.5rem, 6vw, 4rem); }
.lex { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: 0.5rem; min-height: 150px; align-content: start; transition: background .3s var(--ease); }
.lex:hover { background: var(--ink-soft); }
.lex .idx { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--brass-hi); letter-spacing: 0.1em; }
.lex h3 { color: var(--bone); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.lex p { color: var(--slate-dk); font-size: 0.92rem; }

/* Voices / testimonials */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.voice { border: 1px solid var(--bone-line); border-radius: 3px; padding: clamp(1.75rem, 3.5vw, 2.5rem); display: grid; gap: 1.4rem; background: var(--bone); }
.voice__q { font-family: var(--ff-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.35; letter-spacing: -0.01em; }
.voice__q::before { content: "“"; color: var(--brass-dk); font-size: 1.4em; line-height: 0; vertical-align: -0.35em; margin-right: 0.06em; }
.voice__who { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); display: flex; align-items: center; gap: 0.7rem; }
.voice__who::before { content: ""; width: 1.8em; height: 1px; background: var(--brass); transform: skewY(-18deg); }

/* Ethos manifesto */
.ethos { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.ethos__big { font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; }
.ethos__cols { columns: 2; column-gap: 2rem; color: var(--slate-dk); }
.ethos__cols p + p { margin-top: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.contact-info dl { display: grid; gap: 0.35rem; }
.contact-info dt { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-dk); }
.contact-info dd { font-size: 1.05rem; }
.contact-info a:hover { color: var(--brass-hi); }
.contact-note { font-family: var(--ff-mono); font-size: 0.72rem; line-height: 1.7; letter-spacing: 0.03em; color: var(--slate-dk); border-left: 1px solid var(--brass); padding-left: 1rem; }

.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-dk); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--bone);
  background: var(--ink); border: 1px solid var(--ink-line); border-radius: 2px;
  padding: 0.85rem 0.95rem; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #5c646b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: #0d1114; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass-hi) 50%), linear-gradient(135deg, var(--brass-hi) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form__submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form__status { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--brass-hi); min-height: 1.2em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0c0f12; color: var(--bone); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; border-bottom: 1px solid var(--ink-line); }
.footer-brand { display: grid; gap: 1.1rem; align-content: start; max-width: 34ch; }
.footer-brand .brand { color: var(--bone); }
.footer-brand p { color: var(--slate-dk); font-size: 0.95rem; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-dk); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { color: #c7cace; font-size: 0.95rem; }
.footer-col a:hover { color: var(--brass-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--slate-dk); }
.footer-bottom a:hover { color: var(--brass-hi); }

/* ==========================================================================
   Motion — reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* legal / content pages */
.doc { padding-block: clamp(7rem, 14vw, 10rem) var(--band-y); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 0.6rem; }
.doc .updated { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 2.5rem; }
.doc h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.6rem; margin-bottom: 0.8rem; }
.doc p, .doc li { color: #2c3238; max-width: 70ch; }
.doc p + p { margin-top: 1rem; }
.doc ul { margin: 1rem 0 0 1.2rem; display: grid; gap: 0.5rem; }
.doc a { color: var(--brass-dk); text-decoration: underline; text-underline-offset: 3px; }
.back-link { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); display: inline-flex; gap: 0.5em; margin-top: 3rem; }
.back-link:hover { color: var(--brass-dk); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .vision-grid, .ethos, .contact-grid { grid-template-columns: 1fr; }
  .studies, .approach, .lexicon, .voices { grid-template-columns: 1fr 1fr; }
  .ethos__cols { columns: 1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); color: var(--bone);
    padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--ink-line);
    transform: translateY(-120%); transition: transform .45s var(--ease);
    max-height: calc(100svh - 64px); overflow-y: auto;
  }
  body.nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav a { padding-block: 1rem; border-bottom: 1px solid var(--ink-line); opacity: 1; font-size: 0.9rem; }
  .nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 1rem; border-color: var(--brass); }
  .site-header .nav-links { display: contents; }
}
@media (max-width: 640px) {
  .services, .studies, .approach, .lexicon, .voices { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero__meta { gap: 1rem 2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-name small { letter-spacing: 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
