:root {
  --cream: #f4ebe4;
  --paper: #fffaf6;
  --ink: #3b2930;
  --muted: #72545a;
  --plum: #7a334d;
  --plum-deep: #4b2034;
  --clay: #c78170;
  --blush: #e6d2c7;
  --sage: #9fa98e;
  --sage-deep: #65705e;
  --line: rgba(59, 41, 48, .18);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 92% 5%, rgba(230, 210, 199, .42), transparent 28rem), var(--cream);
  font: 400 16px/1.65 var(--sans);
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; color: var(--paper); background: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

.site-header { width: min(1240px, calc(100% - 48px)); height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; }
.brand { color: var(--ink); font: 400 1.4rem/1 var(--serif); letter-spacing: -.035em; text-decoration: none; }
.brand em { color: var(--plum); font-style: italic; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { font-size: .88rem; font-weight: 600; text-decoration: none; }
nav a:not(.nav-contact) { position: relative; }
nav a:not(.nav-contact)::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: currentColor; transition: width .2s ease; }
nav a:hover::after { width: 100%; }
.nav-contact { color: var(--paper); background: var(--plum); padding: .7rem 1.05rem; border-radius: 100px; transition: background .2s ease, transform .2s ease; }
.nav-contact:hover { background: var(--plum-deep); transform: translateY(-1px); }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px; border: 0; color: var(--ink); background: transparent; }
.menu-button > span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 5px 0; background: currentColor; }

.hero { width: min(1240px, calc(100% - 48px)); min-height: calc(100vh - 92px); margin: 0 auto; display: grid; grid-template-columns: 1.08fr .82fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); padding: 4rem 0 7rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.5rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { width: 26px; height: 1px; background: currentColor; }
h1 { max-width: 760px; margin-bottom: 2rem; font: 400 clamp(3.25rem, 6.7vw, 6.55rem)/.98 var(--serif); letter-spacing: -.052em; }
h1 em { color: var(--plum); font-style: italic; }
.hero-intro { max-width: 610px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.23rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 178px; gap: 2.4rem; padding: .86rem 1.1rem; border-radius: 2px; font-size: .86rem; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--plum); }
.button-primary:hover { background: var(--plum-deep); }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark:hover { background: var(--plum-deep); }
.text-link { font-size: .9rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.hero-portrait { position: relative; width: min(100%, 500px); justify-self: end; }
.portrait-frame { position: relative; aspect-ratio: .84; overflow: hidden; border-radius: 45% 45% 4px 4px; background: #d6ccca; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(59, 41, 48, .09); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.1); }
.portrait-note { position: absolute; z-index: 1; left: -2rem; bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--paper); box-shadow: 0 14px 40px rgba(75, 32, 52, .14); }
.portrait-note span { display: block; margin-bottom: .2rem; color: var(--plum); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.portrait-note strong { font: 400 .92rem/1.35 var(--serif); }

.statement { color: var(--paper); background: linear-gradient(115deg, var(--plum-deep), #692c48 56%, var(--plum-deep)); padding: clamp(5rem, 10vw, 9.5rem) max(24px, calc((100vw - 1030px) / 2)); }
.statement figure { margin: 0 auto; max-width: 1050px; text-align: center; }
.statement blockquote { margin: 0; font: 400 clamp(2.1rem, 4.35vw, 4.2rem)/1.16 var(--serif); letter-spacing: -.035em; }
.statement blockquote::before { content: "“"; color: var(--clay); }
.statement blockquote::after { content: "”"; color: var(--clay); }
.statement figcaption { margin-top: 1.25rem; color: #e5c8be; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: clamp(6rem, 11vw, 10rem) 0; }
.section-heading { max-width: 735px; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
h2 { margin-bottom: 1.5rem; font: 400 clamp(2.65rem, 5vw, 5rem)/1.05 var(--serif); letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 625px; color: var(--muted); font-size: 1.05rem; }

.project { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.project-featured { display: grid; grid-template-columns: 1.22fr .88fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.project-meta span:first-child { color: var(--plum); font-weight: 600; }
.project h3 { margin-bottom: 1rem; font: 400 clamp(2rem, 3.8vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.035em; }
.project-copy > p { color: var(--muted); }
.project-copy .project-lead { color: var(--ink); font-size: 1.08rem; }
.project-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.7rem 0; }
.project-detail-grid > div { min-height: 118px; padding: .95rem 1rem; border-left: 1px solid var(--clay); background: rgba(255, 250, 246, .46); }
.project-detail-grid span { display: block; margin-bottom: .45rem; color: var(--plum); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.project-detail-grid p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.tags li { padding: .34rem .66rem; border: 1px solid var(--line); border-radius: 100px; font-size: .78rem; }
.project-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.3rem; margin-top: 2rem; }

.project-visual { position: relative; display: grid; min-height: 470px; place-items: center; margin: 0; padding: clamp(1rem, 3vw, 2.4rem); overflow: hidden; background: #dac7bd; }
.focusflow-visual::before { content: ""; position: absolute; inset: 0; opacity: .55; background: linear-gradient(135deg, transparent 36%, rgba(255, 250, 246, .42)); }
.project-stamp { position: absolute; z-index: 2; top: 1rem; left: 1rem; padding: .36rem .65rem; color: var(--plum-deep); border: 1px solid rgba(75, 32, 52, .26); background: rgba(255, 250, 246, .76); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.focusflow-shot { position: relative; z-index: 1; width: min(100%, 720px); overflow: hidden; box-shadow: 0 30px 55px rgba(72, 42, 43, .22); transform: rotate(-1.6deg); }
.focusflow-shot img { width: 100%; height: auto; }
.project-visual figcaption { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; color: rgba(75, 32, 52, .86); font-size: .75rem; letter-spacing: .04em; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem) 2.5rem; margin-top: clamp(4rem, 8vw, 8rem); }
.project-card p { color: var(--muted); }
.project-card h3 { font-size: clamp(2rem, 3vw, 3rem); }
.project-note-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 310px; margin-bottom: 1.5rem; padding: 1.5rem; color: var(--paper); }
.project-note-card span, .project-note-card small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.project-note-card span { margin-bottom: auto; }
.project-note-card strong { margin-bottom: .75rem; font: 400 clamp(2.1rem, 4vw, 3.4rem)/.97 var(--serif); letter-spacing: -.04em; }
.project-note-card small { color: rgba(255, 250, 246, .8); }
.beetroot-note { background: linear-gradient(130deg, var(--plum), #a85368); }
.surfsense-media { position: relative; display: block; padding: 0; overflow: hidden; background: var(--sage); }
.surfsense-media img { width: 100%; height: 310px; object-fit: cover; object-position: center top; transition: transform .45s ease; }
.surfsense-media figcaption { position: absolute; right: .8rem; bottom: .8rem; padding: .35rem .55rem; color: var(--paper); background: rgba(38, 66, 67, .82); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.project-card:hover .surfsense-media img { transform: scale(1.018); }
.project-card-wide { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; padding-bottom: 1.5rem; }
.project-card-wide > div { max-width: 760px; }

.about { display: grid; grid-template-columns: .65fr 1.35fr; gap: 5rem; border-top: 1px solid var(--line); }
.about-copy h2 { max-width: 850px; }
.about-copy > p { max-width: 780px; color: var(--muted); font-size: 1.08rem; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about-facts span { display: block; margin-bottom: .35rem; color: var(--plum); font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.about-facts strong { font-size: .83rem; }

.skills { border-top: 1px solid var(--line); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.skill-group { min-height: 250px; padding: 1.7rem 2rem 1rem 0; border-right: 1px solid var(--line); }
.skill-group + .skill-group { padding-left: 2rem; }
.skill-group:last-child { border-right: 0; }
.skill-number { color: var(--plum); font-size: .75rem; }
.skill-group h3 { margin: 3rem 0 .7rem; font: 400 1.7rem var(--serif); }
.skill-group p { color: var(--muted); }

.contact { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 5rem; width: 100%; max-width: none; margin: 0; padding: clamp(5rem, 10vw, 9rem) max(24px, calc((100vw - 1180px) / 2)); color: var(--paper); background: var(--plum-deep); }
.contact h2 { max-width: 790px; margin-bottom: 1rem; }
.contact-copy > p:last-child { color: #dfc8c3; }
.eyebrow.light { color: #e3ad9c; }
.contact-actions { display: flex; flex-direction: column; }
.contact-actions a { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: .9rem; text-decoration: none; transition: padding .2s ease; }
.contact-actions a:hover { padding-left: .5rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem max(24px, calc((100vw - 1180px) / 2)); color: #d8bfc1; border-top: 1px solid rgba(255, 255, 255, .16); background: var(--plum-deep); font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { width: min(100% - 36px, 1240px); height: 76px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 76px; right: -18px; left: -18px; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.5rem 18px 2rem; border-bottom: 1px solid var(--line); background: var(--cream); }
  nav.open { display: flex; }
  .nav-contact { margin-top: .4rem; text-align: center; }
  .hero { width: calc(100% - 36px); min-height: auto; grid-template-columns: 1fr; padding-top: 4.5rem; }
  .hero-portrait { width: min(88%, 500px); margin-top: 1rem; justify-self: center; }
  .project-featured, .about, .contact { grid-template-columns: 1fr; }
  .project-featured { gap: 2.5rem; }
  .about, .contact { gap: 2rem; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .section { width: calc(100% - 36px); }
  .hero-actions { gap: 1.2rem; }
  .portrait-note { left: -10px; bottom: 1rem; }
  .project-visual { min-height: 315px; padding: .9rem; }
  .focusflow-shot { width: 112%; transform: rotate(-1deg); }
  .project-visual figcaption { display: none; }
  .project-detail-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-wide { display: block; grid-column: auto; }
  .project-card-wide .text-link { display: inline-block; margin-top: 1rem; }
  .project-note-card { min-height: 260px; }
  .surfsense-media img { height: 260px; }
  .about-facts, .skills-grid { grid-template-columns: 1fr; }
  .about-facts { gap: 1.2rem; }
  .skill-group, .skill-group + .skill-group { min-height: auto; padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .skill-group h3 { margin-top: 1.7rem; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
