@font-face {
  font-family: 'Nineties Headliner';
  src: local('Nineties Headliner'), url('./assets/NinetiesHeadliner-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('./assets/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  scrollbar-width: none;
  overscroll-behavior-y: none;
  --red: #AF0032;
  --berry: #580229;
  --cream: #FFFEE1;
  --blue: #8FB5C9;
  --yellow: #FFEDA8;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--berry);
  background: var(--cream);
}

* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }


.topline {
  display: flex; align-items: center; justify-content: flex-end;
  padding-inline: clamp(16px, 4vw, 64px);
  min-height: 40px; letter-spacing: .14em;
}
.opening { font: 400 16px/1 'Nineties Headliner', Helvetica, sans-serif; }
.opening::before { content: '●'; color: var(--red); margin-right: 9px; }
.manifesto {
  display: grid; align-content: center; z-index: 1;
  padding: clamp(8px, 1.7svh, 20px) 16px;
}
.manifesto-lines {
  display: grid; align-items: center;
  justify-self: center; max-width: 100%;
  font: clamp(28px, min(5.4svh, 5vw), 60px)/1.02 'Instrument Serif', Georgia, serif;
  text-wrap: balance;
}
.panel { grid-area: 1 / 1; align-self: stretch; align-content: center; }
.panel[data-visible="false"] { visibility: hidden; }
.clock-scene {
  --dial-height: clamp(88px, 23svh, 235px);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  min-height: clamp(248px, 43svh, 425px);
  background: var(--blue); color: var(--red); text-align: center;
}
.clock {
  position: relative; z-index: 3;
  min-height: var(--dial-height);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(16px, 7vw, 120px);
  border: 0; background: transparent;
  width: 100%;
}
.clock:focus-visible { outline-offset: -5px; }
.dial:hover ~ .clock-hub { box-shadow: 0 0 0 4px var(--red); }
.hand, .clock-hub { position: absolute; top: calc(var(--dial-height) / 2); pointer-events: none; }
.hand {
  left: 50%; width: 58%;
  transform-origin: left center;
}
.hand.long {
  z-index: 2; width: 120vmax; height: calc(var(--dial-height) * .38); background: var(--cream);
  transform: translateY(-50%) rotate(var(--long-angle));
}
.hand.short {
  height: calc(var(--dial-height) * .23); background: var(--yellow);
  transform: translateY(-50%) rotate(var(--short-angle));
}
.clock-hub {
  z-index: 2; left: 50%; height: calc(var(--dial-height) * .56); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--red);
}
.clock-word {
  position: relative; display: block;
  height: min(13svh, 10vw, 142px); width: auto;
}
input, .concept-form button { min-height: 52px; border: 1px solid var(--red); }
input { min-width: 0; background: var(--cream); color: var(--red); padding: 0 16px; }
input::placeholder { color: #73505a; }
.concept-form button {
  border-color: var(--cream); background: #580229ba; color: var(--cream);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 14px; font-weight: 700;
}
.concept-form button:hover { background: #910029; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.concept-form {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  max-width: 345px; margin: clamp(14px, 3svh, 24px) auto 0; pointer-events: auto;
}
.concept-form input, .concept-form button { font-size: 14px; }
.concept-note { font-size: 12px; background: var(--berry); color: var(--cream); }
.concept-note:not(:empty) { padding: 8px 12px; }


.portes {
  --serif: 'Instrument Serif', Georgia, serif;
  --display: 'Nineties Headliner', Impact, sans-serif;
  --edge: clamp(18px, 5vw, 78px);
  min-height: 100svh; overflow: clip;
}
#root::after {
  content: ''; position: fixed; inset: 0; z-index: 11;
  background: url('./assets/riso-grain.svg') repeat;
  mix-blend-mode: multiply; filter: brightness(1.85) contrast(1.6);
  opacity: .5; pointer-events: none;
}
.portes-hero {
  display: grid; grid-template-columns: minmax(0, 1fr);
  min-height: clamp(490px, 69svh, 610px);
  position: relative; isolation: isolate;
}
.portes-intro, .portes-gallery { grid-area: 1 / 1; }
.portes-intro {
  z-index: 1; align-self: center;
  padding: 86px var(--edge) clamp(100px, 16svh, 140px);
  color: var(--cream); text-align: center; pointer-events: none;
}
.wordmark {
  position: absolute; top: clamp(14px, 3svh, 26px); left: var(--edge);
  width: clamp(64px, 7vw, 108px);
}
.wordmark img { display: block; width: 100%; height: auto; filter: url('#wordmark-cream'); }
.color-filters { position: absolute; }
.wordmark-color { flood-color: var(--cream); }
.studio-tagline {
  font: 400 clamp(44px, 7.6vw, 128px)/.9 var(--serif);
  text-wrap: balance;
}
.signup-invitation {
  margin-top: clamp(12px, 2.2svh, 20px);
  font-size: clamp(14px, 1.4vw, 18px); line-height: 1.4;
  text-wrap: balance;
}
.portes-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.porte {
  min-width: 0; position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(13px, 3vw, 42px); background: var(--berry); color: var(--cream);
}
.porte img, .porte::before {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.porte img { display: block; object-fit: cover; z-index: -2; }
.porte-0 img { object-position: center 80%; }
.porte-1 img { object-position: center 46%; }
.porte-2 img { object-position: 64% 57%; }
.porte::before {
  content: ''; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, #31091d50, #31091d90 32%, #31091d72 65%, #31091dd9 100%);
}
.porte + .porte::before { box-shadow: inset 1px 0 #fffee15e; }
.porte-name { font: 400 clamp(25px, 4vw, 68px)/.95 var(--display); }
.site-footer {
  padding: 6px var(--edge) 20px; background: var(--blue);
  text-align: center; font-size: 13px; font-weight: 700;
}
.site-footer a { color: inherit; text-underline-offset: 4px; }

@media (max-width: 620px) {
  .concept-form input { font-size: 16px; }
  .portes-hero { min-height: 420px; }
  .portes-intro { padding-block: 76px 112px; }
  .studio-tagline { font-size: clamp(42px, 12vw, 68px); }
  .porte { padding: 12px clamp(8px, 2vw, 14px); }
  .porte-0 img { object-position: 67% 80%; }
  .porte-name { font-size: clamp(18px, 4.8vw, 28px); }
}

@media (max-width: 520px) {
  .clock-scene { --dial-height: clamp(82px, 18svh, 150px); }
  .manifesto-lines { font-size: clamp(27px, 6.6vw, 34px); }
}

@media (prefers-reduced-motion: reduce) {
  .panel[data-active="true"] { visibility: visible; clip-path: none !important; }
  .panel[data-active="false"] { visibility: hidden; }
  .hand.long { transform: translateY(-50%) rotate(180deg); }
  .hand.short { transform: translateY(-50%) rotate(-9deg); }
}
