/* ============ Base & tokens ============ */
:root {
  --paper: #f7f3ea;
  --ink: #211d18;
  --ink-soft: #5b5348;
  --rule: rgba(33, 29, 24, 0.18);
  --rule-strong: rgba(33, 29, 24, 0.55);
  --accent: #b3441e;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.52 0 0 0 0 0.47 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 8.5vw, 6.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.45rem; }

p { color: var(--ink-soft); }

a { color: var(--ink); }

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============ Buttons & links ============ */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-small { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.link-arrow::after { content: " →"; color: var(--accent); }
.link-arrow:hover { color: var(--accent); }

/* ============ Compact sticky topbar (appears past the masthead) ============ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem clamp(1.2rem, 5vw, 4rem);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.topbar.show { transform: translateY(0); }
.topbar-logo {
  display: inline-block;
  position: relative;
  border: 1.5px solid var(--ink);
  padding: 0.34rem 0.8rem 0.3rem;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.topbar-logo::before {
  content: "";
  position: absolute;
  inset: 2.5px;
  border: 1px solid var(--ink);
  pointer-events: none;
  transition: border-color 0.2s ease;
}
.topbar-logo:hover { border-color: var(--accent); color: var(--accent); }
.topbar-logo:hover::before { border-color: var(--accent); }
.topbar-logo-top {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.topbar-logo-bottom {
  display: block;
  margin-top: 0.22rem;
  padding-top: 0.22rem;
  border-top: 1px solid currentColor;
  font-size: 0.44rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.topbar-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topbar-links a:hover { color: var(--ink); }
.topbar-links a.nav-cta { color: var(--accent); }
.topbar-links a.nav-cta::after { content: " →"; }

/* ============ Edition strip ============ */
.edition {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem clamp(1.2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
}

/* ============ Masthead ============ */
.masthead {
  position: relative;
  padding: 1.8rem clamp(1.2rem, 5vw, 4rem) 0;
  text-align: center;
  border-bottom: 4px double var(--rule-strong);
  background: var(--paper);
}
.nav-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-logo:hover { color: var(--accent); }
.masthead .nav-logo { margin-bottom: 0.9rem; }
.issue-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.4rem;
  border-top: 1px solid var(--rule);
  padding: 0.95rem 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 3px;
  transition: background-size 0.25s ease, color 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background-size: 100% 2px;
}
.nav-links a.nav-cta { color: var(--accent); }
.nav-links a.nav-cta::after { content: " →"; }
.nav-links a.nav-cta:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  position: absolute;
  top: 2rem;
  right: clamp(1.2rem, 5vw, 4rem);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
}

/* ============ Layout ============ */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1.2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.section-head { margin-bottom: 2.8rem; }
.section-head h2 { margin-top: 0.5rem; }
.section-head .kicker {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.section-head .kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7.5rem) clamp(1.2rem, 5vw, 4rem) clamp(3.5rem, 9vh, 6rem);
}
.hero-badge {
  position: absolute;
  top: 55%;
  right: clamp(1.5rem, 4vw, 4rem);
  transform: translateY(-50%);
  width: 138px;
  height: 138px;
  color: var(--ink);
}
.hero-badge svg {
  display: block;
}
.hero-badge .badge-ring {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--accent);
}
.hero-badge .badge-center {
  font-size: 26px;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
}
@media (max-width: 1120px) {
  .hero-badge { display: none; }
}
.hero h1 {
  max-width: 16ch;
  margin: 1.2rem 0 1.6rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 28 3, 55 11, 84 6 S 112 5, 117 7' fill='none' stroke='%23b3441e' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.16em;
  padding-bottom: 0.1em;
}
.hero-sub {
  max-width: var(--measure);
  font-size: 1.2rem;
  margin-bottom: 2.4rem;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 3.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
}
.hero-note a { color: var(--accent); }

/* ============ Index strip (static, replaces the old ticker) ============ */
.index-strip {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding: 0.9rem clamp(1.2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #f2ecdf;
}
.index-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-right: 0.4rem;
}
.index-strip a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.index-strip a:hover { color: var(--accent); }
.index-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

/* ============ Services ============ */
.service-list { list-style: none; }
.service-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.service-list li:last-child { border-bottom: 1px solid var(--rule); }
.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.service-body h3 { margin-bottom: 0.5rem; }
.service-body p { max-width: var(--measure); }
.service-points {
  list-style: none;
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-points li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.service-points li::before {
  content: "✳";
  color: var(--accent);
  margin-right: 0.5rem;
  font-size: 0.8em;
}

/* Notice box: small boxed aside, newspaper classified style */
.notice-box {
  border: 3px double var(--rule-strong);
  padding: 1.1rem 1.5rem;
  margin-top: 2.2rem;
  max-width: 46rem;
}
.notice-box .notice-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.notice-box p { font-size: 0.92rem; margin: 0; }
.notice-box a { color: var(--accent); font-weight: 600; }

/* ============ Work ============ */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.8rem;
  align-items: center;
}
.feature-shot {
  display: block;
  position: relative;
  aspect-ratio: 1887 / 857;
  border: 1px solid var(--rule-strong);
  background: #e9e2d3;
  overflow: hidden;
}
.feature-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}
.feature-shot:hover img { transform: scale(1.02); }
.feature-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.feature-shot.no-img .feature-fallback { display: grid; }
.feature-figure { margin: 0; }
.feature-figure figcaption {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.feature-figure .credit {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}
.case-slug {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.dateline {
  font-weight: 600;
  font-size: 0.88em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.byline {
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.feature-text h3 { margin-bottom: 0.3rem; }
.feature-tag {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}
.work-next {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.work-next a { color: var(--accent); font-weight: 600; }

/* ============ Statement ============ */
.statement {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #f2ecdf;
  padding: clamp(3.5rem, 9vh, 5.5rem) clamp(1.2rem, 5vw, 4rem);
}
.statement p {
  max-width: 1080px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
}
.statement em {
  font-style: italic;
  color: var(--accent);
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4 / 5;
  background: #e9e2d3;
  border: 1px solid var(--rule-strong);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transform: rotate(-1.5deg);
  box-shadow: 4px 5px 0 rgba(33, 29, 24, 0.12);
  transition: transform 0.3s ease;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo:hover { transform: rotate(0deg); }
.about-text p { max-width: var(--measure); margin-bottom: 1.2rem; }
.about-text .btn { margin-top: 0.6rem; }

/* Pull quote: sits inside the newsprint column flow, rules above and below */
.pull-quote {
  break-inside: avoid;
  margin: 0 0 1.4rem;
  padding: 0.9rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink);
}

/* ============ Newsprint utilities: shared by the Profile bio and the case study ============ */
.newsprint-cols {
  column-width: 230px;
  column-gap: 1.8rem;
  column-rule: 1px solid var(--rule);
}
.feature-text .newsprint-cols {
  column-width: 175px;
}
.drop-cap {
  margin-bottom: 1.4rem;
}
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 700;
  font-size: 3.4em;
  float: left;
  line-height: 0.78;
  padding: 0.06em 0.14em 0 0;
  color: var(--accent);
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info p { margin-bottom: 1.2rem; }
.contact-email a { color: var(--accent); font-weight: 600; }

.forecast-box {
  border: 1px solid var(--rule-strong);
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  background: #f2ecdf;
}
.forecast-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.forecast-body {
  font-size: 0.88rem;
  margin: 0;
}

.classified {
  position: relative;
  border: 1.5px dashed var(--rule-strong);
  padding: 1.7rem 1.6rem 1.5rem;
}
.classified-tag {
  position: absolute;
  top: -0.7rem;
  right: 1.2rem;
  background: var(--paper);
  padding: 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
}
.contact-form input,
.contact-form textarea {
  background: #fffdf8;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.contact-form .btn { align-self: flex-start; margin-top: 0.4rem; }
.form-status { margin: 0; font-size: 0.88rem; font-weight: 600; min-height: 1.2em; }
.form-status-success { color: #2a6b3f; }
.form-status-error { color: var(--accent); }

/* ============ Footer wordmark ============ */
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12.5vw, 10.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  margin-bottom: -0.18em;
  color: var(--ink);
  opacity: 0.92;
  user-select: none;
}

/* ============ Footer ============ */
.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.2rem, 5vw, 4rem) 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.footer p { color: var(--ink-soft); }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.footer-fine {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}
.corrections {
  margin-top: 0.9rem;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* ============ Scroll reveal: the statement is the only thing that moves ============ */
.statement .word {
  opacity: 0;
  transition: opacity 0.45s ease;
  transition-delay: calc(var(--w, 0) * 70ms);
}
.statement p.visible .word { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .statement .word { opacity: 1; transition: none; }
}

/* ============ Mobile ============ */
@media (max-width: 760px) {
  .topbar-links a:not(.nav-cta) { display: none; }
  .edition span:first-child,
  .edition span:last-child { display: none; }
  .edition { justify-content: center; }
  .nav-toggle { display: block; padding: 12px 8px; top: 1.4rem; }
  /* narrower nameplate on phones so it clears the menu button */
  .nav-logo { font-size: clamp(1.9rem, 9vw, 10rem); }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.9rem 0 1.2rem;
  }
  .nav-links a { padding: 0.4rem 0; }
  .nav-links.open { display: flex; }
  .index-strip a { padding: 0.35rem 0.2rem; }
  .index-strip { justify-content: center; text-align: center; }
  .index-label { width: 100%; text-align: center; }
  .service-list li { grid-template-columns: 4.5rem 1fr; }
  .service-num { font-size: 2.4rem; }
  .feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
