/* Stanwick Studios — "New" (light) version.
   Brand Sheet v1: Instrument Serif + IBM Plex Mono.
   Ink #141414 · Heritage Green #1F4D3A · Mint #8FC7A8 (on dark) · Paper #F3F0EA */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #141414;
  --green: #1f4d3a;
  --mint: #8fc7a8;
  --paper: #f3f0ea;
  --white: #ffffff;
  --muted: #5d5a53;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
}

/* Small labels: the system font (San Francisco on Apple devices). */
.mono {
  font-family: var(--sys);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cursor {
  display: inline-block;
  width: 0.62em;
  height: 0.16em;
  margin-left: 0.15em;
  background: currentColor;
  animation: blink 1.06s steps(1, end) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Top */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px var(--pad);
}
.top .logo img {
  width: 204px;
}
.contact-link {
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
/* Hover only where there is a real pointer, so a tap on a phone doesn't leave it filled. */
.contact-link:active {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}
@media (hover: hover) {
  .contact-link:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--paper);
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: clamp(72px, 12vw, 150px) var(--pad) 0;
}
.hero h1 {
  font-size: clamp(60px, 11vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.hero h1 span {
  display: block;
  color: var(--green);
}
.hero p {
  max-width: 32ch;
  margin: clamp(32px, 3.6vw, 52px) auto 0;
  font-family: var(--sys);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--sys);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
}
.btn:active {
  background: var(--ink);
}
@media (hover: hover) {
  .btn:hover {
    background: var(--ink);
    transform: translateY(-1px);
  }
}

/* Phone, half on white and half on the green panel */
.stage {
  position: relative;
  margin-top: clamp(72px, 10vw, 120px);
}
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: var(--green);
}
.phone {
  position: relative;
  z-index: 1;
  width: clamp(220px, 24vw, 300px);
  aspect-ratio: 9 / 19.3;
  margin: 0 auto;
  padding: 10px;
  border-radius: 50px;
  background: var(--ink);
  box-shadow: 0 40px 80px -32px rgba(20, 20, 20, 0.5);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 41px;
  overflow: hidden;
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.screen::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(38% 34% at 32% 30%, rgba(143, 199, 168, 0.95), transparent 70%),
    radial-gradient(42% 38% at 70% 66%, rgba(243, 240, 234, 0.5), transparent 70%),
    radial-gradient(48% 42% at 40% 86%, rgba(143, 199, 168, 0.55), transparent 70%);
  filter: blur(16px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from {
    transform: translate(-6%, -4%) rotate(0deg);
  }
  to {
    transform: translate(6%, 5%) rotate(18deg);
  }
}
.screen img,
.screen p {
  position: relative;
  z-index: 1;
}
.screen img {
  width: 60px;
  border-radius: 13px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.screen p {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.screen p::before {
  content: "> ";
  font-weight: 500;
}

/* The cursor that opens into an eye. Four acts, one every 16s, repeating
   every 64s, first act 6s after load: wink; look around and blink; side-eye
   squint at the words; double-take and wink. Keyframes are generated. */
.wink {
  width: 1.8em;
  height: 1.4em;
  margin-left: 0;
  vertical-align: -0.66em;
  overflow: visible;
  color: var(--ink);
}
.wink .cur {
  animation: wink-cur 64s 6s infinite both;
}
.wink .cur rect {
  fill: currentColor;
  animation: blink 1.06s steps(1, end) infinite;
}
.wink .eye {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 18px 14px;
  animation: wink-eye 64s 6s infinite both;
}
.wink ellipse {
  fill: rgba(243, 240, 234, 0.92);
  stroke: currentColor;
  stroke-width: 2;
}
.wink .pupil {
  fill: currentColor;
  animation: wink-look 64s 6s infinite both;
}
.wink .lid {
  opacity: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  animation: wink-lid 64s 6s infinite both;
}
@keyframes wink-cur {
  0% { opacity: 1; }
  0.625% { opacity: 0; }
  4.688% { opacity: 0; }
  5.156% { opacity: 1; }
  25% { opacity: 1; }
  25.625% { opacity: 0; }
  29.844% { opacity: 0; }
  30.312% { opacity: 1; }
  50% { opacity: 1; }
  50.625% { opacity: 0; }
  54.844% { opacity: 0; }
  55.312% { opacity: 1; }
  75% { opacity: 1; }
  75.625% { opacity: 0; }
  80.156% { opacity: 0; }
  80.625% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes wink-eye {
  0% { opacity: 0; transform: scaleY(0.1); }
  0.312% { opacity: 1; transform: scaleY(0.5); }
  0.781% { opacity: 1; transform: scaleY(1); }
  3.125% { opacity: 1; transform: scaleY(1); }
  3.594% { opacity: 0; transform: scaleY(0.05); }
  25% { opacity: 0; transform: scaleY(0.1); }
  25.312% { opacity: 1; transform: scaleY(0.5); }
  25.781% { opacity: 1; transform: scaleY(1); }
  28.594% { opacity: 1; transform: scaleY(1); }
  28.781% { opacity: 1; transform: scaleY(0.06); }
  29% { opacity: 1; transform: scaleY(1); }
  29.688% { opacity: 1; transform: scaleY(1); }
  30.156% { opacity: 0; transform: scaleY(0.1); }
  50% { opacity: 0; transform: scaleY(0.1); }
  50.313% { opacity: 1; transform: scaleY(0.5); }
  50.781% { opacity: 1; transform: scaleY(1); }
  51.562% { opacity: 1; transform: scaleY(1); }
  52.188% { opacity: 1; transform: scaleY(0.42); }
  53.75% { opacity: 1; transform: scaleY(0.42); }
  54.219% { opacity: 1; transform: scaleY(1); }
  54.688% { opacity: 1; transform: scaleY(1); }
  55.156% { opacity: 0; transform: scaleY(0.1); }
  75% { opacity: 0; transform: scaleY(0.1); }
  75.312% { opacity: 1; transform: scaleY(0.5); }
  75.781% { opacity: 1; transform: scaleY(1); }
  78.75% { opacity: 1; transform: scaleY(1); }
  79.219% { opacity: 0; transform: scaleY(0.05); }
  100% { opacity: 0; transform: scaleY(0.1); }
}
@keyframes wink-look {
  0% { transform: translate(0px, 0px); }
  1.406% { transform: translate(0px, 0px); }
  1.875% { transform: translate(4px, 0px); }
  2.5% { transform: translate(4px, 0px); }
  2.969% { transform: translate(0px, 0px); }
  26.25% { transform: translate(0px, 0px); }
  26.562% { transform: translate(-4px, 0px); }
  27.031% { transform: translate(-4px, 0px); }
  27.5% { transform: translate(4px, 0px); }
  27.969% { transform: translate(4px, 0px); }
  28.281% { transform: translate(0px, 0px); }
  51.406% { transform: translate(0px, 0px); }
  52.031% { transform: translate(-4.5px, 0px); }
  53.75% { transform: translate(-4.5px, 0px); }
  54.219% { transform: translate(0px, 0px); }
  76.25% { transform: translate(0px, 0px); }
  76.484% { transform: translate(-4px, 0px); }
  76.797% { transform: translate(0px, 0px); }
  77.344% { transform: translate(0px, 0px); }
  77.531% { transform: translate(-4.5px, 0px); }
  78.125% { transform: translate(-4.5px, 0px); }
  78.359% { transform: translate(0px, 0px); }
  100% { transform: translate(0px, 0px); }
}
@keyframes wink-lid {
  0% { opacity: 0; }
  3.359% { opacity: 0; }
  3.594% { opacity: 1; }
  4.531% { opacity: 1; }
  5% { opacity: 0; }
  78.984% { opacity: 0; }
  79.219% { opacity: 1; }
  80% { opacity: 1; }
  80.469% { opacity: 0; }
  100% { opacity: 0; }
}

/* Green panel */
.panel {
  background: var(--green);
  color: var(--paper);
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--pad) clamp(88px, 12vw, 150px);
}
.panel h2 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.panel p {
  margin: 20px auto 0;
  font-family: var(--sys);
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  color: rgba(243, 240, 234, 0.82);
}

/* Studio */
.studio {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(88px, 13vw, 170px) var(--pad) 0;
}
.studio h2 {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.studio > p {
  max-width: 40ch;
  margin: 28px 0 0;
  font-family: var(--sys);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.facts {
  margin: clamp(48px, 6vw, 72px) 0 0;
}
.facts div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 32px;
  align-items: baseline;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
}
.facts div:last-child {
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}
.facts dt {
  color: var(--green);
}
.facts dd {
  margin: 0;
  font-family: var(--sys);
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Contact */
.contact {
  text-align: center;
  padding: clamp(88px, 13vw, 170px) var(--pad);
}
.contact h2 {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.contact .email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(26px, 3.4vw, 44px);
  color: var(--green);
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}
@media (hover: hover) {
  .contact .email:hover {
    color: var(--ink);
  }
}

/* Footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--pad) 36px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  color: var(--muted);
}
.foot .left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot img {
  width: 28px;
  border-radius: 6px;
}
@media (hover: hover) {
  .foot a:hover {
    color: var(--green);
  }
}

/* Privacy page */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad) clamp(88px, 11vw, 140px);
}
.doc .mono {
  color: var(--green);
  margin: 0 0 18px;
}
.doc h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.doc .updated {
  margin: 18px 0 44px;
  color: var(--muted);
}
.doc h2 {
  margin: 44px 0 10px;
  font-size: 32px;
  line-height: 1.1;
}
.doc p,
.doc li {
  font-family: var(--sys);
  font-size: 18px;
  line-height: 1.55;
  color: #2f2d29;
}
.doc ul {
  padding-left: 1.1em;
}
.doc li + li {
  margin-top: 10px;
}
.doc a {
  color: var(--green);
  border-bottom: 1px solid currentColor;
}

/* 404 */
.lost {
  text-align: center;
  padding: clamp(96px, 16vw, 200px) var(--pad);
}
.lost h1 {
  font-size: clamp(96px, 18vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--green);
}
.lost p {
  margin: 24px 0 0;
  font-family: var(--sys);
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--muted);
}
.lost a {
  color: var(--green);
  border-bottom: 1px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .cursor,
  .screen::before,
  .wink .cur,
  .wink .cur rect,
  .wink .eye,
  .wink .pupil,
  .wink .lid {
    animation: none;
  }
  .btn {
    transition: none;
  }
}

@media (max-width: 560px) {
  .top .logo img {
    width: 176px;
  }
  .facts div {
    grid-template-columns: 1fr;
  }
}
