:root {
  --ink: #11130f;
  --paper: #f0f1ec;
  --white: #fbfcf7;
  --steel: #c6c9c2;
  --muted: #6f746d;
  --accent: #ea4b25;
  --accent-deep: #bd2f13;
  --line: rgba(17, 19, 15, 0.18);
  --display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: min(1440px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

button { color: inherit; }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; }
.brand img { width: 84px; height: 26px; }
.brand span { font-size: 13px; font-weight: 650; letter-spacing: 0.08em; }

nav { display: flex; gap: clamp(20px, 3vw, 48px); }
nav a { position: relative; font-size: 13px; font-weight: 600; }
nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-header > .button { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--dark { color: var(--white); background: var(--ink); }
.button--accent { color: var(--white); background: var(--accent); }
.button--accent:hover { background: var(--accent-deep); }
.button--light { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.button--light:hover { color: var(--ink); background: var(--white); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: calc(100vh - 78px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 9vw, 150px) clamp(32px, 6vw, 100px) 126px;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1, .section h2, .closing h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .96;
}

.hero h1 { max-width: 830px; font-size: clamp(54px, 7.3vw, 126px); }
.hero h1 span {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  -webkit-text-stroke: 0;
}

.hero__lead {
  max-width: 610px;
  margin: clamp(34px, 5vw, 72px) 0 0;
  color: #393d37;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.65;
}

.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.text-link, .case-link {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.text-link span, .case-link span { color: var(--accent); }

.hero__visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #1a1d18;
}
.hero__visual > img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,11,9,.7));
  content: "";
}
.hero__visual > p {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 18px;
  margin: 0;
  color: rgba(255,255,255,.74);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .12em;
}
.hero__stamp {
  position: absolute;
  z-index: 2;
  top: 40px;
  right: 40px;
  display: grid;
  width: 128px;
  height: 128px;
  place-content: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: var(--white);
  text-align: center;
  animation: stamp-spin 20s linear infinite;
}
.hero__stamp strong { font-size: 25px; letter-spacing: -.08em; }
.hero__stamp span { font-size: 10px; letter-spacing: .12em; }

.hero__index {
  position: absolute;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: calc(54% + 1px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.hero__index span { padding: 22px 28px; border-right: 1px solid var(--line); font-size: 12px; font-weight: 650; }

.material-rail {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}
.material-rail__track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 54px;
  padding-left: 24px;
  animation: rail 28s linear infinite alternate;
}
.material-rail span { font-family: var(--utility); font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
.material-rail i { width: 56px; height: 1px; margin: 0 22px; background: var(--accent); }

.section { width: var(--page); margin: 0 auto; padding: clamp(86px, 11vw, 170px) 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 10vw; align-items: end; }
.section-heading h2, .making-intro h2 { font-size: clamp(46px, 6vw, 96px); }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 17px; }

.case-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: clamp(56px, 8vw, 110px); }
.case-card { grid-column: span 4; border-top: 1px solid var(--ink); }
.case-card:nth-child(2) { transform: translateY(58px); }
.case-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: var(--steel);
  cursor: pointer;
  text-align: left;
}
.case-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.75,.2,1), filter 350ms ease; }
.case-card--banana img { object-position: center; }
.case-card--rockfish img { object-position: center 42%; }
.case-card--imxs img { object-position: center 38%; }
.case-card:hover img { transform: scale(1.035); }
.case-card__image > span {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 9px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .08em;
}
.case-card__body { padding: 24px 2px 0; }
.case-card__body > p:first-child { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.case-card h3 { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.6vw, 42px); letter-spacing: -.04em; }
.case-card__body > p:nth-of-type(2) { min-height: 78px; color: var(--muted); }
.case-link { margin-top: 12px; }

.about {
  position: relative;
  padding: clamp(90px, 11vw, 170px) max(24px, calc((100vw - var(--page)) / 2));
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.about::before {
  position: absolute;
  top: 0;
  right: 9%;
  width: 34vw;
  height: 100%;
  border-right: 1px solid rgba(255,255,255,.14);
  border-left: 1px solid rgba(255,255,255,.14);
  content: "";
  transform: skewX(-16deg);
  pointer-events: none;
}
.about__intro { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 10vw; align-items: end; }
.about__intro .eyebrow { grid-column: 1 / -1; }
.about h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 108px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .94;
}
.about__intro > p:last-child { max-width: 560px; margin: 0; color: rgba(255,255,255,.62); font-size: 17px; }
.about__facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid rgba(255,255,255,.42);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.about-stat { min-height: 260px; padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.18); }
.about-stat:last-child { border-right: 0; }
.about-stat strong { display: block; color: var(--accent); font-family: var(--display); font-size: clamp(48px, 5vw, 78px); letter-spacing: -.06em; line-height: 1; }
.about-stat sup { margin-left: 4px; font-size: .28em; letter-spacing: 0; vertical-align: super; }
.about-stat span { display: block; margin-top: 22px; font-size: 18px; font-weight: 700; }
.about-stat small { display: block; max-width: 230px; margin-top: 10px; color: rgba(255,255,255,.46); font-size: 11px; line-height: 1.55; }
.about__clients {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 8vw;
  align-items: end;
  padding-top: 72px;
}
.about__clients h3 { max-width: 620px; margin: 0; font-family: var(--display); font-size: clamp(32px, 4vw, 56px); letter-spacing: -.04em; line-height: 1.08; }
.about__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about__tags span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.28); font-family: var(--utility); font-size: 9px; letter-spacing: .05em; }
.about__note { position: relative; z-index: 1; margin: 54px 0 0; color: rgba(255,255,255,.38); font-size: 10px; }

.section--making { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: 10vw; border-top: 1px solid var(--line); }
.making-intro { position: sticky; top: 130px; align-self: start; }
.making-intro > p:nth-of-type(2) { max-width: 500px; margin-top: 38px; color: var(--muted); }
.making-content { min-width: 0; }
.craft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 88px; }
.craft-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--steel);
  cursor: pointer;
  text-align: left;
}
.craft-card--wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.craft-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.75,.2,1); }
.craft-card:hover > img { transform: scale(1.035); }
.craft-card > span {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 16px 15px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(10,11,9,.82));
}
.craft-card small, .craft-card strong, .craft-card em { display: block; }
.craft-card small { font-family: var(--utility); font-size: 8px; letter-spacing: .08em; }
.craft-card strong { margin-top: 3px; font-size: 22px; line-height: 1.2; }
.craft-card em { margin-top: 3px; font-family: var(--utility); font-size: 8px; font-style: normal; letter-spacing: .04em; opacity: .76; }
.capability-list { border-top: 1px solid var(--ink); }
.capability {
  display: grid;
  grid-template-columns: 78px minmax(180px, .8fr) 1fr;
  gap: 30px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.capability__mark { font-family: var(--display); font-size: 60px; font-weight: 800; line-height: 1; color: var(--accent); }
.capability p { margin: 0; color: var(--muted); }
.capability div:nth-child(2) p { margin-bottom: 8px; font-family: var(--utility); font-size: 9px; letter-spacing: .08em; }
.capability h3 { margin: 0; font-size: 28px; }

.section--process { border-top: 1px solid var(--line); }
.section-heading--compact h2 { font-size: clamp(44px, 5vw, 78px); }
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); margin: 76px 0 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.process-list li { min-height: 250px; padding: 22px 18px; border-right: 1px solid var(--line); }
.process-list li:last-child { border-right: 0; }
.process-list span { display: block; margin-bottom: 62px; color: var(--accent); font-family: var(--utility); font-size: 11px; }
.process-list strong { display: block; font-size: 20px; }
.process-list p { color: var(--muted); font-size: 13px; }

.closing {
  position: relative;
  padding: clamp(100px, 14vw, 220px) max(24px, calc((100vw - var(--page)) / 2));
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.closing h2 { position: relative; z-index: 2; max-width: 1100px; font-size: clamp(50px, 8vw, 132px); }
.closing > div:last-child { display: flex; gap: 12px; margin-top: 58px; }
.closing__line {
  position: absolute;
  top: -10%;
  right: 8%;
  width: 33vw;
  height: 140%;
  border-right: 2px solid var(--accent);
  border-left: 1px solid rgba(255,255,255,.18);
  transform: skewX(-17deg);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 32px 24px;
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 11px;
  letter-spacing: .08em;
}
.brand--footer img { filter: invert(1); }
footer p { margin: 0; }

.case-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: clamp(30px, 5vw, 62px);
  border: 0;
  color: var(--ink);
  background: var(--white);
  overflow-y: auto;
}
.case-dialog::backdrop { background: rgba(12,14,11,.78); backdrop-filter: blur(7px); }
.case-dialog__close { position: absolute; top: 18px; right: 22px; border: 0; background: none; cursor: pointer; font-size: 32px; }
.case-dialog h2 { margin: 0 0 18px; font-family: var(--display); font-size: clamp(38px, 6vw, 64px); letter-spacing: -.05em; line-height: 1; }
.case-dialog > p:nth-of-type(2) { color: var(--muted); font-size: 17px; }
.case-gallery { margin-top: 34px; }
.case-gallery__stage {
  position: relative;
  display: grid;
  height: min(58vh, 620px);
  place-items: center;
  overflow: hidden;
  background: #151713;
}
.case-gallery__stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.case-gallery__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  color: var(--white);
  background: rgba(17,19,15,.62);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.case-gallery__nav:hover { color: var(--ink); background: var(--white); }
.case-gallery__nav--prev { left: 14px; }
.case-gallery__nav--next { right: 14px; }
.case-gallery__counter {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(17,19,15,.72);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .08em;
}
.case-gallery__thumbs {
  display: grid;
  grid-auto-columns: 92px;
  grid-auto-flow: column;
  gap: 8px;
  margin-top: 9px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.case-gallery__thumbs button {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--steel);
  cursor: pointer;
  opacity: .58;
}
.case-gallery__thumbs button:hover, .case-gallery__thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.case-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; background: #e8e9e4; }
.case-dialog__details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 34px 0; background: var(--line); }
.case-dialog__details div { padding: 18px; background: var(--paper); }
.case-dialog__details span { display: block; font-family: var(--utility); font-size: 9px; letter-spacing: .08em; }
.case-dialog__details strong { display: block; margin-top: 8px; font-size: 14px; }
.case-dialog__notice { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: calc(100vw - 48px);
  padding: 15px 20px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 16px 44px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 13px;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.case-card:nth-child(2).reveal { transform: translateY(82px); }
.case-card:nth-child(2).reveal.is-visible { transform: translateY(58px); }

@keyframes rail { from { transform: translateX(0); } to { transform: translateX(-22%); } }
@keyframes stamp-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  :root { --page: calc(100vw - 36px); }
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__copy { min-height: 76vh; padding: 84px 22px 116px; }
  .hero__visual { min-height: 66vh; }
  .hero__index { width: 100%; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .about__intro, .about__clients { grid-template-columns: 1fr; gap: 28px; }
  .about__facts { grid-template-columns: repeat(2, 1fr); }
  .about-stat:nth-child(2) { border-right: 0; }
  .about-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .case-card { grid-column: span 6; }
  .case-card:last-child { grid-column: 4 / span 6; margin-top: 58px; }
  .section--making { grid-template-columns: 1fr; }
  .making-intro { position: static; }
  .craft-grid { margin-top: 52px; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li { min-height: 220px; border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --page: calc(100vw - 28px); }
  .site-header { min-height: 66px; padding: 11px 14px; }
  .brand { gap: 9px; }
  .brand img { width: 66px; }
  .brand span { font-size: 11px; }
  .site-header .button { min-height: 40px; padding: 0 14px; }
  .hero { min-height: auto; }
  .hero__copy { min-height: 70vh; padding: 76px 14px 118px; }
  .hero h1 { font-size: clamp(48px, 15vw, 76px); }
  .hero__lead { font-size: 16px; }
  .hero__visual { min-height: 54vh; }
  .hero__stamp { top: 22px; right: 22px; width: 100px; height: 100px; }
  .hero__index span { padding: 17px 10px; font-size: 10px; text-align: center; }
  .section { padding: 86px 0; }
  .section-heading h2, .making-intro h2 { font-size: 46px; }
  .case-grid { display: block; }
  .case-card, .case-card:last-child { margin: 0 0 62px; transform: none; }
  .case-card:nth-child(2).reveal, .case-card:nth-child(2).reveal.is-visible { transform: none; }
  .case-card__body > p:nth-of-type(2) { min-height: auto; }
  .about { padding-right: 14px; padding-left: 14px; }
  .about h2 { font-size: 52px; }
  .about__facts { grid-template-columns: 1fr; }
  .about-stat { min-height: auto; padding: 28px 4px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .about-stat:last-child { border-bottom: 0; }
  .about-stat strong { font-size: 58px; }
  .about__clients { padding-top: 54px; }
  .capability { grid-template-columns: 56px 1fr; gap: 18px; }
  .capability > p { grid-column: 2; }
  .capability__mark { font-size: 42px; }
  .craft-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 38px; margin-bottom: 62px; }
  .craft-card--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { min-height: auto; padding: 24px 4px; border-right: 0; }
  .process-list span { margin-bottom: 22px; }
  .closing > div:last-child { flex-direction: column; align-items: stretch; }
  .case-dialog__details { grid-template-columns: 1fr; }
  .case-gallery__stage { height: 50vh; min-height: 360px; }
  .case-gallery__nav { width: 40px; height: 40px; }
  .case-gallery__thumbs { grid-auto-columns: 76px; }
}

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