@font-face { font-family: Outfit; src: url(../fonts/Outfit-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Outfit; src: url(../fonts/Outfit-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(../fonts/Outfit-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/GeistMono-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --night: #07061a;
  --blossom: #f6c3d2;
  --blossom-deep: #e8799d;
  --text: #f4f1f8;
  --dim: rgba(244, 241, 248, .62);
  --faint: rgba(244, 241, 248, .38);
  --line: rgba(244, 241, 248, .14);
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mono: 500 11px/1.4 "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 300 17px/1.5 Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blossom); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--blossom-deep); color: #fff; }

/* Accent words: same face, lighter weight, blossom colour */
.soft { font-weight: 300; color: var(--blossom); }

/* Fixed night sky and blossom canvas behind every section */
.night {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(70% 50% at 78% 108%, rgba(232, 121, 157, .40) 0%, rgba(92, 40, 96, .30) 42%, transparent 74%),
    radial-gradient(45% 40% at 8% -5%, rgba(64, 54, 150, .38) 0%, transparent 70%),
    linear-gradient(180deg, #04031a 0%, #0f0c33 58%, #221443 100%);
}
#sky { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 2s var(--ease); }
#sky.ready { opacity: 1; }

/* Intro: the logo blooms at the centre, then moves into the navbar */
.intro-veil { position: fixed; inset: 0; z-index: 30; background: #06051a; pointer-events: none; }
.intro-logo {
  position: fixed; left: 0; top: 0; z-index: 31;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
.intro .logo svg { opacity: 0; }
.intro body { overflow: hidden; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.nav a { pointer-events: auto; }
.logo svg { width: 30px; height: 30px; display: block; transition: transform 1.2s var(--ease); }
.logo:hover svg { transform: rotate(72deg); }
.nav-mail {
  font: var(--mono); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  padding: 10px 0; border-bottom: 1px solid rgba(244, 241, 248, .4);
  text-shadow: 0 1px 14px rgba(7, 6, 26, .7);
}
.nav-mail:hover { color: var(--blossom); border-bottom-color: var(--blossom); }


.label { margin: 0 0 28px; font: var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blossom); }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(28px, 5vh, 56px);
}
.hero h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(52px, 10.5vw, 168px);
  line-height: .96;
  letter-spacing: -.04em;
}
.hero h1 .line { display: block; overflow: hidden; padding: 0 .06em .1em 0; margin-bottom: -.1em; }
.hero h1 .w { display: inline-block; }
.js .hero h1 .w { transform: translateY(110%); transition: transform 1.6s var(--ease); }
.js .hero h1 .line:nth-child(2) .w { transition-delay: .14s; }
.js.loaded .hero h1 .w { transform: none; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: clamp(28px, 5vh, 56px); padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tag { margin: 0; font-size: clamp(17px, 1.6vw, 22px); color: var(--dim); }
.hint { margin: 0; font: var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.js .hero-foot { opacity: 0; transition: opacity 1.6s var(--ease) .7s; }
.js.loaded .hero-foot { opacity: 1; }

/* Work */
.work { padding: clamp(120px, 18vh, 220px) var(--gutter) clamp(80px, 12vh, 160px); }
.giant {
  margin: 0;
  font-size: clamp(64px, 14vw, 232px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--text);
}
.work-row { position: relative; display: grid; grid-template-columns: 1fr 1.3fr; align-items: start; margin-top: 0; }
.work-copy { padding-top: 64px; }
.work-copy p { margin: 0 0 22px; max-width: 15ch; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.18; letter-spacing: -.01em; font-weight: 300; color: var(--dim); }
.work-copy a {
  font: var(--mono); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--blossom);
  padding-bottom: 6px; border-bottom: 1px solid rgba(246, 195, 210, .4);
}
.work-copy a span { display: inline-block; transition: transform .3s var(--ease); }
.work-copy a:hover span { transform: translateX(4px); }
.phones { position: relative; height: clamp(520px, 52vw, 760px); }
.phone {
  position: absolute;
  width: clamp(200px, 19vw, 290px);
  aspect-ratio: 660 / 1435;
  padding: 7px; border-radius: 44px;
  background: #0d0d16;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0 80px -20px rgba(232, 121, 157, .35);
  will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone.one { left: 14%; top: 0; --r: -6deg; transform: rotate(var(--r)); }
.phone.two { left: 50%; top: 14%; --r: 5deg; transform: rotate(var(--r)); }
.tally { padding-top: clamp(60px, 10vh, 120px); padding-bottom: clamp(40px, 6vh, 80px); }
.shot { will-change: transform; }
.shot img {
  width: min(100%, 600px); height: auto; margin: 24px 0 0 auto;
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, .55)) drop-shadow(0 0 70px rgba(255, 107, 87, .16));
}

/* Hello */
.hello { padding: clamp(100px, 16vh, 200px) var(--gutter) clamp(80px, 12vh, 140px); }
.mail {
  display: inline-block;
  font-size: min(5.6vw, 92px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(var(--blossom), var(--blossom)) 0 100% / 0 2px no-repeat;
  padding: 0 .08em .08em 0;
  transition: background-size .8s var(--ease), color .4s;
}
.mail:hover { background-size: 100% 2px; color: var(--blossom); }

.legal {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  font: var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint);
}
.legal span:last-child { margin-left: auto; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .work-row { grid-template-columns: 1fr; margin-top: 0; }
  .work-copy { padding-top: 32px; }
  .phones { height: 500px; margin-top: 48px; }
  .phone { width: 190px; border-radius: 36px; padding: 6px; }
  .phone img { border-radius: 30px; }
  .phone.one { left: 0; }
  .phone.two { left: auto; right: 0; top: 70px; }
  .shot img { width: 100%; margin-top: 48px; }
  .mail { font-size: 8.6vw; }
  .legal { flex-direction: column; gap: 6px; }
  .legal span:last-child { margin-left: 0; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 15.5vw; }
  .hint { display: none; }
}
@media (max-width: 420px) {
  .phone { width: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero h1 .w, .js .hero-foot { opacity: 1; transform: none; transition: none; }
  #sky { transition: none; }
}
