/* Departure Mono — self-hosted, SIL Open Font License. */
/* Download from https://departuremono.com and drop into /fonts/ */
@font-face {
  font-family: 'Departure Mono';
  src: url('../fonts/DepartureMono-Regular.woff2') format('woff2'),
       url('../fonts/DepartureMono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f1419;
  --ink-soft: #2c3137;
  --paper: #fafaf7;
  --paper-warm: #f2f1ec;
  --rule: #d8d4c8;
  --accent: #7a1f1f;
  --muted: #686259;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

.display-serif {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.display-serif em {
  font-style: italic;
  font-weight: 400;
  /* Fraunces italic has a distinct swashy character; nudge opsz a touch tighter and add slight softness */
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.015em;
}

.mono {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--ink);
}

/* Navigation */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav-bar.scrolled { border-color: var(--rule); }
.nav-bar .brand {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-bar .brand em { font-style: italic; font-weight: 400; color: var(--muted); }
.nav-links a {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  padding: 7rem 0 4rem;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(26,26,24,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 80% 20%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 80% 20%, black, transparent);
  pointer-events: none;
}
.hero-number {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 400;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-lede {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  max-width: 580px;
  color: var(--ink-soft);
}

/* Hero portrait — printed masthead card */
.hero-portrait {
  margin: 0;
  position: relative;
  max-width: 420px;
  margin-left: auto;
}

/* The plate holds the image plus decorative corner marks and a "Fig." tag,
   like an old contact sheet or a magazine masthead frame. */
.hero-portrait-plate {
  position: relative;
  padding: 1.25rem;
  background: var(--paper-warm);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.5s ease;
}
.hero-portrait:hover .hero-portrait-plate {
  transform: translateY(-4px);
  background: #ede7dc;
}

/* Corner ticks — echo film contact sheet registration marks */
.hero-portrait-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  transition: border-color 0.4s ease;
}
.hero-portrait-corner--tl { top: 6px; left: 6px; border-top-width: 1px; border-left-width: 1px; }
.hero-portrait-corner--tr { top: 6px; right: 6px; border-top-width: 1px; border-right-width: 1px; }
.hero-portrait-corner--bl { bottom: 6px; left: 6px; border-bottom-width: 1px; border-left-width: 1px; }
.hero-portrait-corner--br { bottom: 6px; right: 6px; border-bottom-width: 1px; border-right-width: 1px; }
.hero-portrait:hover .hero-portrait-corner { border-color: var(--ink); }

/* "Fig. 01" tag — printed metadata, top-right */
.hero-portrait-tag {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 2;
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(15, 20, 25, 0.65);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.55rem;
  transition: background 0.4s ease;
}
.hero-portrait:hover .hero-portrait-tag {
  background: var(--accent);
}

.hero-portrait picture {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
  aspect-ratio: 1 / 1;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 0.6s ease;
}
.hero-portrait:hover img {
  filter: saturate(1.08) contrast(1.05);
}
.hero-portrait picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(122, 31, 31, 0.08) 0%, transparent 40%, rgba(15, 20, 25, 0.05) 100%);
  pointer-events: none;
}

/* Caption below the plate — signature name + role metadata */
.hero-portrait-caption {
  margin-top: 1rem;
  padding: 0 0.25rem;
}
.hero-portrait-name {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-portrait-middle {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-portrait-meta {
  margin-top: 0.75rem;
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero-portrait-sep {
  color: var(--rule);
}

/* Responsive: below md, hero stacks and portrait becomes near-full-width */
@media (max-width: 991.98px) {
  .hero-portrait {
    max-width: 380px;
    margin: 3rem auto 0;
  }
  .hero-portrait-meta { justify-content: center; }
  .hero-portrait-caption { text-align: center; }
}
@media (max-width: 575.98px) {
  .hero-portrait { max-width: 320px; }
  .hero-portrait-plate { padding: 1rem; }
  .hero-portrait-tag { top: 1.5rem; right: 1.5rem; }
}
.hero-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.hero-meta div { min-width: 140px; }
.hero-meta .label {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.hero-meta .value {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--ink);
}

/* Sections */
section {
  padding: 4.5rem 0;
  position: relative;
}
.section-divider {
  height: 1px;
  background: var(--rule);
  margin: 0 auto;
}

/* About */
.about h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 300;
  margin-bottom: 2rem;
}
.about h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.about-body p {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
}
.about-body p em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15em;
  font-weight: 400;
  color: var(--ink);
}
.about-body p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--accent);
}
.about-aside {
  padding-left: 2rem;
  border-left: 1px solid var(--rule);
}
.about-aside .stat {
  margin-bottom: 1.75rem;
}
.about-aside .stat-number {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
}
.about-aside .stat-label {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Services */
.services { background: var(--paper-warm); }
.services h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.services h2 em { font-style: italic; font-weight: 400; color: var(--accent); }

.service-card {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 2.5rem;
  transition: padding-left 0.25s ease;
}
.service-card:last-child { border-bottom: 1px solid var(--rule); }
.service-card:hover { padding-left: 1rem; }
.service-card .num {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  font-feature-settings: "lnum";
}
.service-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.service-card h3 em { font-style: italic; color: var(--ink-soft); }
.service-card .tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0;
}
.service-card .body {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}
.service-card .body p {
  margin: 0;
}
.service-card .body ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.service-card .body li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
}
.service-card .body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.service-card .body .service-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--accent);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.service-card .body .service-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.service-card .body .receipts {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.service-card .body .receipts-label {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 0.5rem;
}
.service-card .body .receipts-label::after {
  content: " /";
  color: var(--rule);
}

@media (max-width: 767.98px) {
  .service-card { grid-template-columns: 1fr; gap: 1rem; }
  .service-card:hover { padding-left: 0; }
}

/* Work */
.work h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.work h2 em { font-style: italic; font-weight: 400; color: var(--accent); }

.project {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: baseline;
  transition: background 0.3s ease;
}
.project:last-child { border-bottom: 1px solid var(--rule); }
.project:hover { background: rgba(154, 52, 18, 0.03); }

.project .year {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.project .title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.project .title em { font-style: italic; color: var(--accent); }
.project .desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.project .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.project .tag {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.project .link {
  color: var(--accent);
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.project .link:hover { border-color: var(--accent); }
.project .link::after { content: " →"; }

/* Tier 1: Featured card — for the current role. Warm background wash, larger title,
   subtle inset padding so it visually lifts off the timeline. */
.project--featured {
  background: linear-gradient(180deg, var(--paper-warm) 0%, transparent 100%);
  padding: 2.5rem 1.5rem 2rem;
  margin: 0.5rem -1.5rem 0.5rem;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.project--featured:hover { background: linear-gradient(180deg, #ebe4d6 0%, transparent 100%); }
/* Kill the default border-top rule when it's the first .project after the h2 */
.project--featured + .project { border-top: 1px solid var(--rule); }

.project--featured .year {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.year-current {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 0.3rem 0.55rem;
  display: inline-block;
}
.year-range {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Larger title for featured — 2.15rem vs 1.5rem base */
.title--large {
  font-size: clamp(1.75rem, 2.5vw, 2.15rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.015em;
}

/* Tier 3: Condensed cards — smaller title, tighter padding, muted feel */
.project--condensed {
  padding: 1.2rem 0;
}
.project--condensed .desc {
  font-size: 0.9rem;
  color: var(--muted);
}
.project--condensed .desc em { font-style: italic; color: var(--ink-soft); }
.title--small {
  font-size: 1.15rem !important;
  margin-bottom: 0.25rem !important;
}

@media (max-width: 767.98px) {
  .project { grid-template-columns: 1fr; gap: 0.75rem; }
  .project .tags { justify-content: flex-start; }
  .project--featured {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .project--featured .year { flex-direction: row; align-items: center; }
}

/* Code section — repo cards in a 2-column grid */
.code {
  background: var(--paper-warm);
}
.code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.repo-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.repo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(15, 20, 25, 0.06);
}
.repo-header {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repo-owner { color: var(--muted); }
.repo-slash { color: var(--rule); margin: 0 0.15rem; }
.repo-name {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.25s ease;
}
.repo-card:hover .repo-name { color: var(--ink); }
.repo-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
  flex: 1;
}
.repo-desc em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink);
  font-size: 1.05em;
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.repo-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.repo-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.repo-tag {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.code-more {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}
.code-more-link {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.code-more-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (max-width: 767.98px) {
  .code-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(154, 52, 18, 0.25), transparent 60%);
  pointer-events: none;
}
.contact .section-label { color: rgba(245, 241, 234, 0.6); }
.contact .section-label::before { background: var(--paper); }
.contact h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--paper);
}
.contact h2 em { font-style: italic; font-weight: 400; color: #e8a87c; }

.contact-form label {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.6);
  display: block;
  margin-bottom: 0.5rem;
}
.contact-form .form-control,
.contact-form .form-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 241, 234, 0.3);
  border-radius: 0;
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
  box-shadow: none;
  transition: border-color 0.3s ease;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: transparent;
  color: var(--paper);
  border-color: #e8a87c;
  box-shadow: none;
  outline: none;
}
.contact-form .form-control::placeholder {
  color: rgba(245, 241, 234, 0.35);
  font-style: italic;
}
.contact-form .form-select option { background: var(--ink); color: var(--paper); }

.btn-send {
  background: var(--paper);
  color: var(--ink);
  border: none;
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}
.btn-send:hover {
  background: #e8a87c;
  color: var(--ink);
  transform: translateX(4px);
}

.contact-direct {
  padding-left: 3rem;
  border-left: 1px solid rgba(245, 241, 234, 0.2);
}
.contact-direct .label {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
  margin-bottom: 0.5rem;
}
.contact-direct .value {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: 1.25rem;
  display: block;
  text-decoration: none;
}
.contact-direct .value:hover { color: #e8a87c; }

@media (max-width: 767.98px) {
  .contact-direct { padding-left: 0; border-left: none; border-top: 1px solid rgba(245, 241, 234, 0.2); padding-top: 2.5rem; margin-top: 2rem; }
}

/* Instagram */
.instagram { background: var(--paper-warm); }
.instagram-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.instagram h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 300;
  margin: 0;
}
.instagram h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.instagram-follow {
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--accent);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.instagram-follow:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Behold widget — these CSS custom properties are honored by the widget */
behold-widget {
  --behold-row-gap: 1rem;
  --behold-column-gap: 1rem;
  --behold-border-radius: 0;
}

/* Footer */
footer {
  background: var(--ink);
  color: rgba(245, 241, 234, 0.55);
  padding: 3.5rem 0 3rem;
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(245, 241, 234, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-sig {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--paper);
  letter-spacing: 0;
  text-transform: none;
  position: relative;
  padding-top: 3.5rem;
}
.footer-mark {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2.5rem;
  font-style: italic;
  color: #e8a87c;
  line-height: 1;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: rgba(245, 241, 234, 0.7);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #e8a87c; }
.footer-colophon {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  text-transform: uppercase;
}
.footer-line { color: rgba(245, 241, 234, 0.55); }
.footer-line:first-child { color: rgba(245, 241, 234, 0.75); }

@media (max-width: 767.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-colophon { text-align: left; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }
.reveal-4 { animation-delay: 0.55s; }
.reveal-5 { animation-delay: 0.7s; }

/* Selection */
::selection { background: var(--accent); color: var(--paper); }

/* Pull quote — dark full-bleed moment between About and Services */
.quote-section {
  position: relative;
  padding: 7rem 0 6rem;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

/* Oversized ghost quotation mark, positioned as decorative element */
.quote-mark-bg {
  position: absolute;
  top: -3rem;
  left: -1.5rem;
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14rem, 25vw, 26rem);
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 0.6s ease, color 0.6s ease;
}
.quote-section:hover .quote-mark-bg {
  opacity: 0.32;
  color: #c05a3a;
}

.quote-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* Dinkus / asterism — small "pay attention" ornament above the quote */
.quote-dinkus {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2.25rem;
  letter-spacing: 0.3em;
  opacity: 0.85;
}

.quote-text {
  margin: 0 auto 3rem;
  padding: 0 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Setup line: quieter, roman, slightly smaller — carries the "wait for it" */
.quote-line--setup {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.quote-line--setup em {
  font-style: italic;
  color: #d4a373;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* Punchline: bigger, italic, warm accent — this is where the joke lives */
.quote-line--punch {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.quote-line--punch em {
  font-style: italic;
  color: #e8a87c;
  border-bottom: 2px solid rgba(232, 168, 124, 0.5);
  padding-bottom: 0.15rem;
  transition: border-color 0.5s ease, color 0.5s ease;
}
.quote-section:hover .quote-line--punch em {
  border-color: #e8a87c;
  color: #f0b98a;
}

/* Signature block — "bmg" as a scripty signature, tiny meta line below */
.quote-attr {
  text-align: center;
  padding-top: 2rem;
  position: relative;
}
.quote-attr::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(245, 241, 234, 0.3);
  margin: 0 auto 1.75rem;
}
.quote-signature {
  display: block;
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
  color: #e8a87c;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.quote-attr-meta {
  display: block;
  font-family: 'Departure Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
}

@media (max-width: 767.98px) {
  .quote-section { padding: 5rem 0 4rem; }
  .quote-mark-bg { top: -1.5rem; left: -0.5rem; font-size: 14rem; }
}
