/* ==========================================================================
   Amy Stroud — portfolio
   Built from "Website designs.pdf"
   Palette + type lifted from the source file:
     green  #175F04   ink #231F20
     display  Oswald           ui  Montserrat
   ========================================================================== */

:root {
  --green: #175f04;
  --green-deep: #0f4002;
  --green-tint: #f1f6ef;
  --ink: #231f20;
  --paper: #ffffff;
  --muted: #6b7a67;
  --rule: #dfe7dc;

  --rail: clamp(190px, 19vw, 270px);
  --gutter: clamp(20px, 4vw, 64px);
  --measure: 34ch;
  /* space kept clear at the bottom-right for the floating resume character */
  --char-zone: clamp(120px, 17vw, 230px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* guard against the full-bleed hero's negative margins */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--green);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--green); color: #fff; }

/* visually hidden, still announced */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 2px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* ==========================================================================
   Left rail — logo + primary nav
   ========================================================================== */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(40px, 13vh, 120px);
  padding: clamp(24px, 3.4vw, 42px) 0 clamp(24px, 3vw, 40px) var(--gutter);
  background: var(--paper);
}

/* the bar dissolves on desktop so the logo joins the rail column directly */
.rail__bar { display: contents; }

.rail__logo {
  order: 0;
  display: inline-block;
  width: clamp(96px, 10vw, 140px);
  flex: none;
  margin-bottom: clamp(0px, 8vh, 90px);
}
.rail__logo img { width: 100%; }

/* The <nav> box is dissolved on desktop so its links become flex items of the
   rail itself. That lets the current page's <h1> sit in its own nav slot via
   `order`, instead of being duplicated as a separate heading. */
.rail__nav { display: contents; }

.rail__item {
  position: relative;
  margin: 0;
  text-decoration: none;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 2px 0;
}

.rail__slot-1 { order: 1; }
.rail__slot-2 { order: 2; }
.rail__slot-3 { order: 3; }

/* the flanking dots that mark the current page in the source design */
.rail__item::before,
.rail__item::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.rail__item::before { right: calc(100% + 9px); }
.rail__item::after { left: calc(100% + 9px); }

a.rail__item:hover::before,
a.rail__item:hover::after,
.rail__item[aria-current="page"]::before,
.rail__item[aria-current="page"]::after,
h1.rail__item::before,
h1.rail__item::after {
  transform: translateY(-50%) scale(1);
}

.rail__toggle { display: none; }


/* ==========================================================================
   Page shell
   ========================================================================== */
.main {
  margin-left: var(--rail);
  padding: 0 var(--gutter) clamp(80px, 12vh, 160px);
  /* short pages keep the footer + sprout garden within the first screen */
  min-height: calc(100svh - 280px);
}

.section { padding-top: clamp(48px, 9vh, 110px); }

/* ==========================================================================
   Home
   ========================================================================== */
.home {
  /* fill the (already-shortened) main; footer + garden sit just below */
  min-height: calc(100svh - 280px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 8vh, 96px);
  /* the quote sits inset from the rail, as in the source layout */
  padding-left: clamp(0px, 9vw, 150px);
}

.home__quote {
  margin: 0;
  max-width: min(100%, 60vw);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.home__cite {
  display: block;
  margin-top: clamp(18px, 3vh, 40px);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 2.3vw, 2.1rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ==========================================================================
   Shared headings
   ========================================================================== */
.eyebrow {
  margin: 0 0 clamp(28px, 5vh, 56px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.h-lead {
  margin: 0 0 clamp(24px, 4vh, 48px);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.h-block {
  margin: 0 0 14px;
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* ==========================================================================
   Work — alternating editorial rows
   ========================================================================== */
.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 10vh, 128px);
  padding-bottom: clamp(48px, 9vh, 110px);
}

.work-row {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  text-decoration: none;
  color: inherit;
}
.work-row:nth-child(even) { flex-direction: row-reverse; }

.work-row__media {
  flex: 1 1 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--green-tint);
}
.work-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.75s var(--ease);
}
.work-row:hover .work-row__media img,
.work-row:focus-visible .work-row__media img { transform: scale(1.05); }

.work-row__text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.work-row__num {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: clamp(10px, 1.6vh, 20px);
}
.work-row__title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}
.work-row__cats {
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.work-row__desc {
  max-width: 34ch;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 24px;
}
.work-row__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work-row__cta .arrow { transition: transform 0.3s var(--ease); }
.work-row:hover .work-row__cta .arrow,
.work-row:focus-visible .work-row__cta .arrow { transform: translateX(9px); }

/* ==========================================================================
   Project pages
   ========================================================================== */
.hero {
  position: relative;
  margin: 0 calc(var(--gutter) * -1) 0 calc(var(--gutter) * -1);
  overflow: hidden;
}
.hero img { width: 100%; }

.brief {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 52px);
  padding: clamp(40px, 7vh, 80px) 0 clamp(48px, 9vh, 110px);
  max-width: 860px;
}
.brief .h-block {
  margin: 0 0 clamp(10px, 1.5vh, 16px);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brief p {
  margin: 0 0 0.7em;
  max-width: none;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.5;
}
.brief p:last-child { margin-bottom: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}
.gallery--wide { grid-template-columns: 1fr; }

/* three small shots side by side — stays 3-across all the way down */
.gallery--trio {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 26px);
}

/* a tall portrait shot, reined in so it doesn't dominate the page */
.figure--portrait {
  margin: 0 auto;
  max-width: clamp(230px, 30vw, 380px);
}
.figure--portrait figcaption { text-align: center; }

/* a smaller figure centred on the content column — e.g. the Curl colour palette */
.figure--narrow {
  margin: 0 auto;
  justify-self: center;   /* centre within the grid column (aligns with the hero) */
  max-width: clamp(320px, 52vw, 620px);
}
.figure--narrow figcaption { text-align: center; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; }
.gallery figcaption {
  padding-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack > * + * { margin-top: clamp(16px, 2.2vw, 32px); }

/* "see it live" note beneath a project's gallery */
.live-link {
  margin: clamp(40px, 7vh, 72px) auto 0;
  max-width: 46ch;
  text-align: center;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.6;
}
.live-link a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--ease);
}
.live-link a:hover { background-size: 0% 1px; }

.next-project {
  display: flex;
  justify-content: center;
  padding-top: clamp(40px, 7vh, 84px);
}
.next-project a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.next-project .arrow { transition: transform 0.3s var(--ease); }
.next-project a:hover .arrow { transform: translateX(10px); }

/* ==========================================================================
   About — timeline
   ========================================================================== */
.timeline {
  --tl-pad-top: clamp(24px, 5vh, 56px);
  --tl-dot-mid: 11px;        /* dot is 13px tall, offset 4px from the item top */
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--tl-pad-top) 0 0;
  list-style: none;
}
/* the spine runs between the first and last dots, not past them */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--tl-pad-top) + var(--tl-dot-mid));
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--green);
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 clamp(24px, 3.5vw, 48px) clamp(40px, 6vh, 68px);
}
.tl-item::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
}

.tl-item--left { text-align: right; margin-right: 50%; }
.tl-item--left::after { right: -7px; }

.tl-item--right { text-align: left; margin-left: 50%; }
.tl-item--right::after { left: -7px; }

/* the spine stops at the final dot rather than running past it */
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before {
  content: "";
  position: absolute;
  top: var(--tl-dot-mid);
  bottom: -2px;
  width: 4px;
  background: var(--paper);
}
.tl-item--left:last-child::before { right: -3px; }
.tl-item--right:last-child::before { left: -3px; }

.tl-date {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.tl-body { margin: 0; font-size: 0.88rem; line-height: 1.6; }

.about-intro {
  max-width: 62ch;
  padding-bottom: clamp(24px, 5vh, 56px);
}
.about-intro p {
  margin: 0 0 1.1em;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(60px, 10vh, 120px);
}

.contact__mail {
  display: inline-block;
  width: fit-content;
  margin: 0 0 clamp(36px, 6vh, 64px);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 4.4vw, 3.4rem);
  line-height: 1.2;
  text-decoration: none;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
  word-break: break-word;
}
.contact__mail:hover { background-size: 100% 2px; }

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(28px, 4vw, 56px);
}
.contact__list a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease);
}
.contact__list a:hover { border-color: var(--green); }

.contact__note {
  margin: clamp(40px, 7vh, 80px) 0 0;
  max-width: 44ch;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   Sprout garden — a little row of sprouts growing up above the footer
   ========================================================================== */
.sprout-garden {
  display: flex;
  align-items: flex-end;      /* stems anchored to the ground, growing up */
  justify-content: space-between;   /* spread across the width */
  gap: clamp(8px, 2vw, 30px);
  margin-left: 0;             /* all the way to the left edge */
  padding: 0 var(--char-zone) 0 var(--gutter);  /* clear the character corner */
  position: relative;
  z-index: 101;              /* sits above the fixed rail */
  pointer-events: none;
}
.sprout-garden img {
  flex: 0 0 auto;
  width: clamp(20px, 2.4vw, 36px);
  height: auto;
  opacity: 0.9;
}
/* natural variety — a few taller, a few shorter, some mirrored */
.sprout-garden img:nth-child(2n) { width: clamp(28px, 3.4vw, 52px); transform: scaleX(-1); }
.sprout-garden img:nth-child(3n) { width: clamp(16px, 1.9vw, 28px); }
.sprout-garden img:nth-child(5n) { width: clamp(34px, 4.2vw, 60px); }
.sprout-garden img:nth-child(7n) { transform: scaleX(-1); }

@media (max-width: 560px) {
  /* thin the garden out so it doesn't crowd on small phones */
  .sprout-garden img:nth-child(2n) { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  /* spans the full page width, edge to edge (under the rail too) */
  margin-left: 0;
  padding: 28px var(--char-zone) 34px var(--gutter);  /* clear the character corner */
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 101;              /* sits above the fixed rail */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(20px, 3vw, 44px);
  justify-content: space-between;   /* spread across the width */
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot__social a {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.foot__social a:hover { color: var(--green); transform: translateY(-2px); }
.foot__social svg { width: 20px; height: 20px; display: block; }

/* ==========================================================================
   "Download Resume" corner CTA — Rive character, waves on hover (home + about)
   ========================================================================== */
.resume-dance {
  position: fixed;
  right: clamp(14px, 2.6vw, 40px);
  bottom: clamp(14px, 2.6vw, 40px);
  z-index: 102;
  width: clamp(104px, 12.5vw, 164px);
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
  /* gentle idle bob on the whole figure (moves as one piece) */
  animation: resume-bob 2.4s ease-in-out infinite;
  will-change: transform;
}
.resume-dance:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; border-radius: 6px; }

@keyframes resume-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Rive canvas (shown once the runtime loads) + static PNG fallback */
.resume-rive {
  display: none;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 627;
}
.resume-dance.rive-ready .resume-rive { display: block; }

.resume-fallback {
  display: block;
  width: 100%;
  height: auto;
}
.resume-dance.rive-ready .resume-fallback { display: none; }

@media (max-width: 860px) {
  .resume-dance { width: clamp(86px, 25vw, 124px); }
}

@media (prefers-reduced-motion: reduce) {
  .resume-dance { animation: none; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive — rail collapses to a top bar
   ========================================================================== */
/* narrower rail on small laptops / tablets so the content keeps its width */
@media (min-width: 861px) and (max-width: 1100px) {
  :root { --rail: 165px; }
  .rail__nav { gap: clamp(36px, 10vh, 80px); }
}

@media (max-width: 860px) {
  :root {
    --rail: 0px;
    --gutter: clamp(18px, 5vw, 32px);
  }

  /* Squeezed: the rail becomes a bar, and the page's <h1> — the same element
     that occupies a nav slot on desktop — drops below it as the page heading. */
  .rail {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--gutter);
  }

  .rail__bar {
    order: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .rail__logo { width: 84px; margin: 0; }

  .rail__toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 0;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .rail__toggle .bars {
    display: block;
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--green);
  }
  .rail__toggle .bars::before,
  .rail__toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--green);
    transition: transform 0.3s var(--ease);
  }
  .rail__toggle .bars::before { top: -6px; }
  .rail__toggle .bars::after { top: 6px; }
  .rail__toggle[aria-expanded="true"] .bars { background: transparent; }
  .rail__toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .rail__toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* menu panel sits in normal flow between the bar and the heading */
  .rail__nav {
    order: 5;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--rule);
  }
  .rail__nav.is-open { display: flex; }

  .rail__item { order: 0; padding: 14px 0; font-size: 15px; }
  .rail__item::before { display: none; }
  .rail__item::after { right: auto; left: calc(100% + 10px); }

  /* the h1 leaves the bar and reads as the page heading */
  .rail__title {
    order: 9;
    width: 100%;
    padding: clamp(30px, 7vh, 60px) 0 0;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--muted);
  }
  .rail__title::after { display: none; }

  /* the heading already provides the top spacing */
  .main > .section:first-child { padding-top: clamp(28px, 5vh, 48px); }

  .main, .foot { margin-left: 0; }
  .main { padding-bottom: clamp(56px, 10vh, 90px); }

  .home {
    min-height: calc(100svh - 180px);
    padding-left: 0;
    padding-block: clamp(48px, 9vh, 80px);
  }
  .home__quote { max-width: none; }

  /* heroes are wide crops — give them some height back on a narrow screen */
  .hero img {
    width: 100%;
    height: clamp(240px, 46svh, 400px);
    object-fit: cover;
  }

  /* editorial rows stack (image over text) on narrow screens */
  .work-list { gap: clamp(44px, 8vh, 64px); }
  .work-row,
  .work-row:nth-child(even) { flex-direction: column; align-items: stretch; }
  .work-row__media { aspect-ratio: 1 / 1; }
  .work-row__text { padding-top: 6px; }
  .card__meta { padding-top: 16px; }

  .brief { padding: clamp(28px, 5vh, 44px) 0 clamp(32px, 6vh, 56px); }
  .brief p { max-width: none; }

  .gallery { gap: 14px; }

  /* timeline stacks to a single left-hand spine */
  .timeline { --tl-pad-top: 8px; padding-block: var(--tl-pad-top) 0; }
  .timeline::before { left: 6px; }
  .tl-item {
    width: 100%;
    margin: 0;
    text-align: left;
    padding: 0 0 clamp(28px, 5vh, 40px) 32px;
  }
  .tl-item--left { text-align: left; margin-right: 0; }
  .tl-item--left::after,
  .tl-item--right::after { left: 0; right: auto; }
  .tl-item--left:last-child::before,
  .tl-item--right:last-child::before { left: 4px; right: auto; }

  .contact { min-height: 0; padding-block: clamp(24px, 6vh, 56px) clamp(40px, 8vh, 80px); }
  .contact__mail { hyphens: none; overflow-wrap: anywhere; }

  .foot { padding-block: 22px 26px; }
}

/* very small phones */
@media (max-width: 380px) {
  .rail__logo { width: 72px; }
  .rail__toggle span:not(.bars) { display: none; }
  .contact__mail { font-size: 1.35rem; }
}

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

@media print {
  .rail, .next-project { display: none; }
  .main, .foot { margin-left: 0; }
  .reveal { opacity: 1; transform: none; }
}

