/* Cephe Studio. One typeface, paper and ink, the work does the talking.
   Layout runs on one grid: a narrow left column and a wide right one (1fr 3fr), the same split the
   work rows use, so headings, text and pictures line up down the page. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f2f0eb;
  --ink: #161514;
  --ink-2: rgba(22, 21, 20, .58);
  --line: rgba(22, 21, 20, .16);
  --tile: #dedad3;
  --pad: 12px;
  --gap: 8px;
  --space: clamp(88px, 11vw, 168px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
h2, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: var(--pad); top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

.cols { display: grid; grid-template-columns: 1fr 3fr; column-gap: var(--gap); }
.cols > :only-child { grid-column: 2; }

/* header */
.top { height: 64px; align-items: center; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.005em; text-decoration: none; justify-self: start; }
.mark { width: 26px; height: 26px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .tel { margin-left: auto; font-variant-numeric: tabular-nums; }

/* hero: the film, framed by paper, with a credit line under it */
.hero { padding: 0 var(--pad); }
.hero-video {
  width: 100%;
  height: min(calc(100svh - 64px - 40px), calc((100vw - 2 * var(--pad)) * 9 / 16));
  object-fit: cover;
  background: var(--tile);
}
@media (max-aspect-ratio: 1/1) {
  .hero-video { height: min(calc(100svh - 64px - 40px), calc((100vw - 2 * var(--pad)) * 16 / 9)); }
}
.credit { padding-top: 10px; font-size: 13px; color: var(--ink-2); }

/* the one statement */
.intro { padding: var(--space) var(--pad); }
.say {
  font-size: clamp(26px, 3.3vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.024em;
  max-width: 19em;
  text-wrap: pretty;
}
.say span { color: var(--ink-2); }

/* work: rows of one wide piece and one vertical video */
.work { padding: 0 var(--pad); }
.row { display: grid; grid-template-columns: 3fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.row.flip { grid-template-columns: 1fr 3fr; }

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tile);
  color: #fff;
  text-align: left;
  text-decoration: none;
}
.tile.reel { aspect-ratio: 9 / 16; }
.tile > img, .tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .t {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 56px 20px 18px;
  background: linear-gradient(to top, rgba(10, 9, 8, .46), rgba(10, 9, 8, 0));
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
}
.tile .t small { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: .86; }
.tile:hover .t, .tile:focus-visible .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.tile.plan { background: #e7e4de; color: var(--ink); }
.tile.plan > img { object-fit: contain; padding: 4% 6% 12%; }
.tile.plan .t { background: none; }

/* sections: a hairline, the heading on the left, the content on the right */
.sec { margin: var(--space) var(--pad) 0; padding-top: 18px; border-top: 1px solid var(--line); row-gap: 28px; }
.sec h2 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; line-height: 1.15; letter-spacing: -.012em; }
.side p { margin-top: 14px; color: var(--ink-2); max-width: 26em; }

.lead { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.45; letter-spacing: -.006em; max-width: 34em; text-wrap: pretty; }
.lead a { font-weight: 500; }

.rooms { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.side .rooms { margin-top: 22px; color: var(--ink); }
.rooms button { color: var(--ink-2); font-size: 15px; }
.rooms button:hover { color: var(--ink); }
.rooms button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--tile); }
.steps figcaption { padding-top: 8px; font-size: 13px; color: var(--ink-2); }

.list { list-style: none; padding: 0; }
.list li { display: grid; grid-template-columns: 1fr 2fr; gap: 6px var(--gap); padding: 16px 0 18px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 2px; }
.list b { font-size: 17px; font-weight: 600; letter-spacing: -.005em; }
.list p { color: var(--ink-2); max-width: 36em; }
.list p a { color: var(--ink); }

.rule {
  margin-bottom: clamp(36px, 4.5vw, 64px);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.018em;
  max-width: 21em;
  text-wrap: pretty;
}

.contact .phone {
  display: inline-block;
  font-size: clamp(44px, 7.4vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.contact .phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.contact p { margin-top: 22px; color: var(--ink-2); max-width: 30em; }
.contact .links { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink); font-weight: 500; }

.foot { margin: var(--space) var(--pad) 0; padding: 14px 0 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

/* full-screen viewer for the reels, the stills and the plan */
.view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #121110;
  color: #f2f0eb;
  overflow: hidden;
}
.view::backdrop { background: #121110; }
html:has(.view[open]) { overflow: hidden; }
.view-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 52px; padding: 0 var(--pad); font-size: 14px; }
.view-cap { color: rgba(242, 240, 235, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-nav { display: flex; gap: 22px; flex-shrink: 0; }
.view-nav button { font-weight: 500; }
.view-nav button:hover { text-decoration: underline; text-underline-offset: .25em; }
.view-nav [hidden] { display: none; }
.view :focus-visible { outline-color: #f2f0eb; }
.view-stage { position: absolute; inset: 52px var(--pad) var(--pad); display: flex; align-items: center; justify-content: center; }
.view-stage > img, .view-stage > video { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; }
.view-stage > .on-paper { background: #e7e4de; padding: clamp(12px, 3vw, 40px); }

@media (max-width: 900px) {
  :root { --pad: 10px; }
  .cols { grid-template-columns: 1fr; }
  .cols > :only-child { grid-column: 1; }
  .top { display: flex; justify-content: space-between; height: 56px; }
  .nav { gap: 20px; }
  .wide-only { display: none; }
  /* shorter on phones so the statement already shows on the first screen */
  .hero-video { height: min(64svh, calc((100vw - 2 * var(--pad)) * 16 / 9)); }
  .intro { padding: 44px var(--pad) 72px; }
  .credit { display: flex; justify-content: space-between; gap: 12px; }
  .row, .row.flip { grid-template-columns: 1fr; }
  .tile.wide { aspect-ratio: 4 / 3; }
  .tile.plan { aspect-ratio: 1 / 1; }
  .tile.plan > img { padding: 6% 4% 22%; }
  .list li { grid-template-columns: 1fr; }
  .sec { row-gap: 22px; }
  .foot { display: block; }
  .foot p + p { margin-top: 4px; }
}
@media (max-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero-video { height: min(calc(100svh - 56px - 40px), calc((100vw - 2 * var(--pad)) * 9 / 16)); }
}
