@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("assets/plex-mono-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0b0a;
  --bone: #eae4d8;
  --muted: #bcb4a8;
  --line: #393530;
  --accent: #d2bd9b;
  --display: Cormorant, Georgia, serif;
  --mono: "Plex Mono", "Courier New", monospace;
  --gutter: clamp(22px, 6vw, 110px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 16px/1.6 Arial, sans-serif;
}

h1, h2, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

.skip {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: var(--gutter);
  padding: 8px 12px;
  background: var(--bone);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }
main:focus { outline: none; }

.mono, .masthead nav {
  font: 400 .72rem/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font: 400 clamp(1.25rem, 2.35vw, 2rem)/1.15 var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--muted); }

.masthead nav { display: flex; gap: clamp(12px, 3.1vw, 45px); }
.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.masthead nav a:hover { text-decoration: underline; text-underline-offset: .35em; }

.opening {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: flex-end;
  min-height: clamp(620px, 83svh, 900px);
  padding: 0 var(--gutter) clamp(72px, 8vh, 112px);
  background: radial-gradient(ellipse at 58% 40%, #1a1815 0%, var(--ink) 61%);
}

.skull {
  position: absolute;
  z-index: 1;
  left: 56%;
  top: 43%;
  width: min(47vw, 548px, 63svh);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.skull img {
  width: 100%;
  opacity: .83;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent),
              linear-gradient(to bottom, transparent, #000 8% 90%, transparent);
  mask-composite: intersect;
  animation: drift 8s ease-in-out infinite;
}

.skull:hover img { opacity: 1; }

@keyframes drift {
  0%, 100% { transform: translateY(5px) scale(.99); }
  50% { transform: translateY(-8px) scale(1.01); }
}

.origin-cue, .slate-cue {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.origin-cue { top: 20px; }
.slate-cue { bottom: 23px; }
.origin-cue span, .slate-cue span { color: var(--accent); }

.opening-copy { position: relative; z-index: 2; pointer-events: none; }

.opening h1 {
  font: 400 clamp(4.4rem, 9vw, 10.25rem)/.78 var(--display);
  letter-spacing: -.061em;
  text-shadow: 0 4px 24px #0b0b0a;
}

.opening h1 em { color: var(--accent); }
.opening-copy p { margin-top: 26px; color: var(--muted); }

.feature {
  display: grid;
  grid-template-columns: 56% 44%;
  align-items: stretch;
  background: #191715;
  border-top: 1px solid var(--line);
}

.mary { min-width: 0; min-height: 580px; position: relative; }
.mary img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.feature-copy {
  align-self: center;
  min-width: 0;
  padding: 65px clamp(28px, 5.3vw, 96px);
}

.detail { color: var(--accent); }

.feature h2, .after h2, .studio h2:not(.mono) {
  font: 400 clamp(4rem, 8vw, 9rem)/.79 var(--display);
  letter-spacing: -.052em;
}

.feature h2, .after h2 { margin: 18px 0 25px; }

.hook {
  font: 400 clamp(1.75rem, 3.1vw, 3rem)/1.05 var(--display);
  max-width: 24ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 25px;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.text-link:hover, .origin-cue:hover, .slate-cue:hover { color: var(--accent); }

.after {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 7vw, 114px);
  padding: clamp(64px, 9vw, 144px) var(--gutter);
  border-top: 1px solid var(--line);
}
.after-copy { grid-column: 1; grid-row: 1; }
.after-copy p:not(.mono, .hook) { max-width: 38ch; margin-top: 18px; color: var(--muted); }
.after-image { grid-column: 2; }
.after-image img { width: 100%; }

.in-development {
  background: #dcd3c4;
  color: #24201b;
  color-scheme: light;
  padding: clamp(42px, 6vw, 92px) var(--gutter);
}
.in-development h2 {
  font: 400 clamp(2.75rem, 5vw, 5.75rem)/.96 var(--display);
  letter-spacing: -.046em;
  margin-bottom: 25px;
}
.project-list > div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, .7fr) minmax(0, 1.2fr);
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #a59a89;
}
.project-list dt { font: 400 clamp(1.8rem, 3vw, 3.1rem)/1 var(--display); }
.project-list dd { max-width: 49ch; }

.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.studio > section {
  position: relative;
  padding: clamp(50px, 7vw, 110px) var(--gutter);
}
.studio > section + section { background: #161411; border-left: 1px solid var(--line); }
.studio-statement {
  font: 400 clamp(2.5rem, 5vw, 5rem)/.96 var(--display);
  letter-spacing: -.04em;
  margin: 16px 0 20px;
}
.studio h2:not(.mono) {
  font-size: clamp(2.75rem, 5.1vw, 6.5rem);
  margin-bottom: 24px;
}
.studio h2 em { color: var(--accent); }
.studio p:not(.studio-statement) { max-width: 48ch; color: var(--muted); }
.studio p + p { margin-top: 15px; }
.studio img { margin-top: 26px; width: 34px; mix-blend-mode: screen; }

.contact {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter) 35px;
}
.contact p { margin-top: 12px; font: 400 2.4rem/1.05 var(--display); }
.contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-underline-offset: 5px; }
.contact small { display: block; margin-top: 22px; color: var(--muted); }

@media (max-width: 820px) {
  .opening { min-height: clamp(560px, 79svh, 800px); }
  .skull { left: 55%; width: min(68vw, 520px, 65svh); }
  .feature { grid-template-columns: 53% 47%; }
  .mary { min-height: 440px; }
  .feature h2, .after h2 { font-size: clamp(3.45rem, 9.2vw, 7rem); }
  .after { gap: 30px; }
}

@media (max-width: 600px) {
  .masthead { padding-block: 8px; }
  .masthead nav { font-size: .65rem; letter-spacing: .05em; }
  .wordmark span { display: none; }
  .opening { padding-bottom: 81px; min-height: clamp(525px, 77svh, 680px); }
  .origin-cue { top: 10px; }
  .slate-cue { bottom: 16px; }
  .skull { width: min(86vw, 390px, 62svh); left: 52%; top: 41%; }
  .opening h1 { font-size: clamp(3rem, 10.7vw, 4.9rem); line-height: .86; }
  .opening-copy p { font-size: .88rem; margin-top: 17px; max-width: 30ch; }
  .feature, .after, .studio { grid-template-columns: minmax(0, 1fr); }
  .mary { min-height: 0; aspect-ratio: 896 / 614; }
  .feature-copy { padding: 34px var(--gutter) 38px; }
  .feature h2 br { display: none; }
  .feature h2, .after h2 { margin-block: 12px 17px; }
  .text-link { margin-top: 16px; }
  .after { gap: 26px; padding-block: 44px; }
  .after-copy { grid-row: 2; }
  .after-image { grid-column: 1; grid-row: 1; }
  .project-list > div { grid-template-columns: 1fr; gap: 5px; }
  .project-list dd:last-child { margin-top: 4px; }
  .studio > section + section { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skull img { animation: none; }
}
