:root {
  --ink: #f3eee5;
  --muted: #bcb8b3;
  --paper: #0d0e11;
  --white: #151b28;
  --line: #333641;
  --blue: #c6a98d;
  --pale: #151d2c;
  --display: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 "DM Sans", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 2px solid #c6a98d; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); line-height: 1; font-weight: 650; letter-spacing: -.055em; }
h2 { font-size: clamp(2.45rem, 5vw, 4.5rem); }
h3 { font-size: 1.22rem; line-height: 1.23; letter-spacing: -.035em; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-160%); background: var(--white); padding: 8px; z-index: 5; }
.skip:focus { transform: none; }

.site-header { background: #121a29; border-bottom: 1px solid var(--line); }
.nav, .footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nav { min-height: 76px; }
.nav a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 750; }
nav { display: flex; gap: clamp(14px, 2.3vw, 32px); font-size: .92rem; }

.hero { padding-block: clamp(54px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 5%; }
.eyebrow, .tag { color: var(--blue); font: 700 .72rem/1.5 var(--mono); letter-spacing: .08em; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
h1 { font-size: clamp(2.75rem, 6.5vw, 6rem); margin: .2em 0 .25em; }
.intro { max-width: 48ch; color: var(--muted); font-size: 1.06rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; font-weight: 700; text-decoration: none; font-size: .91rem; }
.primary { background: var(--blue); color: #171413; }
.primary:hover { background: #ddc4ab; color: #171413; }
.secondary { border-color: var(--line); }
.secondary:hover { border-color: var(--blue); }

.hero-art { color: #f3eee5; background-color: #111827; background-image: radial-gradient(#a9b1c33b 1px, transparent 1px); background-size: 17px 17px; border: 1px solid #343d51; }
.art-top, figcaption { padding: 12px 16px; background: #161f30; color: #dfd6ca; font: .72rem/1.55 var(--mono); }
.art-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #343d51; }
.hero-art svg { display: block; width: 100%; height: auto; }
figcaption { border-top: 1px solid #343d51; }
figcaption a:hover { color: #f3eee5; }

.section { padding-block: clamp(48px, 7vw, 86px); }
#work, #about { border-top: 1px solid var(--line); }
.section .eyebrow + h2 { margin-top: 10px; }
.lede { max-width: 60ch; margin-top: 14px; color: var(--muted); }
.projects, .services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.projects { gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project { background: var(--white); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px); }
.project.featured { scroll-margin-top: 22px; background: var(--pale); border-color: #4e4850; }
.project h3 { margin: 10px 0 9px; }
.project p:not(.tag), .services p, .services li, dd { color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 18px 0 0; padding: 0; }
.chips li { border: 1px solid #454c5b; padding: 1px 7px; font-size: .75rem; }
.tinted { background: var(--pale); border-block: 1px solid #333d51; }
.services { gap: 26px; }
.services article { display: flex; flex-direction: column; border-top: 1px solid #424b60; padding-top: 18px; }
.services p { margin-top: 9px; }
.services ul { padding-left: 19px; }
.services a { margin-top: auto; color: var(--blue); font-weight: 700; }

.podcast-empty { margin-top: 22px; color: var(--muted); padding: 13px 0 13px 16px; border-left: 2px solid var(--blue); }
.episode audio { display: block; width: 100%; margin-block: 14px; }
.about, .contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(22px, 7vw, 90px); align-items: start; }
.skills { border: 1px solid var(--line); padding: 24px; background: var(--white); }
#work .skills { margin-top: 24px; }
.skill-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 16px;
  align-items: start;
}
.skill-titles { display: flex; flex-direction: column; }
.skill-titles button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}
.skill-titles button::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: .65;
  transition: transform 220ms ease, opacity 180ms ease;
}
.skill-titles button:hover { background: #ffffff06; }
.skill-titles button:active { transform: translateX(2px); }
.skill-titles button[aria-expanded="true"] {
  color: var(--blue);
  background: #c6a98d0d;
  box-shadow: inset 2px 0 var(--blue);
}
.skill-titles button:hover::after,
.skill-titles button[aria-expanded="true"]::after { transform: translateX(3px) rotate(-45deg); opacity: 1; }
.skill-titles button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skill-content {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--muted);
  min-height: 240px;
}
.skill-content:not(:has(> div:not([hidden]))) { display: grid; place-items: center; }
.skill-content > div:not([hidden]) { animation: skill-reveal 260ms ease-out both; }
.skill-content h4 { margin: 0 0 12px; color: var(--ink); font-size: 1rem; font-weight: 600; }
.skill-placeholder { font-size: .92rem; color: var(--muted); text-align: center; }
.skill-content:has(> div:not([hidden])) .skill-placeholder { display: none; }
@keyframes skill-reveal {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.button { transition: transform 150ms ease, background-color 180ms ease, border-color 180ms ease; }
.button, .chips li { border-radius: 8px; }
.project, .skills, .hero-art { border-radius: 16px; }
.hero-art { overflow: hidden; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
nav a { transition: color 180ms ease; }
@media (max-width: 680px) {
  .skill-categories { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .skill-content { min-height: 0; padding: 16px; }
  .skill-content:not(:has(> div:not([hidden]))) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .skill-titles button, .skill-titles button::after, .button, nav a { transition: none; }
  .skill-content > div:not([hidden]) { animation: none; }
  .skill-titles button:active, .button:hover, .button:active { transform: none; }
}

dt { font-weight: 700; }
dd { margin: 0; }
.contact { background: #201a19; color: var(--ink); padding-block: 49px; }
.contact-grid { align-items: center; }
.contact .eyebrow { color: #c6a98d; margin-bottom: 8px; }
.contact p:not(.eyebrow) { color: #d8cbc0; margin-top: 12px; }
.contact .primary { background: #d3b79c; color: #171413; }
.contact .primary:hover { background: #e5cbb3; }
.contact-grid .actions { justify-content: flex-end; margin-top: 0; }
.contact-grid > .actions { grid-column: 2; grid-row: 1; }
.contact-grid { row-gap: 14px; }
.contact-acceptance {
  grid-column: 1;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #d8cbc0;
  font-size: .83rem;
  line-height: 1.65;
}
.contact-acceptance input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #d3b79c;
  cursor: pointer;
}
.contact-acceptance label { cursor: pointer; }
.contact-acceptance a { text-decoration: underline; }
.contact-acceptance input:focus-visible { outline: 2px solid #c6a98d; outline-offset: 4px; }
.contact-email[hidden] { display: none; }
.contact-email:not([hidden]) { animation: contact-email-reveal 200ms ease-out; }
@keyframes contact-email-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-email:not([hidden]) { animation: none; }
}
@media (max-width: 680px) {
  .contact-acceptance { grid-row: 2; }
  .contact-grid > .actions { grid-column: 1; grid-row: 3; }
  .contact-grid > .actions:not(:has(.contact-email:not([hidden]))) { display: none; }
}
.footer { border-top: 1px solid var(--line); padding-block: 15px; color: var(--muted); font-size: .83rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .nav { flex-wrap: wrap; gap: 8px 18px; padding-block: 13px; }
  .nav nav { order: 3; width: 100%; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-header .brand { width: 100%; justify-content: center; text-align: center; }
  .hero-grid, .about, .contact-grid, .services { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 28px; }
  .hero-art { max-width: 490px; }
  .nav a, nav a { display: inline-flex; align-items: center; min-height: 40px; }
  .contact-grid .actions { justify-content: flex-start; }
}
@media (max-width: 440px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  nav { gap: 7px 15px; }
  .brand { font-size: .82rem; }
  h1 { font-size: clamp(2.35rem, 10.4vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.about {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
  grid-template-areas: "copy portrait";
  gap: 28px clamp(28px, 6vw, 82px);
}
.about-copy { grid-area: copy; }
.about-portrait {
  grid-area: portrait;
  width: min(100%, 410px);
  justify-self: end;
  border: 0;
  background: transparent;
}
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
  mask-composite: intersect;
}
@media (max-width: 680px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "portrait";
  }
  .about-portrait { justify-self: start; width: min(100%, 340px); }
}

.portfolio-title { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; }

.closing-quote {
  margin-inline: auto;
  padding-block: clamp(36px, 7vw, 70px);
  text-align: center;
}
.closing-quote blockquote {
  max-width: 34ch;
  margin: 0 auto;
  color: #E8E1D5;
  font: italic 500 clamp(28px, 3.2vw, 44px)/1.35 "Cormorant Garamond", Georgia, serif;
  text-wrap: balance;
}
.closing-quote figcaption {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #A59F96;
  font: 500 12px/1.5 "Inter", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
