/* Willa Barnett, professional portfolio v1
   Direction: warm editorial with tactile accents.
   Palette family: olive + brick + paper (accent locked to brick).
   Type: Cabinet Grotesk (display) + Satoshi (body), self-hosted. */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('assets/fonts/cabinet-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('assets/fonts/cabinet-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('assets/fonts/cabinet-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #efece3;
  --paper-deep: #e7e3d6;
  --ink: #23261d;
  --ink-soft: #4c4f42;
  --brick: #a8402c;
  --brick-dark: #8c3323;
  --olive-band: #262a1c;
  --band-text: #e9e6da;
  --band-soft: #b3b1a0;
  --hairline: rgba(35, 38, 29, 0.18);
  --radius: 4px;
  --font-display: 'Cabinet Grotesk', 'Avenir Next', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body { overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain: fixed, non-interactive, cheap */
.grain {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.nav-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.nav-links a:hover { border-color: var(--brick); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  text-wrap: balance;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero-ctas { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--brick); color: #f6f3ea; }
.btn-primary:hover { background: var(--brick-dark); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-photo { position: relative; justify-self: end; width: min(100%, 380px); }

/* Taped photo treatment: the one collage echo on the page */
.taped {
  position: relative;
  background: #fff;
  padding: 10px 10px 14px;
  box-shadow: 0 14px 30px rgba(45, 42, 30, 0.22);
  transform: rotate(-1.6deg);
}
.taped img { width: 100%; }
.taped::before, .taped::after {
  content: '';
  position: absolute;
  width: 88px; height: 26px;
  background: rgba(233, 226, 202, 0.75);
  box-shadow: 0 1px 2px rgba(45, 42, 30, 0.15);
  top: -12px;
}
.taped::before { left: -26px; transform: rotate(-38deg); }
.taped::after { right: -26px; transform: rotate(36deg); }
.taped figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: 10px;
  text-align: left;
}
.taped-alt { transform: rotate(1.1deg); }

/* Rubber-stamp mark */
.stamp {
  position: absolute;
  right: -8px; bottom: -30px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  border: 2.5px solid var(--brick);
  border-radius: 50%;
  width: 96px; height: 96px;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(9deg);
  opacity: 0.85;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0.55 0.85 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='96' height='96' fill='%23fff' filter='url(%23r)'/%3E%3C/svg%3E");
}

/* ---------- Clients ---------- */
.clients {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-deep);
}
.clients p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.3rem 1.5rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.clients strong { color: var(--ink); font-weight: 700; }

/* ---------- Work ---------- */
.work {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 2.8rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 64px; height: 5px;
  background: var(--brick);
  margin-top: 0.7rem;
}

.feature {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}
.feature-media { max-width: 560px; }
.role {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 0.5rem;
}
.feature h3, .work-item h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.for {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.feature p, .work-item p { color: var(--ink-soft); max-width: 58ch; }
.feature .role, .work-item .role { color: var(--brick); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 3rem;
}
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.work-item {
  border-top: 1px solid var(--hairline);
  padding: 2rem 0 2.4rem;
}
.work-stack .work-item + .work-item { margin-top: 0; }
.stat {
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}

/* ---------- Build band (single deliberate color block) ---------- */
.build {
  background: var(--olive-band);
  color: var(--band-text);
}
.build-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
.build h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.build-lede {
  margin-top: 1.1rem;
  max-width: 52ch;
  color: var(--band-soft);
  font-size: 1.1rem;
}
.build-cols {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.build-item h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.build-item p { color: var(--band-soft); max-width: 48ch; }
.tools {
  margin-top: 2.8rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tools li {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(233, 230, 218, 0.35);
  border-radius: 999px;
  color: var(--band-text);
}

/* ---------- About ---------- */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 4rem;
  align-items: center;
}
.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.4rem; }
.about h2::after {
  content: '';
  display: block;
  width: 64px; height: 5px;
  background: var(--brick);
  margin-top: 0.7rem;
}
.about-text p { color: var(--ink-soft); max-width: 58ch; }
.about-text p + p { margin-top: 1rem; }
.about-photo { justify-self: end; width: min(100%, 340px); transform: rotate(1.4deg); }

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid var(--hairline);
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: left;
}
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.email-big {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--brick);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.email-big:hover { color: var(--brick-dark); }
.resume-line { margin-top: 1.2rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 1.5rem;
  }
  .hero-photo { justify-self: start; width: min(78%, 320px); margin-left: 0.5rem; }
  .feature { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
  .feature-media { max-width: 480px; }
  .work-grid { grid-template-columns: 1fr; column-gap: 0; }
  .span-7, .span-5 { grid-column: auto; }
  .build-cols { grid-template-columns: 1fr; gap: 2rem; }
  .about { grid-template-columns: 1fr; gap: 3rem; padding: 3.5rem 1.5rem; }
  .about-photo { justify-self: start; width: min(78%, 320px); }
  .nav-links { gap: 1rem; }
}
@media (max-width: 480px) {
  .nav { flex-direction: row; flex-wrap: wrap; }
  .stamp { right: -6px; bottom: -20px; width: 84px; height: 84px; font-size: 0.74rem; }
}
