/*
  VELVET & TEETH — TEMPORARY LANDING PAGE
  ------------------------------------------------------------
  This file is organised from broad rules to specific sections.
  The colours live in :root so you can rebrand the whole page in
  one place without hunting through hundreds of lines.
*/

/* ---------- 1. BRAND TOKENS / EASY GLOBAL EDITS ---------- */
:root {
  /* Existing PDF palette: charcoal, burgundy, jade, pale ivory, and muted ink. */
  --charcoal: #1e1a1c;
  --ink: #141113;
  --burgundy: #571628;
  --burgundy-bright: #7b1d3c;
  --acid: #208a68;
  --ivory: #f5f1ef;
  --paper: #e9dcc8;
  --muted: #9b8f92;
  --line: rgba(245, 241, 239, 0.18);
  --jade: #ddff58;

  /* Page measurements. Changing --gutter adjusts nearly every horizontal edge. */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(6.5rem, 14vw, 12rem);
  --header-height: 5.5rem;
  --max-width: 100rem;

  /* JavaScript gently updates these for the pointer-following light. */
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

/* ---------- 2. RESET / RELIABLE BROWSER BEHAVIOUR ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body,
h1,
h2,
p {
  margin: 0;
}

body {
  min-width: 20rem;
  overflow-x: hidden;
  color: var(--ivory);
  background: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--ivory);
  background: var(--burgundy-bright);
}

/* Make keyboard focus clearly visible without adding rings to mouse clicks. */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 0.35rem;
}

/* ---------- 3. GLOBAL UTILITIES ---------- */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: var(--section-space) var(--gutter);
}

.eyebrow {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* The light is decorative and never blocks a click. */
.pointer-light {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 22rem at var(--pointer-x) var(--pointer-y),
    rgba(123, 29, 60, 0.14),
    transparent 72%
  );
  transition: opacity 500ms ease;
}

@media (pointer: fine) {
  .js .pointer-light {
    opacity: 1;
  }
}

/* Elements begin visible. JavaScript only hides them after it has loaded. */
.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. HEADER AND NAVIGATION ---------- */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 17, 19, 0.72);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  transition:
    height 250ms ease,
    background 250ms ease;
}

.site-header.is-scrolled {
  height: 4.5rem;
  background: rgba(20, 17, 19, 0.92);
}

/* Deliberately neutral: this is a bay for Alexis's finished logo, not a pretend logo. */
.logo-slot {
  display: inline-flex;
  min-width: 8.8rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-inline: 0.85rem;
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.logo-slot:hover {
  border-color: var(--acid);
  background: rgba(221, 255, 88, 0.04);
}

.logo-slot__prompt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
}

.logo-slot__hint {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.4rem;
  color: rgba(245, 241, 239, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--acid);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--ivory);
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  /* 100vh is the fallback; 100svh handles modern mobile browser chrome more neatly. */
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header-height) + 4rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 54%, rgba(87, 22, 40, 0.18) 100%),
    var(--ink);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin-inline: auto;
  will-change: transform;
}

.hero__index {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-height) + 2.25rem);
  right: var(--gutter);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero__title {
  max-width: 11ch;
  margin-top: clamp(1.1rem, 2.5vw, 2rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.25rem, 12.5vw, 12rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.72;
}

.hero__title > span {
  display: block;
  margin-left: clamp(0rem, 8vw, 8rem);
  white-space: nowrap;
}

.hero__title em {
  color: var(--burgundy-bright);
  font-weight: 400;
}

.hero__footer {
  display: grid;
  grid-template-columns: minmax(16rem, 31rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.65rem;
  border-top: 1px solid var(--line);
}

.hero__footer p {
  color: rgba(245, 241, 239, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(245, 241, 239, 0.5);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.text-link:hover span {
  transform: translate(0.2rem, 0.2rem);
}

.hero__slash {
  position: absolute;
  z-index: 1;
  top: -20%;
  left: 55%;
  width: 1px;
  height: 145%;
  background: linear-gradient(transparent, var(--burgundy-bright), transparent);
  opacity: 0.42;
  transform: rotate(42deg);
  transform-origin: center;
}

/* ---------- 6. MOVING TYPE STRIP ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--acid);
}

.ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.72rem;
  animation: ticker 28s linear infinite;
}

.ticker span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticker i {
  color: var(--burgundy);
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 7. PORTFOLIO SCAFFOLDING ---------- */
.portfolio {
  background: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 24rem);
  align-items: end;
  gap: 2rem 5rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.about h2,
.contact h2 {
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.section-heading__note {
  max-width: 32rem;
  color: rgba(245, 241, 239, 0.62);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(3rem, 8vw, 8rem) clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(5rem, 10vw, 9rem);
}

.project-card {
  grid-column: 2 / span 4;
  transform-style: preserve-3d;
}

.project-card--tall {
  grid-column: 1 / span 5;
}

.project-card--wide {
  grid-column: 7 / span 6;
  margin-top: clamp(6rem, 13vw, 13rem);
}

.project-card:nth-child(3) {
  grid-column: 3 / span 6;
}

.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 239, 0.28);
  background: var(--charcoal);
  transform: perspective(65rem) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition:
    border-color 250ms ease,
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-card--wide .frame {
  aspect-ratio: 7 / 5;
}

.project-card:nth-child(3) .frame {
  aspect-ratio: 3 / 2;
}

.frame::before,
.frame::after {
  position: absolute;
  z-index: 0;
  content: "";
}

/* A restrained contact-sheet crosshair, not an imitation photograph. */
.frame::before {
  inset: 50% 1.5rem auto;
  height: 1px;
  background: rgba(245, 241, 239, 0.08);
}

.frame::after {
  inset: 1.5rem auto 1.5rem 50%;
  width: 1px;
  background: rgba(245, 241, 239, 0.08);
}

.frame:hover {
  border-color: var(--acid);
}

.frame__empty {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 49.8%, rgba(87, 22, 40, 0.45) 50%, transparent 50.2%),
    radial-gradient(circle at 20% 15%, rgba(32, 138, 104, 0.08), transparent 30%);
}

.frame__empty span {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(245, 241, 239, 0.18);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.frame__number {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 0.65rem;
  color: rgba(245, 241, 239, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
}

.project-card__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(245, 241, 239, 0.1);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-card__caption span:first-child {
  color: var(--ivory);
}

/* ---------- 8. ABOUT ---------- */
.about {
  position: relative;
  display: grid;
  grid-template-columns: 0.65fr 2fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  background: var(--ivory);
  color: var(--charcoal);
}

.about::after {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(0.5rem, 1vw, 1rem);
  height: 100%;
  background: var(--jade);
  content: "";
}

.about .eyebrow {
  color: var(--burgundy);
}

.about__number {
  color: rgba(30, 26, 28, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(7rem, 19vw, 18rem);
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.about h2 {
  max-width: 12ch;
  margin-top: 1.5rem;
}

.about h2 em {
  color: var(--burgundy);
  font-weight: 400;
}

.about__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 52rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 26, 28, 0.22);
}

.about__columns p {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

/* ---------- 9. CONTACT / TEMPORARY STATUS ---------- */
.contact {
  min-height: min(52rem, 85svh);
  padding-right: max(var(--gutter), 12vw);
  background:
    linear-gradient(120deg, transparent 52%, rgba(87, 22, 40, 0.54)),
    var(--charcoal);
}

.contact h2 {
  max-width: 11ch;
  margin-top: 1.5rem;
}

.contact__copy {
  max-width: 38rem;
  margin-top: 2.5rem;
  color: rgba(245, 241, 239, 0.7);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.contact-link {
  display: flex;
  width: min(100%, 42rem);
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-block: 1rem;
  border-top: 1px solid var(--ivory);
  border-bottom: 1px solid var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 3.25rem);
}

/* Holds the email and information-pack links together. */
.contact-actions {
  width: min(100%, 46rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}

/* Remove these properties from .contact-link if they are still there:
   width: min(100%, 42rem);
   margin-top: clamp(4rem, 8vw, 7rem);
*/
.contact-actions .contact-link {
  width: 100%;
  margin-top: 0;
  transition:
    color 180ms ease,
    padding-inline 220ms ease,
    background 180ms ease;
}

/* Prevents a doubled border between the two links. */
.contact-actions .contact-link + .contact-link {
  border-top: 0;
}

/* Allows long email addresses to wrap safely on narrow phones. */
.contact-link__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* The small descriptor above each main link label. */
.contact-link__text small {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Interactive feedback for mouse and keyboard users. */
.contact-actions .contact-link:hover,
.contact-actions .contact-link:focus-visible {
  padding-inline: 1rem;
  color: var(--ivory);
  background: var(--jade);
}

.contact-link--inactive {
  color: rgba(245, 241, 239, 0.52);
  border-color: rgba(245, 241, 239, 0.28);
}

/* ---------- 10. FOOTER AND NO-SCRIPT NOTE ---------- */
.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

.noscript-note {
  position: fixed;
  z-index: 300;
  right: 1rem;
  bottom: 1rem;
  max-width: 22rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--acid);
  font-size: 0.8rem;
}

/* ---------- 11. TABLET AND SMALL LAPTOPS ---------- */
@media (max-width: 62rem) {
  .hero__title {
    font-size: clamp(4rem, 14vw, 8.5rem);
  }

  .portfolio-grid {
    gap: 5rem 1.5rem;
  }

  .project-card--tall {
    grid-column: 1 / span 6;
  }

  .project-card--wide {
    grid-column: 7 / span 6;
  }

  .project-card:nth-child(3) {
    grid-column: 2 / span 7;
  }

  .about {
    grid-template-columns: 0.4fr 2fr;
  }
}

/* ---------- 12. PHONES ---------- */
@media (max-width: 44rem) {
  :root {
    --header-height: 4.75rem;
    --section-space: 6rem;
  }

  .site-header {
    background: rgba(20, 17, 19, 0.93);
  }

  .logo-slot {
    min-width: 7.4rem;
    height: 2.4rem;
  }

  .logo-slot__hint {
    display: none;
  }

  .menu-toggle {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    cursor: pointer;
  }

  .menu-toggle__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .menu-toggle__lines,
  .menu-toggle__lines::before {
    display: block;
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease;
  }

  .menu-toggle__lines {
    position: relative;
  }

  .menu-toggle__lines::before {
    position: absolute;
    top: -0.4rem;
    content: "";
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__lines {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
    top: 0;
    transform: rotate(-90deg);
  }

  .site-nav {
    /*
      Absolute positioning lets the panel grow beyond the fixed header.
      This avoids a mobile-browser quirk where backdrop-filter can trap a
      fixed child inside the header's short containing block.
    */
    position: absolute;
    z-index: 1;
    inset: 0 auto auto 0;
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.8rem;
    padding: var(--gutter);
    background: var(--charcoal);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    transition:
      opacity 260ms ease,
      transform 260ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 14vw, 4.2rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-transform: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 2.5rem;
  }

  .hero__index {
    top: calc(var(--header-height) + 1.4rem);
  }

  .hero__title {
    font-size: clamp(4rem, 20.5vw, 6.2rem);
    line-height: 0.8;
  }

  .hero__title > span {
    margin-top: 0.18em;
    margin-left: 0;
    white-space: normal;
  }

  .hero__footer {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: 3.25rem;
  }

  .text-link {
    width: fit-content;
  }

  .hero__slash {
    left: 72%;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    grid-column: auto;
  }

  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .portfolio-grid {
    display: block;
    margin-top: 4rem;
  }

  .project-card,
  .project-card--tall,
  .project-card--wide,
  .project-card:nth-child(3) {
    width: 100%;
    margin-top: 3.75rem;
  }

  .project-card:first-child {
    margin-top: 0;
  }

  .project-card--wide .frame,
  .project-card:nth-child(3) .frame {
    aspect-ratio: 4 / 5;
  }

  .project-card__caption {
    flex-direction: column;
    gap: 0.25rem;
  }

  .about {
    display: block;
  }

  .about__number {
    margin-bottom: 3rem;
    font-size: 8rem;
  }

  .about__columns {
    grid-template-columns: 1fr;
  }

  .contact {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

/* ---------- 13. ACCESSIBILITY: REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .pointer-light {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
