/* ── SELF-HOSTED FONTS ──
   Cormorant Garamond and Space Grotesk, served from this origin.
   Previously loaded from fonts.googleapis.com / fonts.gstatic.com.
   Subsets: latin + latin-ext only (site copy is English).
   Both families are SIL Open Font License 1.1; see assets/fonts/OFL-*.txt */

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-italic-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-italic-latin.woff2') format('woff2');
  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;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-normal-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-normal-latin.woff2') format('woff2');
  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;
}

/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-variable-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-variable-latin.woff2') format('woff2');
  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;
}

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

:root {
  --dark:    #07090F;
  --teal:    #1AB3C8;
  --teal-hi: #22D4E8;
  --white-t: #E4EAF2;
  --muted-d: #4C5A6B;
  --light:   #FFFFFF;
  --text:    #0F0F0F;
  --muted-l: #6B7280;
  --border-l:#E5E7EB;
  --err:     #DC2626;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --grotesk: 'Space Grotesk', system-ui, sans-serif;
  --max:     1040px;
  --pad:     clamp(1.5rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--grotesk);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
#cur {
  position: fixed;
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 9999;
  transition: width .25s, height .25s, background .25s;
  will-change: left, top;
}

#cur.ring {
  width: 26px; height: 26px;
  background: transparent;
  border: 1.5px solid rgba(26,179,200,.55);
}

@media (hover: none) { #cur { display: none; } body { cursor: auto; } }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(7,9,15,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s;
}

nav.scrolled { border-bottom-color: rgba(255,255,255,.07); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white-t);
  text-decoration: none;
}

.nav-cta {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  padding: .45rem 1.1rem;
  border: 1px solid rgba(26,179,200,.3);
  border-radius: 2px;
  transition: background .2s, border-color .2s;
}

.nav-cta:hover { background: rgba(26,179,200,.08); border-color: var(--teal); }

/* ── HERO (dark) ── */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  background-image: radial-gradient(circle, rgba(26,179,200,.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

#orb {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,179,200,.16) 0%, rgba(26,179,200,.04) 45%, transparent 68%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: left 1.1s cubic-bezier(.16,1,.3,1), top 1.1s cubic-bezier(.16,1,.3,1);
  will-change: left, top;
}

.sh { position: absolute; pointer-events: none; }

.sh-hex {
  width: 120px; height: 120px;
  border: 1px solid rgba(26,179,200,.12);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  top: 11%; right: 7%;
  animation: drift 10s ease-in-out infinite;
}

.sh-hex-sm {
  width: 48px; height: 48px;
  border: 1px solid rgba(26,179,200,.1);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  top: 62%; right: 22%;
  animation: drift 7s ease-in-out infinite -4s;
}

.sh-diamond {
  width: 32px; height: 32px;
  border: 1px solid rgba(26,179,200,.12);
  animation: drift-d 8s ease-in-out infinite -6s;
  top: 77%; left: 9%;
}

.sh-line {
  width: 160px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(26,179,200,.2), transparent);
  top: 33%; left: 5%;
  animation: drift 12s ease-in-out infinite -2s;
}

.sh-ring {
  width: 260px; height: 260px;
  border: 1px solid rgba(26,179,200,.04);
  border-radius: 50%;
  bottom: -70px; left: 44%;
  animation: drift 14s ease-in-out infinite -3s;
}

@keyframes drift {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-13px) rotate(3deg); }
  66%      { transform: translateY(8px) rotate(-2deg); }
}

@keyframes drift-d {
  0%,100% { transform: rotate(45deg) translateY(0); }
  33%      { transform: rotate(50deg) translateY(-11px); }
  66%      { transform: rotate(42deg) translateY(6px); }
}

.hero {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 9rem var(--pad) 5.5rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.4rem;
  animation: lineIn .7s cubic-bezier(.25,.46,.45,.94) .2s both;
}

.hero-titles {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--white-t);
  margin-bottom: 1.75rem;
}

.hero-titles span { display: block; }
.hero-titles span:nth-child(1) { animation: lineIn .7s cubic-bezier(.25,.46,.45,.94) .35s both; }
.hero-titles span:nth-child(2) { animation: lineIn .7s cubic-bezier(.25,.46,.45,.94) .52s both; }
.hero-titles span:nth-child(3) { animation: lineIn .7s cubic-bezier(.25,.46,.45,.94) .68s both; }

@keyframes lineIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-rule {
  width: 40px; height: 1.5px;
  background: var(--teal);
  margin-bottom: 1.6rem;
  animation: lineIn .6s cubic-bezier(.25,.46,.45,.94) .82s both;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-d);
  line-height: 1.82;
  max-width: 44ch;
  margin-bottom: 2.25rem;
  animation: lineIn .6s cubic-bezier(.25,.46,.45,.94) .96s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: .8rem 1.75rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, transform .2s, box-shadow .2s;
  animation: lineIn .6s cubic-bezier(.25,.46,.45,.94) 1.1s both;
}

.hero-btn:hover {
  background: var(--teal-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(26,179,200,.38), 0 0 0 4px rgba(26,179,200,.08);
}

/* ── CIRCULAR PHOTO (on dark hero) ── */
.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: lineIn .8s cubic-bezier(.25,.46,.45,.94) .4s both;
}

.photo-circle {
  width: clamp(200px, 28vw, 320px);
  height: clamp(200px, 28vw, 320px);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  transition: box-shadow .4s ease;
}

.photo-circle:hover {
  box-shadow: 0 0 50px rgba(26,179,200,.3);
}

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

/* ── WORK (white) ── */
.work-wrap {
  background: var(--light);
}

.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem var(--pad);
}

.section-label-dark {
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 3rem;
}

.proj-list { list-style: none; }

.proj-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-l);
  align-items: start;
  cursor: pointer;
  text-decoration: none;
}

.proj-list li:last-child .proj-item { border-bottom: 1px solid var(--border-l); }

.proj-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, var(--teal), transparent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.proj-item:hover::before { transform: scaleY(1); }

.proj-num {
  font-size: .68rem;
  font-weight: 400;
  color: var(--border-l);
  padding-top: .55rem;
  user-select: none;
  transition: color .3s;
}

.proj-item:hover .proj-num { color: var(--teal); }

.proj-name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.06;
  display: inline-block;
  position: relative;
}

.proj-name::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 0; right: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}

.proj-item:hover .proj-name::after { transform: scaleX(1); }

.proj-desc {
  font-size: .875rem;
  font-weight: 300;
  color: var(--muted-l);
  line-height: 1.72;
  max-width: 52ch;
  transition: color .3s;
}

.proj-item:hover .proj-desc { color: #4B5563; }

.tag-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
  padding-top: .4rem;
}

.tag {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: #D1D5DB;
  transition: color .3s;
}

.proj-item:hover .tag { color: var(--teal); }

/* ── ABOUT (dark) ── */
.about-wrap { background: var(--dark); }

.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem var(--pad);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.about-head {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white-t);
  line-height: 1.08;
  position: sticky;
  top: 5.5rem;
}

.about-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-d);
  line-height: 1.9;
}

/* ── CONNECT (white) ── */
.connect-wrap { background: var(--light); }

.connect {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem var(--pad);
}

.connect-head {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2.75rem;
  line-height: 1.06;
}

.connect-head em {
  color: var(--teal);
  font-style: italic;
}

form { display: grid; gap: 1.1rem; max-width: 520px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

input, textarea {
  width: 100%;
  background: #F9FAFB;
  border: 1px solid var(--border-l);
  border-radius: 2px;
  padding: .875rem 1rem;
  font-family: var(--grotesk);
  font-size: .875rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input::placeholder, textarea::placeholder { color: #9CA3AF; }

input:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,179,200,.1);
}

textarea { min-height: 130px; resize: vertical; }

.send-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--grotesk);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: .8rem 1.75rem;
  border: none;
  border-radius: 2px;
  cursor: none;
  width: fit-content;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.send-btn:hover {
  background: var(--teal-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(26,179,200,.3);
}

.social-row { display: flex; gap: 2rem; margin-top: 2.75rem; }

.social-link {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-l);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.social-link:hover { color: var(--teal); }
.social-link:hover::after { transform: scaleX(1); }

/* ── FOOTER (dark) ── */
footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,.06); padding: 1.75rem var(--pad); }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name { font-family: var(--serif); font-size: .9rem; color: var(--muted-d); }
.footer-note { font-size: .65rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: rgba(76,90,107,.45); }


/* ── PRIVACY / LEGAL PAGE ──
   Reuses the site's existing tokens. body.page-legal restores a real cursor:
   the custom teal cursor lives in main.js, which this page does not load, so
   without this rule the page inherits body{cursor:none} and shows no cursor. */

body.page-legal {
  cursor: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-legal .legal-wrap { flex: 1; }

.legal-wrap { background: var(--dark); }

.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9rem var(--pad) 6rem;
  width: 100%;
}

.legal-head {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white-t);
  line-height: 1.08;
  margin-bottom: 2.75rem;
}

.legal-body p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-d);
  line-height: 1.9;
  max-width: 66ch;
  margin-bottom: 1.6rem;
}

.legal-body p:last-child { margin-bottom: 0; }

.legal-body a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,179,200,.35);
  transition: border-color .2s;
}

.legal-body a:hover { border-bottom-color: var(--teal); }

/* Footer name is now an anchor; Privacy link sits inside .footer-note */
a.footer-name { text-decoration: none; cursor: pointer; }

.footer-note a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}

.footer-note a:hover { color: var(--teal); }

/* ── REVEALS ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 7rem; }
  .hero-photo { order: -1; justify-content: flex-start; }
  .photo-circle { width: 130px; height: 130px; }
  .proj-item { grid-template-columns: 2rem 1fr; }
  .tag-col { display: none; }
  .about { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-head { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: .4rem; text-align: center; }
  .sh { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-titles span, .hero-eyebrow, .hero-rule, .hero-sub, .hero-btn, .hero-photo { animation: none; opacity: 1; }
  .sh { animation: none; }
  #cur { display: none; }
  body { cursor: auto; }
}

/* ── FORM VALIDATION + STATUS ──
   Added for the Netlify contact form. Every element here is hidden until the
   form is submitted, so the page as designed renders unchanged. */

.field { min-width: 0; }

.field-error {
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .01em;
  color: var(--err);
  margin-top: .45rem;
  line-height: 1.5;
}

input.invalid, textarea.invalid { border-color: var(--err); }

input.invalid:focus, textarea.invalid:focus {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.form-status {
  font-size: .8rem;
  font-weight: 300;
  line-height: 1.7;
  padding: .875rem 1rem;
  border-radius: 2px;
  border: 1px solid var(--border-l);
  background: #F9FAFB;
  color: var(--muted-l);
}

.form-status.ok {
  border-color: rgba(26,179,200,.35);
  background: rgba(26,179,200,.06);
  color: var(--teal);
}

.form-status.err {
  border-color: rgba(220,38,38,.3);
  background: rgba(220,38,38,.04);
  color: var(--err);
}

.send-btn[disabled] {
  opacity: .55;
  pointer-events: none;
}

[hidden] { display: none !important; }
