/* zelph.agency — static site */

:root {
  --ink: #06120c;
  --ink-2: #0a1f16;
  --green: #123d2b;
  --signal: #00c46a;
  --signal-2: #00a659;
  --signal-3: #38d98c;
  --paper: #fff;
  --sunk: #f4f2ec;
  --mute: #857f73;
  --body: #3c3833;
  --hair: #e7e3da;
  --line: #d4cfc4;
  --info: #3c7bc9;
  --warn: #e0a83c;
  --bad: #c9503c;
  --focus: #00c46a;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --gutter: 40px;
  --measure: 1360px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --fast: 160ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --fast: 0ms; }
  html { scroll-behavior: auto; }
  .glitch { display: none; }
  .portrait { cursor: default; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 16px/1.55 var(--sans);
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--signal-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
::selection { background: #7ce9b4; color: var(--ink-2); }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
#top, #work, #about, #start { scroll-margin-top: 84px; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding: 26px var(--gutter);
}
.topbar-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.topbar-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}
.topbar-mark {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.topbar-mark:hover { color: var(--ink); }
.topbar-contact {
  justify-self: end;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Hero */
.hero { padding-top: 104px; }
.hero-inner {
  display: grid;
  justify-items: center;
  gap: 104px;
}
.hero-copy {
  display: grid;
  gap: 28px;
  justify-items: center;
}
.hero h1 {
  margin: 0;
  max-width: 1080px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 80px;
  line-height: 1.07;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero-lede {
  margin: 0;
  max-width: 42ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  text-align: center;
  text-wrap: pretty;
}
.areas { display: grid; gap: 16px; justify-items: center; }
.areas h2,
.work h2,
.team h2,
.press h2,
.start h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.work h2, .team h2, .start h2 { margin-bottom: 24px; }
.areas-list {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.28;
  color: var(--ink);
}
.areas-list span { white-space: nowrap; }
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--c);
  position: relative;
  top: -0.62em;
  font-style: normal;
}

/* Work */
.work { padding-top: 80px; }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 22px;
}
.tile { display: grid; gap: 14px; align-content: start; }
.tile-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sunk);
  transition: opacity var(--fast) var(--ease);
}
.tile:hover .tile-media { opacity: 0.94; }
.tile-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.tile-copy { display: grid; gap: 8px; }
.tile h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.tile h3 a, .tile h3 span:not(.pill) {
  color: inherit;
  transition: color var(--fast) var(--ease);
}
.tile h3 a span { font-size: 12px; vertical-align: 1px; }
.tile:hover h3 a, .tile:hover h3 span:not(.pill) { color: var(--signal-2); }
.pill {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-2);
  border: 1px solid rgba(0, 166, 89, 0.45);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.tile p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #232120;
  max-width: 52ch;
}
.work-aside {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding-bottom: 48px;
}
.work-aside p {
  margin: 0;
  max-width: 26ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: var(--mute);
}
.work-aside button {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--fast) var(--ease);
}
.work-aside button:hover { color: var(--signal-2); }

/* Statement */
.statement { padding: 136px 0; display: grid; justify-items: center; }
.statement h2 {
  margin: 0;
  max-width: 1040px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 76px;
  line-height: 1.06;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.statement em, .sheet h2 em, .sheet-sent h2 em {
  font-family: var(--serif);
  font-style: italic;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 22px;
}
.person { display: grid; gap: 16px; align-content: start; }
.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sunk);
  cursor: crosshair;
}
.portrait svg { position: absolute; width: 0; height: 0; }
.portrait .base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}
.glitch {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 90ms linear;
  pointer-events: none;
}
.portrait.is-live .glitch { opacity: 1; }
.glitch img,
.glitch .scan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 104px at var(--mx, -400px) var(--my, -400px), #000 0%, #000 46%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 82%);
  mask-image: radial-gradient(circle 104px at var(--mx, -400px) var(--my, -400px), #000 0%, #000 46%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 82%);
}
.glitch .g2 { transform: translateX(5px); mix-blend-mode: screen; opacity: 0.6; }
.glitch .g3 { transform: translateX(-5px); mix-blend-mode: screen; opacity: 0.45; }
.glitch .scan {
  background: repeating-linear-gradient(to bottom, rgba(0,196,106,0.2) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.person h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.person p {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--mute);
}

/* Press */
.press {
  padding-top: 136px;
  display: grid;
  justify-items: center;
  gap: 48px;
}
.press p {
  margin: 0;
  max-width: 46ch;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.16;
  letter-spacing: -0.004em;
  color: var(--ink);
  text-align: center;
}
.press strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.97em;
  letter-spacing: -0.02em;
}

/* Start */
.start { padding-top: 136px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--hair);
}
.step {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  align-content: start;
}
.step span {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-2);
}
.step h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.004em;
  color: var(--ink-2);
}
.step p {
  margin: 0;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hair);
  margin-top: 136px;
  padding: 48px var(--gutter) 40px;
}
.foot-grid {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 64px;
  align-items: start;
}
.clocks { display: flex; gap: 20px; }
.clock {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 44px;
  cursor: pointer;
}
.clock-face { stroke: var(--line); transition: stroke var(--fast) var(--ease); }
.clock:hover .clock-face { stroke: var(--ink); }
.clock span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.clock:hover span { color: var(--ink); }
.foot-links {
  display: grid;
  gap: 24px;
  justify-items: start;
  padding-top: 4px;
}
.foot-label {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.foot-links a, .foot-links button {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-2);
  cursor: pointer;
}
.foot-links button:hover { color: var(--signal-2); }
.foot-end {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
}
.bars {
  width: 16px;
  height: 8px;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) 0 0 / 16px 1.5px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) 0 3.25px / 16px 1.5px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) 5px 6.5px / 11px 1.5px no-repeat;
}
.copy {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Contact modal */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(6, 18, 12, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.sheet {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 44px 44px 36px;
  box-shadow: 0 18px 40px -18px rgba(10, 31, 22, 0.28), 0 2px 6px rgba(10, 31, 22, 0.06);
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  color: var(--mute);
  cursor: pointer;
  border-radius: 999px;
}
.sheet-close:hover { color: var(--ink); }
.sheet-form, .sheet-sent { display: grid; gap: 20px; }
.sheet-head { display: grid; gap: 10px; }
.sheet-head span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.sheet h2, .sheet-sent h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sheet-head p, .sheet-sent p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.sheet-form label { display: grid; gap: 6px; }
.sheet-form label span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.sheet-form label i { color: var(--signal-2); font-style: normal; }
.sheet-form input, .sheet-form textarea {
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font: 400 16px/1.5 var(--sans);
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.sheet-form textarea { resize: vertical; }
.sheet-form input:focus, .sheet-form textarea:focus { border-bottom-color: var(--signal); }
.hp { position: absolute; left: -9999px; }
.fine { margin: 0; font-size: 12.5px; color: var(--mute); text-align: center; }
.fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-error { display: none; margin: 0; color: var(--bad); font-size: 13px; }
.sheet-form.is-error .form-error { display: block; }
.sheet-sent { padding: 12px 0 4px; justify-items: start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 26px;
  font-weight: 500;
  color: var(--ink);
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn:hover { background: var(--signal-3); border-color: var(--signal-3); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  width: auto;
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { background: transparent; border-color: var(--ink); }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topbar { padding: 16px 20px; }
  .topbar-dot { width: 10px; height: 10px; }
  .topbar-mark { font-size: 16px; }
  .topbar-contact { font-size: 11px; }
  .hero { padding-top: 48px; }
  .hero-inner { gap: 64px; }
  .hero-copy { gap: 16px; }
  .hero h1 { font-size: 38px; line-height: 1.08; }
  .hero-lede { font-size: 16px; }
  .areas { gap: 10px; }
  .areas h2, .work h2, .team h2, .press h2, .start h2 { font-size: 13px; }
  .areas-list { gap: 2px 16px; font-size: 19px; }
  .dot { width: 5px; height: 5px; }
  .work, .press, .start { padding-top: 64px; }
  .work-grid { grid-template-columns: 1fr; gap: 34px; }
  .work-aside { padding-bottom: 16px; }
  .statement { padding: 64px 0; }
  .statement h2 { font-size: 31px; line-height: 1.1; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .person h3 { font-size: 10.5px; }
  .person p { font-size: 14px; }
  .press { gap: 32px; }
  .press p { font-size: 21px; line-height: 1.24; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step h3 { font-size: 24px; }
  .site-footer { margin-top: 80px; padding: 32px 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-end {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .overlay { padding: 0; align-items: stretch; }
  .sheet {
    max-width: none;
    border: 0;
    border-radius: 0;
    min-height: 100%;
    padding: 64px 20px calc(28px + env(safe-area-inset-bottom));
  }
  .sheet h2, .sheet-sent h2 { font-size: 31px; }
}
