/* ==========================================================================
   Jacob Perry — Portfolio
   Design tokens: orange + pink + Alba Super/Quicksand carried over from the
   original Figma file. Everything else (surfaces, shadows, spacing, the old
   green fill) reworked for a calmer, modern art-portfolio/professional feel.
   ========================================================================== */

@font-face {
  font-family: "Alba Super";
  src: url("../assets/fonts/ALBAS___.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color — orange + pink + green are all back, the original three from the
     Figma file. They now each do a specific job instead of green being a
     flat fill on every card: orange is the primary accent (headings, links,
     CTAs), pink is the header/nav accent plus a soft callout tint, and green
     marks the "visual work" side of the site (the homepage carousel, the
     images/videos galleries) and doubles as the success color on the
     contact form — distinct from the white/paper surfaces used for the
     product case studies. */
  --color-orange: #fa7c0c;
  --color-pink: #f7bcbc;
  --color-green: #aee69f;
  --color-ink: #201a14;
  --color-ink-soft: #4a3f36;

  --color-paper: #faf7f4;   /* page background — warm, gallery-wall white */
  --color-surface: #ffffff; /* card background — product/professional pages */
  --color-tint: #fdeeee;    /* soft pink wash — callouts, pills */
  --color-tint-green: #e3f2da; /* soft green wash — success state */
  --color-border: rgba(32, 26, 20, 0.1);
  --color-border-green: rgba(60, 110, 40, 0.28);

  /* kept for anything still reading --color-white (form fields, footer text) */
  --color-white: var(--color-paper);

  /* Shadow — soft, diffuse elevation instead of the old hard-offset drop shadow */
  --shadow-header: 0 10px 30px rgba(32, 26, 20, 0.14);
  --shadow-card: 0 6px 20px rgba(32, 26, 20, 0.08);
  --shadow-slide: 0 10px 28px rgba(32, 26, 20, 0.14);

  /* Radius */
  --radius-card: 20px;
  --radius-control: 12px;

  /* Type — unchanged: Alba Super display, Quicksand body */
  --font-display: "Alba Super", "Bubblegum Sans", cursive;
  --font-body: "Quicksand", sans-serif;

  /* Layout */
  --header-height: 157px;
  --content-max: 1440px;
  --content-pad: clamp(20px, 4vw, 180px);
  --section-gap: clamp(56px, 8vw, 120px);

  /* Motion — Kowalski-style strong easing curves, not the weak CSS defaults */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

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

/* Visible focus ring everywhere — quality floor, not optional */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: relative;
  background: var(--color-orange);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  box-shadow: var(--shadow-header);
  max-width: calc(var(--content-max) - 2 * var(--content-pad));
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  overflow: visible;
  z-index: 100;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 1.1em;
  text-decoration: none;
  line-height: 0.85;
  transform: translateX(12px);
}

.brand-name {
  font-family: var(--font-display);
  text-transform: lowercase;
  font-size: clamp(2.6rem, 8vw, 6.6rem);
  color: var(--color-pink);
  margin: 0 0 0 -35px;
  letter-spacing: 0.01em;
  transform: translateY(clamp(10px, 1.8vw, 24px));
}

.brand-tagline {
  font-family: var(--font-display);
  text-transform: lowercase;
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: var(--color-pink);
  margin: 0;
  transform: translateY(clamp(24px, 3vw, 40px));
}

/* Hamburger button */
.menu-toggle {
  position: relative;
  width: 64px;
  height: 56px;
  background: transparent;
  border: none;
  border-radius: var(--radius-control);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.menu-toggle .bar {
  width: 34px;
  height: 8px;
  background: var(--color-pink);
  border-radius: 30px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(16px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-16px) rotate(-45deg);
}

/* ==========================================================================
   Nav drawer
   ========================================================================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 26, 20, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 105;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 86vw);
  background: var(--color-surface);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 400ms var(--ease-drawer);
  z-index: 110;
  padding: calc(var(--header-height) - 40px) 40px 40px;
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-nav a {
  display: block;
  font-family: var(--font-display);
  text-transform: lowercase;
  font-size: 2rem;
  color: var(--color-orange);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), color 150ms ease;
}

/* Drawer is occasional (opened a handful of times per visit), so a short
   stagger on the links as it opens is in-budget delight, not noise. Only
   plays while the drawer is actually open — closed state stays instant. */
.site-nav.is-open li:nth-child(1) a { transition-delay: 60ms; }
.site-nav.is-open li:nth-child(2) a { transition-delay: 100ms; }
.site-nav.is-open li:nth-child(3) a { transition-delay: 140ms; }
.site-nav.is-open li:nth-child(4) a { transition-delay: 180ms; }
.site-nav.is-open li:nth-child(5) a { transition-delay: 220ms; }

.site-nav.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--color-pink);
}

/* ==========================================================================
   Hero / content card
   ========================================================================== */

.home-intro {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-gap) var(--content-pad) 32px;
}

.home-intro-kicker,
.featured-project-label {
  margin: 0 0 10px;
  color: var(--color-orange);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-orange);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.home-intro > p:not(.home-intro-kicker) {
  max-width: 650px;
  margin: 18px 0 20px;
  color: var(--color-ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.home-intro-link,
.featured-project-copy a {
  color: var(--color-orange);
  font-weight: 700;
  text-underline-offset: 4px;
  transition: opacity 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-intro-link:hover,
  .featured-project-copy a:hover {
    opacity: 0.7;
  }
}

.featured-project {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px var(--content-pad) var(--section-gap);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

/* Used for the homepage's "Visual work" block so it carries the same
   weight as the featured product case study — same card size, same
   type scale, same spacing. Reversed column order (copy first, image
   second) so the two blocks read as a pair, not a repeat. */
.featured-project.reverse {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.featured-project-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.featured-project-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* The screenshot links to the case study now (it used to just be decorative
   next to the "Read the case study" text link) — feedback: it should feel
   pressable like the rest of the featured-project block. */
@media (hover: hover) and (pointer: fine) {
  .featured-project-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(32, 26, 20, 0.16);
  }
}

.featured-project-image:focus-visible {
  transform: translateY(-4px);
}

.featured-project-image:active {
  transform: translateY(-1px) scale(0.99);
}

.featured-project-copy h2 {
  margin: 0;
  color: var(--color-orange);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.featured-project-copy > p:not(.featured-project-label) {
  margin: 16px 0 22px;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-card {
  position: relative;
  background: var(--color-green);
  border: 1px solid var(--color-border-green);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 40px);
  overflow: hidden;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 500ms var(--ease-in-out);
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-slide);
  border-radius: 4px;
}

.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.slider-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-ink);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .slider-arrow:hover {
    background: var(--color-surface);
    transform: scale(1.08);
  }
}

.slider-arrow:focus-visible {
  background: var(--color-surface);
  transform: scale(1.08);
}

.slider-arrow:active {
  transform: scale(0.95);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-orange);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}

.slider-dots button[aria-current="true"] {
  background: var(--color-orange);
}

/* ==========================================================================
   Gallery (Images page)
   ========================================================================== */

.gallery {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--content-pad) 120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.gallery-card {
  background: var(--color-green);
  border: 1px solid var(--color-border-green);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;

  /* Scroll-reveal: see .reveal-item below (shared with project/resume cards) */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.gallery-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-title {
  font-family: var(--font-display);
  text-transform: lowercase;
  color: var(--color-orange);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
}

.gallery-card-image {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-slide);
  border-radius: 4px;
  display: block;
}

.gallery-card-image video {
  width: 100%;
  height: auto;
  max-height: 720px;
  box-shadow: var(--shadow-slide);
  border-radius: 4px;
  display: block;
}

/* A gallery entry that's a small series (e.g. a pair of portraits) rather
   than a single image — same visual language as .gallery-card-image, laid
   out as a responsive grid instead of one frame. */
.gallery-card-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-card-images img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* matches the source photos — 4/3 here would crop their sides */
  object-fit: cover;
  box-shadow: var(--shadow-slide);
  border-radius: 4px;
  display: block;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-slide);
  border-radius: 4px;
}

.video-embed.vertical {
  aspect-ratio: 9 / 16;
  max-width: 405px;
  margin: 0 auto;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
  display: block;
}

.gallery-card-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-card-meta > div {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
}

.gallery-card-meta dt {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--color-ink-soft);
  min-width: 90px;
  flex-shrink: 0;
}

.gallery-card-meta dd {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  color: var(--color-ink);
}

.gallery-card-desc {
  flex-direction: column !important;
}

.gallery-card-desc dt {
  margin-bottom: 2px;
}

/* ==========================================================================
   Projects
   ========================================================================== */

.projects {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--content-pad) 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* Scroll-reveal on the card shell only — never on the prose inside it.
     These are dense case studies people read; the paragraphs stay put. */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card-title {
  font-family: var(--font-display);
  text-transform: lowercase;
  color: var(--color-orange);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0;
}

.project-card-subtitle {
  margin: -12px 0 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-ink-soft);
}

.project-card-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.project-card-meta > div {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
}

.project-card-meta dt {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--color-ink-soft);
}

.project-card-meta dd {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  color: var(--color-ink);
}

.project-card-summary {
  background: var(--color-tint);
  border: 1px solid rgba(250, 124, 12, 0.3);
  border-radius: var(--radius-control);
  padding: clamp(14px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card-summary-label {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.project-card-summary p:not(.project-card-summary-label) {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-section-title {
  font-family: var(--font-display);
  text-transform: lowercase;
  color: var(--color-orange);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin: 0;
}

.project-section-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-section-body p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.project-section-closing p {
  font-style: italic;
}

.project-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

.project-row.reverse {
  flex-direction: row-reverse;
}

.project-row-text,
.project-row-image {
  flex: 1 1 0;
  min-width: 0;
}

.project-row-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-row-text p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.project-row-image {
  border-radius: 8px;
  overflow: hidden;
}

.project-row-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-slide);
  border-radius: 4px;
}

.project-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.project-shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-slide);
}

/* ==========================================================================
   Resume (About page)
   ========================================================================== */

.resume {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--content-pad) 120px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.resume-block h2 {
  font-family: var(--font-display);
  text-transform: lowercase;
  color: var(--color-orange);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 20px;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  background: var(--color-tint);
  color: var(--color-ink);
  border: 1px solid rgba(250, 124, 12, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.resume-block > .resume-card + .resume-card {
  margin-top: 24px;
}

.resume-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 32px);

  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.resume-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.resume-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 14px;
}

.resume-card-header h3 {
  font-family: var(--font-display);
  text-transform: lowercase;
  color: var(--color-orange);
  font-size: 1.3rem;
  margin: 0;
}

.resume-card-meta {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

.resume-card ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-card li {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.skills-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skills-list dt {
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 4px;
}

.skills-list dd {
  margin: 0;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   Stub page content (Work / Studio / About / Contact)
   ========================================================================== */

.page-intro {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 70px var(--content-pad) 0;
}

.page-intro h1 {
  font-family: var(--font-display);
  text-transform: lowercase;
  color: var(--color-orange);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 0.3em;
}

.page-intro p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  max-width: 640px;
}

.placeholder-note {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius-control);
  background: var(--color-tint);
  border: 2px dashed rgba(250, 124, 12, 0.4);
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  max-width: 640px;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-form-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--content-pad) 120px;
}

/* Toast — success confirmation after the form posts. Fixed, bottom-center,
   enters/exits the same edge (translateY), ease rather than ease-out per
   the Sonner recipe: slightly slower and softer than standard UI motion so
   it reads as a considered moment, not a system beep. Transitions (not
   keyframes) so a second dismiss/re-show retargets smoothly instead of
   restarting. */
.form-status {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: var(--radius-control);
  background: var(--color-tint-green);
  border: 1px solid var(--color-border-green);
  box-shadow: var(--shadow-card);
  color: var(--color-ink-soft);
  font-weight: 600;

  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 100%);
  transition: opacity 400ms ease, transform 400ms ease;
}

.form-status.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.form-status-text {
  flex: 1;
}

.form-status-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--color-ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}

.form-status-close:hover,
.form-status-close:focus-visible {
  background: rgba(32, 26, 20, 0.08);
}

.form-status-close:active {
  transform: scale(0.9);
}

@media (prefers-reduced-motion: reduce) {
  .form-status {
    transform: translate(-50%, 0);
  }
}

.contact-form {
  max-width: 640px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 700;
  color: var(--color-orange);
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--color-orange);
}

.form-submit {
  align-self: flex-start;
  font-family: var(--font-display);
  text-transform: lowercase;
  font-size: 1.3rem;
  color: var(--color-surface);
  background: var(--color-orange);
  border: none;
  border-radius: var(--radius-control);
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .form-submit:hover {
    transform: scale(1.03);
  }
}

.form-submit:focus-visible {
  transform: scale(1.03);
}

.form-submit:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 30px var(--content-pad) 50px;
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  color: var(--color-orange);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .site-header {
    min-height: 120px;
    flex-wrap: wrap;
    padding: 20px clamp(16px, 3vw, 40px);
  }
}

@media (max-width: 560px) {
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

@media (max-width: 700px) {
  .featured-project,
  .featured-project.reverse {
    grid-template-columns: 1fr;
  }

  .project-row,
  .project-row.reverse {
    flex-direction: column;
    align-items: stretch;
  }
  .project-row-text,
  .project-row-image {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .resume-card-meta {
    white-space: normal;
  }
  .resume-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Below ~640px the brand lockup (name + tagline) no longer fits beside the
   hamburger on one line — stack it instead of letting it overlap the button. */
@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    transform: none;
  }

  .brand-name {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    margin: 0;
    transform: none;
  }

  .brand-tagline {
    font-size: 0.8rem;
    margin: 0;
    transform: none;
  }

  .menu-toggle {
    margin-top: 4px;
  }
}
