:root {
  --orange: #e74010;
  --ink: #11100f;
  --paper: #ffffff;
  --white: #ffffff;
  --sans: 'Inter', Arial, Helvetica, sans-serif;
  --pad: clamp(18px, 2.1vw, 34px);
  --ease: cubic-bezier(.77,0,.18,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #fff; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad);
  pointer-events: none;
  isolation: isolate;
}
.site-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 58px);
  background: linear-gradient(to bottom, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 42%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.header-scrolled .site-header::before { opacity: 1; }
.menu-open .site-header::before { opacity: 0; }
.site-header > * { pointer-events: auto; }
.mini-mark { display: block; width: clamp(118px, 9.5vw, 160px); line-height: 0; transition: filter .3s ease, opacity .3s ease; }
.mini-mark img { width: 100%; height: auto; }
.menu-open .mini-mark { filter: brightness(0) invert(1); }

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 1.5px;
  background: var(--orange);
  transform-origin: center;
  transition: transform .55s var(--ease), top .55s var(--ease), background .25s ease;
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span { background: #000; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.intro-curtain,
.menu-panel { position: fixed; inset: 0; background: var(--orange); }
.intro-curtain { z-index: 100; transform: translate3d(0,0,0); transition: transform .95s var(--ease); }
.intro-leave .intro-curtain { transform: translate3d(0,-102%,0); }

/* A028 wordmark rendered as vector outlines extracted from the portfolio. */
.hero-wordmark {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 50%;
  width: min(88vw, 1420px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: var(--orange);
}
.hero-wordmark svg { display: block; width: 100%; height: auto; overflow: visible; fill: currentColor; }
.hero-letter {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translate3d(0, 145%, 0);
}
.intro-type .hero-letter {
  opacity: 1;
  transform: translate3d(0,0,0);
  transition: transform .92s var(--ease), opacity .18s ease;
  transition-delay: calc(42ms * var(--letter-i));
}

.gallery-stage {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  background: #fff;
}
.is-dragging .gallery-stage { cursor: grabbing; }
.gallery-row {
  position: absolute;
  left: 0;
  width: 100%;
  height: 56vh;
  overflow: visible;
  pointer-events: none;
}
.gallery-row--back { top: -2vh; }
.gallery-row--front { bottom: -3vh; }
.gallery-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(48px, 5.4vw, 108px);
  padding-left: 18vw;
  will-change: transform;
  opacity: 0;
  transition: opacity 1s ease .2s;
  pointer-events: none;
}
.gallery-track--under { z-index: 6; }
.gallery-track--over { z-index: 14; }
.gallery-row--front .gallery-track { padding-left: 4vw; gap: clamp(56px, 6.2vw, 126px); }
.intro-gallery .gallery-track { opacity: 1; }
.gallery-item {
  position: relative;
  flex: 0 0 auto;
  display: block;
  z-index: 2;
  transform: translateY(var(--item-y, 0));
  pointer-events: auto;
}
.gallery-item.is-placeholder { visibility: hidden; pointer-events: none; }
.gallery-item.is-xxs { width: clamp(56px, 5vw, 88px); }
.gallery-item.is-xs  { width: clamp(78px, 7vw, 118px); }
.gallery-item.is-sm  { width: clamp(112px, 10.5vw, 172px); }
.gallery-item.is-md  { width: clamp(155px, 15vw, 250px); }
.gallery-item.is-lg  { width: clamp(215px, 21vw, 360px); }
.gallery-item.is-xl  { width: clamp(275px, 29vw, 475px); }
.gallery-item.is-xxl { width: clamp(325px, 38vw, 620px); }
.gallery-image-frame {
  display: block;
  overflow: hidden;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(var(--ms, 1));
  transition: transform .48s cubic-bezier(.2,.8,.2,1), filter .45s ease;
  will-change: transform;
}
.gallery-item img {
  width: 100%;
  height: auto;
  max-height: 56vh;
  object-fit: contain;
  transition: filter .4s ease, opacity .4s ease;
}
.gallery-row:hover .gallery-item:not(:hover) img { filter: saturate(.92); }
.gallery-item:hover { z-index: 9; }
.gallery-hint {
  position: fixed;
  left: var(--pad);
  bottom: var(--pad);
  z-index: 24;
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .45;
  transition: opacity .8s ease 1.4s, transform .8s ease 1.4s;
}
.is-loading .gallery-hint { opacity: 0; transform: translateY(16px); }

/* Full-screen menu */
.menu-panel {
  z-index: 60;
  transform: translate3d(0,102%,0);
  transition: transform .78s var(--ease), visibility 0s linear .78s;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(88px, 11vh, 140px) var(--pad) var(--pad);
  visibility: hidden;
  overflow: hidden;
}
.menu-open .menu-panel {
  transform: translate3d(0,0,0);
  visibility: visible;
  transition: transform .78s var(--ease), visibility 0s linear 0s;
}
.menu-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.menu-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(231,64,16,.13);
}
.menu-preview img {
  width: min(28vw, 420px);
  height: min(50vh, 560px);
  object-fit: contain;
  opacity: 0;
  transform: scale(.965);
  transition: opacity .36s ease, transform .6s var(--ease);
  mix-blend-mode: multiply;
}
.menu-preview.is-visible img { opacity: .78; transform: scale(1); }
.menu-nav,
.menu-meta { position: relative; z-index: 2; }
.menu-nav { display: flex; flex-direction: column; align-items: flex-start; }
.menu-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(86px, 13vw, 220px);
  line-height: .82;
  letter-spacing: -.075em;
  transition: opacity .2s ease, transform .38s var(--ease);
}
.menu-nav a:hover { opacity: .96; transform: translateX(13px); }
.menu-contact-block h3 {
  margin: 0 0 18px;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.04em;
}
.menu-contact {
  display: flex;
  gap: clamp(18px, 3vw, 54px);
  flex-wrap: wrap;
  align-items: baseline;
  font-size: clamp(18px, 1.8vw, 31px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.menu-contact a { border-bottom: 1px solid rgba(255,255,255,.72); padding-bottom: 5px; }
.menu-meta {
  display: grid;
  gap: clamp(22px, 2.5vh, 38px);
}
.menu-portfolio-block h3 { margin-top: 0; }
.menu-legal {
  margin-top: clamp(2px, .6vh, 8px);
}
.menu-legal a {
  display: inline-block;
  font-size: clamp(12px, .9vw, 15px);
  line-height: 1.2;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.72);
  padding-bottom: 3px;
  opacity: .82;
  transition: opacity .2s ease;
}
.menu-legal a:hover { opacity: 1; }


/* Legal & Privacy */
.legal-main {
  min-height: 100vh;
  padding: clamp(120px, 14vw, 190px) var(--pad) clamp(80px, 10vw, 150px);
}
.legal-layout {
  max-width: 940px;
}
.legal-layout .page-title { margin-bottom: clamp(48px, 7vw, 96px); }
.legal-section {
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid rgba(17,16,15,.16);
}
.legal-section h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.legal-section p {
  max-width: 760px;
  margin: 0 0 1em;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.5;
  letter-spacing: -.015em;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-updated {
  margin-top: 28px;
  font-size: 13px;
  opacity: .55;
}

/* About */
.about-main {
  min-height: 100vh;
  padding: clamp(120px, 14vw, 190px) var(--pad) clamp(80px, 10vw, 150px);
}
.about-heading { margin-bottom: clamp(44px, 6vw, 90px); }
.page-title {
  margin: 0;
  font-size: clamp(72px, 11vw, 190px);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 500;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
  gap: clamp(46px, 8vw, 150px);
  align-items: start;
  max-width: 1500px;
}
.about-image {
  margin: 0;
  width: min(100%, 610px);
  position: sticky;
  top: 120px;
}
.about-image img { width: 100%; height: auto; }
.about-copy { max-width: 860px; }
.about-lead {
  margin: 0 0 clamp(42px, 6vw, 82px);
  font-size: clamp(31px, 4vw, 62px);
  line-height: 1.03;
  letter-spacing: -.055em;
}
.about-body {
  display: grid;
  gap: 1.25em;
  max-width: 760px;
}
.about-body p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.48;
  letter-spacing: -.02em;
}
.about-facts {
  margin-top: clamp(58px, 8vw, 110px);
  border-top: 1px solid rgba(17,16,15,.2);
  padding-top: 20px;
  max-width: 760px;
}
.about-facts h2 {
  margin: 0 0 28px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.about-facts ul { list-style: none; margin: 0; padding: 0; }
.about-facts li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17,16,15,.12);
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.35;
}
.about-facts li span { color: var(--orange); white-space: nowrap; }
.turtle-note {
  margin: clamp(56px, 8vw, 110px) 0 0;
  color: var(--orange);
  font-size: clamp(30px, 4vw, 62px);
  line-height: 1;
  letter-spacing: -.055em;
}

@media (max-width: 900px) {
  .hero-wordmark { width: 94vw; }
  .gallery-row { height: 52vh; }
  .gallery-row--back { top: 2vh; }
  .gallery-row--front { bottom: 1vh; }
  .gallery-item.is-xxl { width: min(60vw, 520px); }
  .gallery-item.is-xl { width: min(46vw, 410px); }
  .gallery-item img { max-height: 49vh; }
  .menu-nav a { font-size: clamp(72px, 18vw, 140px); }
  .menu-contact { font-size: clamp(17px, 3.3vw, 26px); }
  .menu-preview img { width: min(42vw, 360px); height: 48vh; }
  .about-layout { grid-template-columns: 1fr; }
  .about-image { position: static; width: min(68vw, 560px); }
}

@media (max-width: 560px) {
  .site-header { padding: 16px; }
  .mini-mark { width: 112px; }
  .gallery-hint { display: none; }
  .gallery-track { gap: 42px; padding-left: 8vw; }
  .gallery-row--front .gallery-track { gap: 48px; }
  .gallery-item.is-xxs { width: 52px; }
  .gallery-item.is-xs { width: 70px; }
  .gallery-item.is-sm { width: 104px; }
  .gallery-item.is-md { width: 148px; }
  .gallery-item.is-lg { width: 195px; }
  .gallery-item.is-xl { width: 245px; }
  .gallery-item.is-xxl { width: 300px; }
  .menu-panel { padding: 92px 16px 18px; }
  .menu-nav a { font-size: clamp(72px, 21vw, 104px); line-height: .9; letter-spacing: -.07em; }
  .menu-contact-block h3 { margin-bottom: 14px; font-size: 22px; }
  .menu-contact { display: grid; gap: 13px; font-size: 18px; }
  .menu-preview img { opacity: 0 !important; }
  .about-main { padding: 112px 16px 72px; }
  .page-title { font-size: clamp(62px, 19vw, 96px); }
  .about-image { width: 78vw; }
  .about-lead { font-size: clamp(30px, 9vw, 46px); }
  .about-facts li { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .intro-curtain { display: none; }
  .hero-letter { opacity: 1 !important; transform: none !important; }
  .gallery-track { opacity: 1 !important; }
}

.turtle-note a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.turtle-note a:hover { opacity: .78; }
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
  text-decoration-color: rgba(17,16,15,.45);
}
.text-link:hover { color: var(--orange); text-decoration-color: currentColor; }
.turtle-note a.has-gif-cursor { cursor: none; }
.turtle-gif-cursor {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: clamp(110px, 10vw, 156px);
  pointer-events: none;
  opacity: 0;
  transform: translate(18px, 18px) scale(.92);
  transition: opacity .12s ease, transform .18s ease;
}
.turtle-gif-cursor.is-visible { opacity: 1; transform: translate(18px, 18px) scale(1); }
.turtle-gif-cursor img { width: 100%; height: auto; border-radius: 3px; }

.not-found-main {
  min-height: 100vh;
  padding: clamp(120px, 14vw, 190px) var(--pad) clamp(80px, 10vw, 150px);
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(280px, .8fr);
  gap: clamp(38px, 7vw, 120px);
  align-items: center;
}
.not-found-copy {
  margin: 18px 0 28px;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.18;
  letter-spacing: -.03em;
  max-width: 18ch;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-bottom: 18px;
}
.not-found-link {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -.03em;
  border-bottom: 1px solid rgba(17,16,15,.6);
  padding-bottom: 4px;
}
.not-found-figure {
  margin: 0;
  justify-self: end;
  width: min(100%, 520px);
}
.not-found-figure img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .not-found-main { grid-template-columns: 1fr; }
  .not-found-figure { justify-self: start; width: min(72vw, 420px); }
}

@media (max-width: 560px) {
  .not-found-main { padding: 112px 16px 72px; }
}

/* Mobile gallery gesture polish: native vertical gestures remain available,
   while horizontal dragging is handled by the inertial rail physics in JS. */
.gallery-stage {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-x: none;
}

/* Password gate for the downloadable portfolio. The password itself is checked
   server-side by a Netlify Function and is never embedded in the client code. */
.portfolio-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.portfolio-gate.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.portfolio-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .34);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.portfolio-gate__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  padding: clamp(28px, 5vw, 54px);
  background: #fff;
  color: #11100f;
}
.portfolio-gate__panel h2 {
  margin: 0 0 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 500;
}
.portfolio-gate__panel > p {
  margin: 0 0 34px;
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.45;
}
.portfolio-gate__close {
  position: absolute;
  top: 14px;
  right: 16px;
  appearance: none;
  border: 0;
  padding: 2px 5px;
  background: transparent;
  color: #11100f;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.portfolio-gate__form {
  display: grid;
  gap: 16px;
}
.portfolio-gate__form input {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid #11100f;
  border-radius: 0;
  padding: 10px 0 11px;
  background: transparent;
  color: #11100f;
  font: inherit;
  font-size: clamp(20px, 2.2vw, 28px);
  outline: none;
}
.portfolio-gate__form input:focus {
  border-bottom-color: var(--orange);
}
.portfolio-gate__form button[type="submit"] {
  justify-self: start;
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 2px 0 4px;
  background: transparent;
  color: #11100f;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.portfolio-gate__form button[type="submit"]:hover { color: var(--orange); }
.portfolio-gate__form button[type="submit"]:disabled { opacity: .45; cursor: wait; }
.portfolio-gate__error {
  min-height: 1.4em;
  margin: 0;
  color: var(--orange);
  font-size: 14px;
  line-height: 1.4;
}
.portfolio-gate-open { overflow: hidden; }

@media (max-width: 560px) {
  .portfolio-gate { padding: 16px; }
  .portfolio-gate__panel { width: 100%; padding: 34px 24px 30px; }
}
