/* Dyl Fortune — portfolio. Static rebuild. */
:root {
  --bg: #faf8f4;
  --bg-soft: #f3efe7;
  --ink: #191713;
  --ink-deep: #12100c;
  --ink-soft: #4a463d;
  --muted: #8a8474;
  --line: #e4ded1;
  --accent: #a07d2c;
  --accent-ink: #7a5e1f;
  --accent-soft: #f3ead3;
  --ivory: #f5f1e8;
  --card: #ffffff;
  --radius: 14px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { text-decoration: none; line-height: 1.15; }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 0.01em; }
.brand .tag { display: block; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  padding: 9px 14px; border-radius: 999px; color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 15px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-mark {
  position: absolute;
  right: -110px;
  top: 50%;
  transform: translateY(-50%);
  width: min(680px, 82vw);
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
/* hero portrait — replaces the watermark mark on the homepage */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(24,19,10,.45);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
/* clean sans headline for the logo hero — no stylized serif */
.hero-logo h1 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.032em;
  font-size: clamp(40px, 6.4vw, 82px);
}
.hero-dark {
  background: var(--ink-deep);
  color: var(--ivory);
  padding: 110px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-dark::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(1100px 480px at 85% -10%, rgba(160, 125, 44, 0.22), transparent 60%);
  pointer-events: none;
}
.hero-dark .wrap { position: relative; z-index: 1; }
.hero-dark .sub { color: #cfc8b8; }
.hero-dark .btn-solid { background: var(--accent); color: var(--ink-deep); }
.hero-dark .btn-solid:hover { background: #bd9440; }
.hero-dark .btn-ghost { border-color: rgba(245, 241, 232, 0.28); color: var(--ivory); }
.hero-dark .btn-ghost:hover { border-color: var(--ivory); background: rgba(245, 241, 232, 0.06); }
.hero .kicker {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1.02; letter-spacing: -0.015em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .sub { margin-top: 24px; font-size: 19px; color: var(--ink-soft); max-width: 56ch; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- sections ---------- */
section.block { padding: 56px 0; }
.section-head { margin-bottom: 36px; }
.section-head .eyebrow {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.01em; line-height: 1.1;
}
.section-head p.lede { margin-top: 12px; color: var(--ink-soft); max-width: 64ch; font-size: 18px; }

/* ---------- project cards ---------- */
.project {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px); margin-bottom: 32px;
  box-shadow: 0 1px 2px rgba(25, 23, 19, 0.04);
}
.project .client {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.project h3 { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; line-height: 1.2; }
.project .award {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 14px; margin-bottom: 16px;
}
.project p { color: var(--ink-soft); margin-bottom: 14px; max-width: 72ch; }
.project p:last-of-type { margin-bottom: 0; }

.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; margin: 22px 0 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.video-grid .video { margin: 0; }

.img-row { display: grid; gap: 18px; margin-top: 22px; }
.img-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.img-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.img-row figure { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.img-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.img-row figure:hover img { transform: scale(1.025); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.portrait { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.portrait img { width: 100%; }
.about-copy p { margin-bottom: 18px; color: var(--ink-soft); font-size: 18px; max-width: 62ch; }
.about-copy p strong { color: var(--ink); }
.fact-list { list-style: none; margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-list li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.fact-list li span:first-child { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }

/* ---------- CV ---------- */
.cv-section { margin-bottom: 48px; }
.cv-section > h2 {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 8px;
}
.job { padding: 22px 0; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.job .role { font-weight: 700; font-size: 18px; }
.job .where { color: var(--ink-soft); font-size: 15.5px; margin-top: 2px; }
.job .when {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase; margin-top: 8px;
}
.job ul { margin: 12px 0 0 20px; color: var(--ink-soft); font-size: 15.5px; }
.job ul li { margin-bottom: 5px; }
.job .clients { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.job .clients strong { color: var(--ink-soft); font-weight: 600; }
.edu { padding: 18px 0; border-bottom: 1px solid var(--line); }
.edu:last-child { border-bottom: 0; }
.edu .school { font-weight: 700; font-size: 17.5px; }
.edu .detail { color: var(--ink-soft); font-size: 15.5px; margin-top: 2px; }
.award-list { list-style: none; }
.award-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.award-list li:last-child { border-bottom: 0; }
.award-list .yr { font-weight: 700; color: var(--accent-ink); margin-right: 10px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-line { font-size: 18px; color: var(--ink-soft); margin-bottom: 10px; }
.contact-line a { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid #dcc98f; }
.contact-line a:hover { border-color: var(--accent-ink); }
.socials { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.socials a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 20px;
  transition: border-color 0.2s, background 0.2s;
}
.socials a:hover { border-color: var(--ink); background: var(--card); }
form.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 48px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .fbrand { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.foot .fbrand span { display: block; font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.foot small { color: var(--muted); font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid .portrait { max-width: 320px; }
  .img-row.cols-3 { grid-template-columns: 1fr; }
  .img-row.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 24px 20px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  header.site .wrap { position: relative; }
  .hero { padding: 64px 0 48px; }
  .form-row { grid-template-columns: 1fr; }
  .fact-list li { grid-template-columns: 1fr; gap: 4px; }
}
