/* Work page. The studio's own voice opens and closes it; each chapter between takes on that business's
   colors and type, using the same fonts as its concept site. */

@font-face { font-family: "Anybody"; src: url("../work/garage/assets/fonts/anybody-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../work/garage/assets/fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Gloock"; src: url("../work/restaurant/assets/fonts/gloock.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../work/restaurant/assets/fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Stencil"; src: url("../work/trades/assets/fonts/stencil.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../work/trades/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

/* Hero: four films side by side, with a link under each one */
.work-hero { flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: 100svh; }
.work-hero__film { background-image: url("../assets/img/scene-page-work-1600.webp?v=1"); }
.work-hero .hero__inner { padding-bottom: clamp(24px, 3vw, 40px); }
.work-hero .hero__base .lede { margin-bottom: 0; max-width: 54ch; }
.work-hero h1 { max-width: none; margin-bottom: 24px; }
.work-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22); }
.work-index a { display: grid; gap: 2px; padding: 18px clamp(14px, 2vw, 28px) 22px; text-decoration: none; color: var(--argent); border-left: 1px solid rgba(255,255,255,.22); transition: background-color .3s var(--ease); }
.work-index a:first-child { border-left: 0; }
.work-index a:hover { background: rgba(255,255,255,.1); }
.work-index a:focus-visible { outline-offset: -4px; }
.work-index b { font-weight: 400; font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1.2; }
.work-index span { font-size: .8125rem; color: rgba(255,255,255,.76); }
.work-index__garage b { font-family: "Anybody", var(--sans); font-stretch: 130%; font-weight: 800; font-size: clamp(.95rem, 1.35vw, 1.3rem); }
.work-index__sauvel b { font-family: "Gloock", var(--display); }
.work-index__corvane b { font-family: "Big Shoulders Stencil", var(--sans); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.85rem); }
.work-index__summit b { font-family: var(--display); font-weight: 300; }

/* What every chapter shares */
.ch { position: relative; padding-block: clamp(72px, 10vw, 150px); overflow: hidden; }
.ch p { margin: 0 0 1.1em; }
.ch__lede { font-size: clamp(1.2rem, 1vw + 1rem, 1.625rem); line-height: 1.42; }
.ch__tag { font-size: .9375rem; }
.ch h2.ch__name { margin: 0; }
.ch img { display: block; width: 100%; height: auto; }

/* The live frame */
.try { margin: clamp(48px, 6vw, 88px) 0 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--try-edge), 0 40px 90px -50px rgba(0,0,0,.6); background: var(--try-bar); }
.try__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; padding: 6px 8px 6px 18px; font-size: .8125rem; color: var(--try-ink); }
.try__url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try__open, .try__close { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; cursor: pointer; }
.try__open[hidden], .try__go[hidden] { display: none; }
.try__stage { position: relative; aspect-ratio: 1224 / 720; background: var(--try-bar); }
.try__stage img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.try__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.try__go { position: absolute; left: 50%; bottom: clamp(16px, 2.6vw, 36px); transform: translateX(-50%); display: inline-flex; align-items: center; min-height: 64px; padding: 0 34px; border-radius: var(--try-radius, 999px); background: var(--try-accent); color: var(--try-on); font-size: clamp(1rem, .5vw + .9rem, 1.1875rem); font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: 0 18px 50px -12px rgba(0,0,0,.65); transition: transform .35s var(--ease-out); }
.try__go:hover { transform: translateX(-50%) scale(1.04); }

/* Okabe & Reyes */
.ch--garage { background: #f4f5f3; color: #1e2226; font-family: "Instrument Sans", var(--sans); font-weight: 400; --try-bar: #1e2226; --try-ink: #e9ecee; --try-edge: #d5d8da; --try-accent: #c4161c; --try-on: #fff; --try-radius: 4px; }
.ch--garage .ch__name { font-family: "Anybody", var(--sans); font-stretch: 150%; font-weight: 850; font-size: clamp(2.5rem, 7.1vw, 7.4rem); line-height: .96; letter-spacing: -.01em; }
.ch--garage .ch__tag { margin-top: 22px; color: #4d555e; }
.garage__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 110px); margin-top: clamp(40px, 5vw, 72px); }
.garage__copy p:last-child { color: #4d555e; margin-bottom: 0; }
.garage__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid #1e2226; }
.garage__list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid #d5d8da; }
.garage__list b { font-weight: 600; }
.garage__list span { color: #4d555e; }
.garage__photos { position: relative; margin-top: clamp(48px, 6vw, 88px); padding-bottom: 7%; }
.garage__wide { width: 76% !important; }
.garage__tight { position: absolute; right: 0; bottom: 0; width: 30% !important; box-shadow: 0 0 0 10px #f4f5f3; }

/* Sauvel */
.ch--sauvel { padding-top: 0; background: #15302a; color: #efe7da; font-family: "Hanken Grotesk", var(--sans); --try-bar: #0e221d; --try-ink: #efe7da; --try-edge: #1f4a3d; --try-accent: #f2cfc6; --try-on: #5e1b22; }
.sauvel__head { position: relative; min-height: clamp(380px, 56vw, 780px); display: flex; align-items: flex-end; isolation: isolate; }
.sauvel__head img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -1; }
.sauvel__head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #15302a 2%, rgba(21,48,42,.7) 34%, rgba(21,48,42,0) 72%); }
.sauvel__name { width: 100%; }
.ch--sauvel .ch__name { font-family: "Gloock", var(--display); font-weight: 400; font-size: clamp(5.5rem, 22vw, 22rem); line-height: .86; letter-spacing: -.015em; }
.ch--sauvel .ch__tag { margin: 18px 0 0; color: #efe7da; }
.sauvel__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 110px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.sauvel__plate { width: 62% !important; margin-top: clamp(28px, 4vw, 56px); }
.sauvel__card { background: #f2cfc6; color: #5e1b22; padding: clamp(28px, 4vw, 56px); border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); transform: rotate(.6deg); }
.sauvel__card h3 { font-family: "Gloock", var(--display); font-weight: 400; font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 18px; text-align: center; color: #5e1b22; }
.sauvel__card dl { margin: 0; }
.sauvel__card dl div { padding: 14px 0; border-top: 1px solid rgba(94,27,34,.3); }
.sauvel__card dt { font-family: "Gloock", var(--display); font-size: 1.25rem; line-height: 1.3; }
.sauvel__card dd { margin: 2px 0 0; }

/* Corvane */
.ch--corvane { background: #24282c; color: #f5f5f0; font-family: "Archivo", var(--sans); font-weight: 400; --try-bar: #17191c; --try-ink: #f5f5f0; --try-edge: #565c62; --try-accent: #9c3a22; --try-on: #fff; --try-radius: 2px; }
.corvane__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ch--corvane .ch__name { font-family: "Big Shoulders Stencil", var(--sans); font-weight: 800; font-size: clamp(3.4rem, 8.2vw, 8.6rem); line-height: .92; text-transform: uppercase; }
.ch--corvane .ch__tag { margin-top: 20px; color: #c3c6c4; }
.corvane__spec { width: 100%; margin-top: clamp(28px, 3vw, 44px); border-collapse: collapse; font-stretch: 88%; }
.corvane__spec caption { text-align: left; padding-bottom: 10px; color: #e0896f; }
.corvane__spec th, .corvane__spec td { padding: 11px 0; border-top: 1px solid #565c62; text-align: left; vertical-align: top; }
.corvane__spec th { width: 34%; padding-right: 16px; font-weight: 600; }
.corvane__spec td { color: #c3c6c4; }
.corvane__photos { position: relative; padding-bottom: 42%; }
.corvane__gate { width: 100%; }
.corvane__night { position: absolute; right: 8%; bottom: 0; width: 52% !important; box-shadow: 0 0 0 10px #24282c; }

/* Summit Bullion */
.ch--summit { background: #0e261e; color: #f3eee3; }
.ch--summit .ch__name { font-family: var(--display); font-weight: 200; font-size: clamp(3.6rem, 10.4vw, 11rem); line-height: 1; letter-spacing: -.02em; color: #e8cfa8; }
.ch--summit .ch__tag { margin-top: 14px; color: rgba(243,238,227,.82); }
.summit__stack { position: relative; margin-top: clamp(40px, 5vw, 72px); padding-right: 12%; }
.summit__desk { border-radius: 8px; box-shadow: 0 0 0 1px rgba(232,207,168,.24); }
.summit__phone { position: absolute; right: 0; bottom: -7%; width: 21% !important; border-radius: 20px; box-shadow: 0 0 0 6px #0e261e, 0 0 0 7px rgba(232,207,168,.4); }
.summit__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 110px); margin-top: clamp(72px, 9vw, 130px); }
.summit__grid .actions { margin-top: 28px; }
.summit__facts { margin: 0; border-top: 1px solid rgba(232,207,168,.4); }
.summit__facts div { padding: 16px 0; border-bottom: 1px solid rgba(232,207,168,.2); }
.summit__facts dt { font-family: var(--display); font-size: 1.375rem; color: #e8cfa8; line-height: 1.3; }
.summit__facts dd { margin: 2px 0 0; color: rgba(243,238,227,.82); }
.summit__screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(48px, 6vw, 88px); }
.summit__screens figure { margin: 0; }
.summit__screens img { border-radius: 6px; box-shadow: 0 0 0 1px rgba(232,207,168,.24); }
.summit__screens figcaption { margin-top: 12px; font-size: .875rem; color: rgba(243,238,227,.82); }

/* What's real */
.real h2 { font-size: clamp(2.6rem, 6vw, 6rem); max-width: 14ch; margin: 0 0 clamp(36px, 5vw, 72px); }
.real__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.real__grid h3 { margin: 0 0 10px; font-size: clamp(1.5rem, 2vw, 2rem); }
.real__grid > div { padding-top: 18px; border-top: 1px solid var(--rule); }
.real__grid p { margin: 0; color: var(--stone); }
.real__next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 40px); align-items: center; margin-top: clamp(48px, 6vw, 88px); padding: clamp(22px, 3vw, 40px); border-radius: 8px; background: var(--argent); color: var(--sable); text-decoration: none; box-shadow: inset 0 0 0 1px var(--rule); }
.real__next img { width: 56px; height: auto; }
.real__next b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.2; margin-bottom: 6px; }
.real__next > span:nth-child(2) > span { color: var(--stone); }
.real__next:hover { box-shadow: inset 0 0 0 1px var(--sable); }

@media (max-width: 900px) {
  .garage__grid, .sauvel__grid, .corvane__grid, .summit__grid { grid-template-columns: minmax(0, 1fr); }
  .sauvel__card { transform: none; }
  .real__grid { grid-template-columns: minmax(0, 1fr); }
  .real__next { grid-template-columns: auto minmax(0, 1fr); }
  .real__next .btn { grid-column: 1 / -1; justify-content: space-between; }
}

@media (max-width: 760px) {
  /* On phones the frame opens the site itself, so the button sits under the picture */
  .try__stage { aspect-ratio: auto; display: flex; flex-direction: column; }
  .try__stage img { height: auto; }
  .try__go, .try__go:hover { position: static; transform: none; justify-content: center; margin: 12px; white-space: normal; text-align: center; box-shadow: none; }
  .try__open { display: none; }
  .garage__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .garage__wide { width: 100% !important; }
  .garage__photos { padding-bottom: 26%; }
  .garage__tight { width: 42% !important; }
}

@media (max-width: 700px) {
  .work-hero__film { background-image: url("../assets/img/scene-page-work-900.webp?v=1"); }
  .work-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-index a { padding: 14px 14px 16px; }
  .work-index a:nth-child(odd) { border-left: 0; }
  .work-index a:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
  .ch--garage .ch__name { font-stretch: 118%; font-size: 10.4vw; }
  .ch--sauvel .ch__name { font-size: clamp(5rem, 27vw, 9rem); }
  .summit__stack { padding-right: 0; padding-bottom: 8%; }
  .summit__phone { width: 26% !important; bottom: 0; }
  .summit__screens { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .try__go, .work-index a { transition: none; }
}
