/* Instrument Serif — self-hosted */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-normal.woff2") format("woff2"), url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-normal-ext.woff2") format("woff2"), url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2"), url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic-ext.woff2") format("woff2"), url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --background: oklch(0.995 0.004 80);
  --foreground: oklch(0.452 0.313 264.05);
  --hairline: oklch(0.452 0.313 264.05 / 55%);
}

*, *::before, *::after { box-sizing: border-box; border-color: oklch(0.452 0.313 264.05 / 25%); }

html, body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--foreground); color: var(--background); }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ---- shell ---- */
main { position: relative; min-height: 100vh; }

#strands-canvas {
  position: fixed; inset: 0; z-index: 0; opacity: 0.17; pointer-events: none;
}

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; mix-blend-mode: difference;
}
.site-nav > div { padding: 20px 24px; }

.page-pad { padding-top: 96px; }

/* ---- noise overlay ---- */
.noise { pointer-events: none; position: fixed; inset: 0; z-index: 1; }
.noise-wash { background-color: rgba(0, 0, 0, 0.03); mix-blend-mode: multiply; }
.noise-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/><feComponentTransfer><feFuncA type='discrete' tableValues='0 0 0 0 0.6 0.85 1 1'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.37;
}
.noise-specks {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch' seed='8'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/><feComponentTransfer><feFuncA type='discrete' tableValues='0 0 0 0 0 0.5 0.9 1'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
  opacity: 0.27;
}
.noise-pepper {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='15'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: 0.14;
}

/* ---- subtle background grain (behind strands) ---- */
.noise-bg {
  pointer-events: none; position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/><feComponentTransfer><feFuncA type='discrete' tableValues='0 0 0 0 0.6 0.85 1 1'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.05;
}

/* ---- hero ---- */
.hero {
  position: relative; z-index: 10;
  padding: 112px 24px 40px;
  display: flex; flex-direction: column;
}
.hero h1 {
  font-style: italic;
  line-height: 0.82;
  letter-spacing: -0.02em;
  font-size: clamp(5rem, 22vw, 22rem);
}

/* ---- about ---- */
.about {
  position: relative; z-index: 10;
  padding: 96px 24px 48px;
}
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.about-col { grid-column: span 12 / span 12; max-width: 56rem; }
.about-col > * + * { margin-top: 16px; }
.about-lede {
  line-height: 1.05; letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
}
.about-body {
  line-height: 1.25; max-width: 42rem; opacity: 0.9;
  font-size: clamp(1.125rem, 1.4vw, 1.5rem);
}
.about-pull {
  font-style: italic; max-width: 42rem;
  font-size: clamp(1.25rem, 1.8vw, 2rem);
}
.dim80 { opacity: 0.8; }
.hl {
  background: var(--foreground); color: var(--background);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 4px;
}

/* ---- services ---- */
.services { position: relative; z-index: 10; padding: 48px 0 64px; }
.strand-head { padding: 24px 24px; }
.strand-head h3 {
  font-style: italic; line-height: 0.95; letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 3.6vw, 3.75rem);
}
.zip {
  position: relative; width: 100%;
  user-select: none; -webkit-user-select: none;
  overflow: hidden; touch-action: none;
}
.zip-desc {
  position: absolute; left: 0; right: 0; top: 54px;
  display: flex; align-items: flex-start; justify-content: center;
  pointer-events: none;
  padding-left: 17%; padding-right: 17%;
}
.zip-desc p {
  line-height: 1.3; text-align: left; max-width: 48rem;
  font-size: clamp(0.95rem, 1.15vw, 1.25rem);
}
.zip svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.zip-knob {
  position: absolute; left: 50%; z-index: 10;
  transform: translate(-50%, -50%);
  cursor: grab;
}
.zip-knob.dragging { cursor: grabbing; }
.knob-hit { position: absolute; inset: -20px; }
.knob-dot {
  width: 12px; height: 12px; border-radius: 9999px;
  background: var(--foreground);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  animation: strand-pulse 1.8s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes strand-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0,0,255,0.55); }
  50% { transform: scale(1.25); opacity: 0.85; box-shadow: 0 0 0 10px rgba(0,0,255,0); }
}

/* ---- contact ---- */
.contact { position: relative; z-index: 10; padding: 64px 24px; }
.contact h2 {
  font-style: italic; line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 48px;
  font-size: clamp(2.5rem, 7vw, 7rem);
}
.contact-intro {
  max-width: 42rem; opacity: 0.9; margin-bottom: 48px;
  font-size: clamp(1.05rem, 1.3vw, 1.4rem);
}
.cform { max-width: 42rem; }
.cform > * + * { margin-top: 40px; }
.cform label { display: block; }
.cform input, .cform textarea {
  width: 100%; background: transparent; color: inherit;
  border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0;
  padding: 12px 0; outline: none;
  font-family: "Instrument Serif", serif;
}
.cform input:focus, .cform textarea:focus { border-bottom-color: var(--foreground); }
.cform input { font-style: italic; font-size: 24px; }
.cform textarea { font-size: 20px; line-height: 1.375; resize: none; }
.cform input::placeholder, .cform textarea::placeholder { color: inherit; opacity: 0.8; }
.ferr { font-size: 12px; margin-top: 8px; display: block; opacity: 0.9; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.submit-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; color: inherit;
  border: 1px solid var(--hairline);
  padding: 12px 24px;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px;
  font-family: "Instrument Serif", serif;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(.4,0,.2,1), color 150ms cubic-bezier(.4,0,.2,1);
}
.submit-btn:hover { background: var(--foreground); color: var(--background); }
.submit-btn:disabled { opacity: 0.5; }
.submit-btn .arrow { display: inline-block; transition: transform 150ms cubic-bezier(.4,0,.2,1); }
.submit-btn:hover .arrow { transform: translateX(4px); }
.send-note { font-size: 12px; opacity: 0.9; }

/* ---- footer ---- */
.site-footer { position: relative; z-index: 10; }
.footer-inner {
  padding: 24px 24px;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between;
  gap: 24px;
}
.copyright { opacity: 0.6; text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; }
.socials { display: flex; align-items: center; gap: 16px; }
.socials a { transition: opacity 150ms cubic-bezier(.4,0,.2,1); display: inline-flex; }
.socials a:hover { opacity: 0.7; }

/* ---- md breakpoint ---- */
@media (min-width: 768px) {
  .site-nav > div { padding: 20px 40px; }
  .page-pad { padding-top: 128px; }
  .hero { padding: 160px 40px 64px; }
  .about { padding: 160px 40px 80px; }
  .grid12 { gap: 40px; }
  .about-col { grid-column: span 9 / span 9; }
  .services { padding: 80px 0 80px; }
  .strand-head { padding: 36px 40px; }
  .contact { padding: 80px 40px; }
  .submit-btn { font-size: 14px; }
  .footer-inner { flex-direction: row; align-items: flex-end; padding: 24px 40px; }
}
