/* Forrest Dowling — portfolio
   Design tokens carried over from the Claude Design source. */

:root {
  --bg: #14151a;
  --panel: #1c1d24;
  --border: #2a2b32;
  --accent: #e8611c;
  --accent-hi: #ffb066;
  --ink-hi: #f4f3ee;
  --ink: #e8e6df;
  --ink-mid: #c9c6bb;
  --ink-soft: #a8a59a;
  --ink-dim: #8a877c;
  --ink-faint: #6b6960;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 64px;
  --measure: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

/* ---------- Reveal-on-scroll ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.in { animation: fadeUp 0.7s cubic-bezier(.2, .7, .3, 1) forwards; }

/* Respect users who don't want motion: show everything immediately. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; }
  .reveal.in { animation: none; }
  * { transition: none !important; }
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.card-kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-hi);
  margin: 0 0 28px;
}

.body-copy {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.body-copy:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-solid { color: var(--bg); background: var(--accent); }
.btn-solid:hover { background: var(--accent-hi); color: var(--bg); }

.btn-ghost { color: var(--ink); border: 1px solid #4a4a45; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter);
  background: rgba(20, 21, 26, 0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  padding: 14px var(--gutter);
  background: rgba(20, 21, 26, 0.9);
  border-bottom-color: var(--border);
}

.nav-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-brand:hover { color: var(--ink-hi); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--accent); }

.nav-cta {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent-hi); color: var(--bg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The source banner is a wide 2500x667 collage. Anchoring right keeps the
     art in the open space beside the headline instead of behind it. */
  object-position: 78% center;
  opacity: 0.5;
}

/* Two scrims: vertical to seat the hero into the page, horizontal to carve out
   a dark, high-contrast column on the left for the type to sit on. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--bg) 0%,
      rgba(20, 21, 26, 0.92) 34%,
      rgba(20, 21, 26, 0.55) 62%,
      rgba(20, 21, 26, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 21, 26, 0.55) 0%,
      rgba(20, 21, 26, 0.6) 55%,
      var(--bg) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
  padding-top: 120px;
}

.hero-eyebrow { margin-bottom: 22px; }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: var(--ink-hi);
}

.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 620px;
  margin: 0 0 40px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-rule {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 60px 0 24px;
}
.hero-rule span {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

/* ---------- Two-column sections ---------- */

.split {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 120px var(--gutter);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
}

.split-body { max-width: 720px; }

.rule-top { border-top: 1px solid var(--border); }

/* ---------- Work ---------- */

.work { max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 60px; }

.work > .section-label { display: block; margin-bottom: 48px; }

.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.25s ease;
}

a.feature:hover { border-color: var(--accent); color: inherit; }

.feature-flip { grid-template-columns: 1fr 1.1fr; margin-bottom: 64px; }
.feature-flip .feature-media { order: 2; }
.feature-flip .feature-text { order: 1; }

.feature-media { position: relative; min-height: 420px; }

.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink-hi);
}

.feature-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.feature-more {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease;
}
a.feature:hover .feature-more { color: var(--accent); }

.feature-soon {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Typographic stand-in used where no licensed key art is available. */
.art-plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(232, 97, 28, 0.16) 0%, transparent 62%),
    linear-gradient(155deg, #23242c 0%, #16171d 100%);
  border-right: 1px solid var(--border);
}

.art-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 64px);
}

.art-plate span {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.9;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: -0.01em;
  color: rgba(244, 243, 238, 0.09);
  padding: 24px;
}

.feature-flip .art-plate,
.case-figure .art-plate { border-right: 0; }

/* Behind a case-study hero the plate is pure backdrop — its ghost title would
   collide with the real <h1> sitting on top of it. */
.case-hero .art-plate { border-right: 0; }
.case-hero .art-plate span { display: none; }

/* ---------- Secondary work grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: border-color 0.25s ease;
}

.tile .card-kicker { font-size: 12px; letter-spacing: 0.1em; margin-bottom: 10px; }

.tile h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink-hi);
}

.tile p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
  flex: 1;
}

/* ---------- Studio ---------- */

.studio-media {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.studio-media img { width: 100%; height: 320px; object-fit: cover; }

.split-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--ink-hi);
}

/* ---------- Speaking ---------- */

.talks { list-style: none; margin: 28px 0 0; padding: 0; }

.talk {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.talk:last-child { border-bottom: 1px solid var(--border); }

.talk-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink-hi);
  transition: color 0.2s ease;
}
.talk a:hover .talk-title { color: var(--accent); }

.talk-venue {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin-top: 4px;
}

.talk-year {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.talk a { color: inherit; display: block; }

/* ---------- CV ---------- */

.cv {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 90px var(--gutter);
  text-align: center;
}

.cv-inner { max-width: 640px; margin: 0 auto; }
.cv .section-label { display: block; margin-bottom: 18px; }

.cv h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--ink-hi);
}

.cv p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

/* ---------- Contact / footer ---------- */

.contact {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 100px var(--gutter) 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-main { max-width: 520px; }
.contact .section-label { display: block; margin-bottom: 18px; }

.contact h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--ink-hi);
}

.contact p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.contact-email {
  font-size: 20px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 8px;
  word-break: break-word;
}

.contact-social { font-size: 15px; color: var(--ink-dim); }
.contact-social:hover { color: var(--accent-hi); }

.contact-portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.colophon {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ---------- Case study ---------- */

.case-nav { background: rgba(20, 21, 26, 0.9); border-bottom-color: var(--border); padding: 18px var(--gutter); }

.case-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 80px;
  overflow: hidden;
}

.case-hero .hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(20, 21, 26, 0.2) 0%,
    rgba(20, 21, 26, 0.55) 60%,
    var(--bg) 100%
  );
}

.case-hero .hero-inner { padding-top: 120px; }

.case-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink-hi);
}

.case-hero .eyebrow { letter-spacing: 0.2em; display: block; margin-bottom: 20px; }

.case-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 640px;
  margin: 0;
}

.meta {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-bottom: 1px solid var(--border);
}

.meta dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.meta dd { font-size: 16px; color: var(--ink); margin: 0; }

.split-tight { padding-top: 0; padding-bottom: 100px; }

.case-figure {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 100px;
}

.case-figure-inner {
  position: relative;
  height: 520px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.case-figure img { width: 100%; height: 100%; object-fit: cover; }

.case-foot {
  border-top: 1px solid var(--border);
  padding: 64px var(--gutter);
  text-align: center;
}

.case-foot a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 32px; }

  .nav-links { gap: 20px; }
  .nav-link { font-size: 13px; }

  .split { grid-template-columns: 1fr; gap: 24px; padding: 80px var(--gutter); }

  .feature,
  .feature-flip { grid-template-columns: 1fr; }

  /* Media above text on narrow screens, whichever way the desktop grid ran. */
  .feature-media,
  .feature-flip .feature-media { order: 1; min-height: 260px; }
  .feature-text,
  .feature-flip .feature-text { order: 2; padding: 36px 28px; }

  .art-plate { border-right: 0; border-bottom: 1px solid var(--border); }

  .feature-text h3 { font-size: 34px; }

  .lede { font-size: 24px; }

  .case-figure-inner { height: 300px; }
}

@media (max-width: 640px) {
  .nav { padding: 16px var(--gutter); }
  .nav.scrolled { padding: 12px var(--gutter); }

  /* Brand mark alone would crowd the links; hide it and let the links breathe. */
  .nav-brand { display: none; }
  .nav-links { width: 100%; justify-content: space-between; gap: 12px; }
  .nav-link { font-size: 12px; letter-spacing: 0.06em; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }

  /* No room for a side-by-side type/art split — flatten the scrim so copy
     stays legible across the full width. */
  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(20, 21, 26, 0.82) 0%,
      rgba(20, 21, 26, 0.88) 55%,
      var(--bg) 100%
    );
  }
  .hero-bg img { object-position: center; opacity: 0.4; }

  .hero-inner { padding-top: 96px; }
  .hero-sub { font-size: 17px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .grid { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr; gap: 24px; }

  .talk { flex-direction: column; gap: 6px; }

  .contact { align-items: flex-start; }
  .contact h3 { font-size: 32px; }
  .contact-email { font-size: 17px; }

  .studio-media img { height: 220px; }
}
