/* Tommy Kazias — design tokens
   paper #F4EFE6  paper-2 #E8E0D2  ink #161310  ink-soft #5C5348
   rule #C9BBA6  brass #9C7A45  brass-hover #7E6234
   slate #2C3A4A  ember #7A2E1F  snow #FBF8F2  void #12100E
   Brass is limited to the wordmark, the primary button, and the H1 rule. */

@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/Fraunces-latin.woff2") format("woff2");
  font-weight: 500 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/Fraunces-italic-latin.woff2") format("woff2");
  font-weight: 480;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F4EFE6;
  --paper-2: #E8E0D2;
  --ink: #161310;
  --ink-soft: #5C5348;
  --rule: #C9BBA6;
  --brass: #9C7A45;
  --brass-hover: #7E6234;
  --slate: #2C3A4A;
  --ember: #7A2E1F;
  --snow: #FBF8F2;
  --void: #12100E;
  --serif: Fraunces, "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --header: 64px;
  --measure: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 18px/1.7 var(--sans);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 { font-size: clamp(36px, 4.6vw, 68px); }
h2 { font-size: clamp(32px, 3.4vw, 48px); }
h3 { font-size: clamp(24px, 2vw, 32px); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--measure), calc(100% - 64px)); margin-inline: auto; }
.label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.h-rule {
  width: 48px;
  height: 1px;
  margin: 18px 0 22px;
  border: 0;
  background: var(--brass);
}
.pull {
  margin: 8px 0 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--brass);
  color: var(--ink);
  border: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: background 200ms var(--ease);
}
.btn:hover { background: var(--brass-hover); }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn-quiet:hover { background: transparent; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: var(--void);
  color: var(--snow);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.wordmark img { width: 28px; height: auto; }
.wordmark-name { font-family: var(--serif); font-size: 18px; font-weight: 560; letter-spacing: -0.02em; color: var(--snow); }
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(251, 248, 242, 0.35);
  background: transparent;
  color: var(--snow);
  font-size: 14px;
  font-weight: 600;
}
.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 15px; color: #E8E2D8; }
.nav-links a[aria-current="page"] { color: var(--snow); box-shadow: inset 0 -1px 0 var(--snow); }
.site-header .btn { flex: none; }
.site-header a:focus-visible, .site-header button:focus-visible { outline-color: var(--paper); }

/* HeroPlate — 4:5, face locked, no type burned into the file */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 56px;
  align-items: end;
  padding: 48px 0 64px;
}
.eyebrow, .avail {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.avail {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 13px;
  color: var(--ink);
}
.hero .deck { max-width: 38em; font-size: 18px; }
.hero .hire {
  max-width: 34em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  font-size: 22px;
  line-height: 1.4;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-plate { margin: 0; }
.hero-plate .plate-frame {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}
.hero-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero-plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-plate figcaption strong {
  font-family: var(--serif);
  font-weight: 560;
  color: var(--ink);
  font-size: 16px;
}

/* Path cards */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 64px;
}
.path-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 24px 22px 20px;
  background: var(--snow);
  border-top: 2px solid var(--ink);
}
.path-card.ops { border-top-color: var(--slate); }
.path-card.ref { border-top-color: var(--ember); }
.path-card h2 { font-size: 30px; max-width: 12ch; }
.path-card p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.path-card .proof-line { color: var(--ink); }
.path-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; padding-top: 16px; }
.text-link { font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: transparent; }

/* Proof */
.proof {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { padding: 32px 8px 36px 0; }
.proof-grid strong {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.proof-grid span { display: block; max-width: 18ch; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }

/* Work */
.section { padding: 72px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 460px;
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.work-card[hidden] { display: none !important; }
.plate {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  color: var(--snow);
}
.plate-ops { background: var(--slate); }
.plate-sys { background: var(--ink); }
.plate .hair {
  width: 36px;
  height: 1px;
  background: var(--brass);
}
.plate p { margin: 0; }
.plate .kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #E4DDD2; }
.plate .title { font-family: var(--serif); font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }
.work-card .meta, .work-card .outcome { margin: 0; font-size: 15px; }
.work-card .meta { color: var(--ink-soft); }
.filter-empty { color: var(--ink-soft); }

/* Jacket — native ratio, never cropped */
.jacket {
  background: var(--snow);
  padding: 20px;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -28px rgba(22, 19, 16, 0.55);
}
.jacket img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--snow);
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
  align-items: start;
}
.book-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.book-card[hidden] { display: none !important; }
.book-card h3 { font-size: 26px; }
.book-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.book-card .for { color: var(--ink); }

/* Timeline */
.line-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.18fr;
  gap: 40px;
  align-items: start;
}
.logo-plate {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
  background: var(--snow);
  border: 1px solid var(--rule);
}
.logo-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-plate.ink {
  background: var(--ink);
  border-color: var(--ink);
}
.work-card .role { margin: 0; font-weight: 600; }
.work-card .body { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; }
.work-card h3 { font-size: 28px; }
.work-card > .text-link,
.work-card p .text-link { align-self: flex-start; }
.timeline { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.timeline button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  min-height: 44px;
  padding: 14px 12px 14px 18px;
  margin-left: -1px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  scroll-margin-top: 88px;
  transition: background 200ms var(--ease);
}
.timeline button strong { font-family: var(--serif); font-size: 22px; font-weight: 560; color: var(--ink); letter-spacing: -0.02em; }
.timeline button span { font-size: 14px; }
.timeline button[aria-pressed="true"] { border-left-color: var(--ink); background: var(--snow); color: var(--ink); }
.brief-sheet { background: var(--snow); border: 1px solid var(--rule); padding: 28px 28px 24px; min-height: 240px; }
.brief-panel .label { display: block; }
.brief-panel p { color: var(--ink-soft); max-width: 46em; }
.brief-panel p strong { color: var(--ink); font-weight: 600; }
html.js .brief-panel { display: none; }
html.js .brief-panel.is-active { display: block; animation: brief-in 150ms var(--ease); }
@keyframes brief-in { from { opacity: 0; } to { opacity: 1; } }
.seq-note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* Trades */
.trades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trades article { padding-top: 16px; border-top: 1px solid var(--rule); }
.trades article.ops { border-top-color: var(--slate); }
.trades article.ref { border-top-color: var(--ember); }
.trades h3 { font-size: 28px; margin-bottom: 12px; }
.trades p { font-size: 16px; color: var(--ink-soft); }
.trades p strong { color: var(--ink); font-weight: 600; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.principles article { padding-top: 14px; border-top: 1px solid var(--rule); }
.principles h3 { font-size: 26px; margin-bottom: 10px; }
.principles p { font-size: 16px; color: var(--ink-soft); }

/* Contact slab — void only here and in the header */
.contact-slab {
  background: var(--void);
  color: var(--snow);
  padding: 72px 0 80px;
}
.contact-slab h2 { color: var(--snow); max-width: 18em; font-size: clamp(30px, 3.2vw, 46px); }
.contact-slab .label { color: #C9BBA6; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  margin-top: 28px;
}
.contact-slab input,
.contact-slab textarea,
.contact-slab select {
  width: 100%;
  background: transparent;
  color: var(--snow);
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.35);
  border-radius: 0;
  padding: 10px 0;
  font-size: 16px;
}
.contact-slab select { color-scheme: dark; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #C9BBA6; }
.subject-line, .trust-line, .privacy-line { font-size: 15px; color: #E4DDD2; max-width: 46em; }
.trust-line { color: var(--snow); }
.contact-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 8px; }
.contact-aside a { border-bottom: 1px solid rgba(251, 248, 242, 0.4); }
.contact-slab a:focus-visible, .contact-slab button:focus-visible { outline-color: var(--paper); }
input[name="_gotcha"] { position: absolute; left: -9999px; }

.site-footer { padding: 36px 0 48px; }
.footer-open { max-width: 36em; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.footer-links a { border-bottom: 1px solid var(--rule); }
.footer-meta { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; }

.page { padding: 32px 0 88px; }
.crumb { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 14px; color: var(--ink-soft); }
.crumb a { border-bottom: 1px solid var(--rule); }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); }
.prose a:not(.btn) { border-bottom: 1px solid var(--ink); }
.contact-slab .crumb, .contact-slab .crumb a { color: #C9BBA6; }
.stack { display: flex; flex-direction: column; gap: 22px; margin: 8px 0 24px; }
.stack article { padding-top: 16px; border-top: 1px solid var(--rule); }
.stack h2 { font-size: 28px; margin-bottom: 8px; }
.scope { margin: 22px 0 28px; }
.scope div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 6px 20px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}
.scope dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.scope dd { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.45; }
.prose .scope dd { color: var(--ink); }
.quiet { margin-top: 8px; padding: 16px 0 0; border-top: 1px solid var(--rule); }
.thursday { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.thursday article { padding: 18px; background: var(--snow); border-top: 2px solid var(--ember); }
.thursday h3 { font-size: 22px; margin-bottom: 8px; }
.thursday p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

[id] { scroll-margin-top: 88px; }

@media (max-width: 800px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; padding-bottom: 32px; }
  .hero-copy { display: contents; }
  .hero-plate { width: min(100%, 268px); margin-inline: auto; }
  .hero-plate figcaption { margin-top: 6px; }
  .hero .avail { margin-bottom: 8px; }
  .hero-plate .plate-frame { width: 100%; }
  .hero-plate { order: 1; }
  .hero .eyebrow { order: 2; }
  .hero .avail { order: 3; }
  .hero h1 { order: 4; }
  .hero .h-rule { order: 5; }
  .hero-actions { order: 6; }
  .hero .deck { order: 7; }
  .hero .hire { order: 8; }
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--void);
  }
  .primary-nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 14px 0; border-top: 1px solid rgba(251, 248, 242, 0.15); }
  .site-header .btn { margin-top: 12px; }
  .hero, .paths, .proof-grid, .work-grid, .book-grid, .line-grid, .trades, .principles, .contact-grid, .thursday {
    grid-template-columns: 1fr;
  }
  .hero-plate { order: -1; }
  .work-grid, .book-grid { min-height: 0; }
}

@media (max-width: 720px) {
  .scope div { grid-template-columns: 1fr; gap: 4px; }
  .wrap { width: calc(100% - 32px); }
  body { font-size: 17px; }
  .hero { padding-top: 20px; gap: 20px; }
  .hero-plate .plate-frame { width: 100%; }
  h1 { font-size: 36px; }
  .section { padding: 48px 0; }
  .site-header { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
