/* It's Noseworthy — coming soon site
   Colours are sampled from the video so the page and the film blend together. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/jost-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jost-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #000a0c;            /* the video's own edge colour */
  --ink: #ebe6dc;           /* warm off-white */
  --muted: #8d9ca0;
  --hair: rgba(235, 230, 220, 0.14);
  --amber: #e4b86f;         /* desk-lamp glow */
  --blue: #8ccaff;          /* monitor glow */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 28px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- shared pieces ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  overflow-x: clip;
}

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-auto-rows: minmax(44px, auto);
  align-items: center;
  padding: calc(var(--gutter) + env(safe-area-inset-top, 0px)) var(--gutter) 0;
}

.brand {
  grid-column: 2;
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* keeps tracked caps optically centred */
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
a.brand { transition: color 0.3s ease; }
a.brand:hover { color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(235, 230, 220, 0.24);
  border-radius: 999px;
  background: rgba(0, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font: 400 15px/1 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.pill .arrow { display: inline-block; transition: transform 0.3s ease; }
.pill:hover { border-color: var(--amber); color: var(--amber); }
.pill:hover .arrow { transform: translateX(3px); }

.pill--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.pill--solid:hover { background: var(--amber); border-color: var(--amber); color: var(--bg); }

.foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
}

/* ---------- home ---------- */

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vh, 24px);
  padding: 16px 0;
}

.film {
  position: relative;
  /* as wide as possible while leaving room for the text above and below */
  width: min(1120px, 90vw, calc((100vh - 375px) * 16 / 9));
  width: min(1120px, 90vw, calc((100svh - 375px) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}
/* soft edges: fades the film into the page instead of a hard rectangle */
.film::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 32px 26px var(--bg);
}

.coming {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
}

.words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vh, 14px);
}

/* "Coming" large in the serif, "soon" small in tracked caps — echoes the brand name */
.headline {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  font-weight: 400;
  line-height: 1;
}
.headline .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(50px, 5.6vw, 80px);
  letter-spacing: 0.005em;
}
.headline .small {
  font-family: var(--sans);
  font-size: clamp(15px, 1.45vw, 21px);
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
}

.tagline {
  max-width: 46em;
  margin: 0;
  padding: 0 var(--gutter);
  font: 300 clamp(15px, 1.15vw, 17px)/1.6 var(--sans);
  letter-spacing: 0.02em;
  color: rgba(235, 230, 220, 0.72);
  text-align: center;
  text-wrap: balance;
}

/* phones held upright: let the film go edge to edge and a little taller */
@media (max-width: 640px) and (orientation: portrait) {
  .film {
    width: 100vw;
    aspect-ratio: 4 / 3;
  }
  .film::after { box-shadow: inset 0 0 22px 16px var(--bg); }
}

/* short screens (small laptops, phones on their side) */
@media (max-height: 560px) {
  .top { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .stage { padding: 4px 0; gap: 6px; }
  .film {
    width: min(90vw, calc((100vh - 232px) * 16 / 9));
    width: min(90vw, calc((100svh - 232px) * 16 / 9));
  }
  .coming { font-size: 32px; }
  .headline .big { font-size: 38px; }
  .headline .small { font-size: 13px; }
  .tagline { font-size: 13px; line-height: 1.5; }
}

@media (max-width: 420px) {
  .brand { font-size: 13px; letter-spacing: 0.28em; margin-right: -0.28em; }
}

/* ---------- about ---------- */

.about {
  background:
    radial-gradient(60vmax 45vmax at 12% 78%, rgba(228, 184, 111, 0.07), transparent 70%),
    radial-gradient(70vmax 50vmax at 60% -5%, rgba(140, 202, 255, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

.back {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font: 400 14px/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.back:hover { color: var(--ink); }

.bio {
  width: min(36rem, 100%);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 72px) var(--gutter);
  align-self: center;
}

.eyebrow {
  margin: 0 0 18px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
}

.bio h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.005em;
}
.bio h1 .first { font-style: italic; font-weight: 400; }
.bio h1 .last {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.6em;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;          /* surname sits on its own line under the first name */
  margin-top: 0.35em;
}

.cta-label {
  margin: 0 0 12px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio p { margin: 0 0 14px; color: rgba(235, 230, 220, 0.82); }
.bio .lede { font-size: 18px; color: var(--ink); }

.links {
  list-style: none;
  margin: 32px 0 36px;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.links li { border-bottom: 1px solid var(--hair); }
.links a {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  align-items: center;
  column-gap: 16px;
  padding: 16px 2px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.links .k {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.links .v { display: block; font-size: 17px; line-height: 1.3; }
.links .n { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.links .arrow { color: var(--muted); transition: transform 0.3s ease, color 0.3s ease; }
.links a:hover .v,
.links a:hover .arrow { color: var(--amber); }
.links a:hover .arrow { transform: translate(2px, -2px); }

.small-print {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.about .foot { justify-content: center; }

@media (max-height: 760px) {
  .bio { padding-top: 20px; padding-bottom: 20px; }
  .links { margin: 24px 0 28px; }
}

@media (max-width: 420px) {
  .links a { grid-template-columns: 5.4rem 1fr auto; column-gap: 12px; }
  .links .k { letter-spacing: 0.18em; }
}

/* ---------- 404 ---------- */

.lost {
  align-self: center;
  justify-self: center;
  text-align: center;
  padding: 40px var(--gutter);
}
.lost .coming { margin-bottom: 28px; }

/* ---------- gentle entrance ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.enter      { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.enter-fade { animation: fade 1.6s ease both; }
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.45s; }
.d3 { animation-delay: 0.75s; }
.d4 { animation-delay: 1.05s; }

@media (prefers-reduced-motion: reduce) {
  .enter, .enter-fade { animation: none; }
  * { transition-duration: 0s !important; }
}
