/* ORIWYN STUDIO — shared site styles
   Palette carried over from the founder's personal portfolio site. */

* { box-sizing: border-box; }

:root {
  --bg: oklch(0.14 0.012 260);
  --bg-raise: oklch(0.17 0.012 260);
  --card: oklch(0.19 0.012 260);
  --card-border: oklch(0.28 0.01 260);
  --divider: oklch(0.3 0.01 260);
  --text: oklch(0.96 0.005 260);
  --text-body: oklch(0.78 0.01 260);
  --text-body-2: oklch(0.72 0.01 260);
  --text-muted: oklch(0.65 0.01 260);
  --text-muted-2: oklch(0.6 0.01 260);
  --text-faint: oklch(0.55 0.01 260);
  --text-faint-2: oklch(0.5 0.01 260);
  --accent: oklch(0.72 0.12 55);
  --accent-hover: oklch(0.8 0.14 55);
  --big-number: oklch(0.17 0.012 260);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

img, video { max-width: 100%; display: block; }

/* ---------- layout helpers ---------- */
.wrap { padding-left: 6vw; padding-right: 6vw; }
.section { position: relative; padding: 100px 6vw; overflow: hidden; }
.section-tight { padding: 70px 6vw; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  background: oklch(0.14 0.012 260 / 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid oklch(0.28 0.01 260 / 0.6);
}

.site-nav .logo {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  color: var(--text);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.site-nav .logo:hover { color: var(--text); }
.site-nav .logo b { color: var(--accent); font-style: normal; }

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav .links a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body-2);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav .links a:hover,
.site-nav .links a.active { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-nav .links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    padding: 14px 6vw 22px;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .site-nav .links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav .links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 8px 24px oklch(0.72 0.12 55 / 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px oklch(0.72 0.12 55 / 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  padding: 16vh 6vw 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, oklch(0.12 0.012 260 / 0.55) 0%, oklch(0.12 0.012 260 / 0.72) 45%, oklch(0.12 0.012 260 / 0.97) 92%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; max-width: 74ch; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px oklch(0.12 0.012 260 / 0.6);
}
.lede { font-size: clamp(15px, 1.5vw, 18px); color: var(--text-body); max-width: 62ch; line-height: 1.65; }

/* ---------- sections / headings ---------- */
.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.body-text { font-size: 15.5px; color: var(--text-body); line-height: 1.75; }
.body-text + .body-text { margin-top: 16px; }
.max-prose { max-width: 66ch; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border-radius: 6px;
  padding: 28px 26px;
  border: 1px solid var(--card-border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: oklch(0.72 0.12 55 / 0.5); box-shadow: 0 20px 40px oklch(0.08 0.01 260 / 0.5); }

.card-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
}
.card-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 20px; }
.card-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

.media-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border-radius: 6px;
  padding: 16px;
  border: 1px solid var(--card-border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.media-card:hover { transform: translateY(-5px); border-color: oklch(0.72 0.12 55 / 0.5); box-shadow: 0 20px 40px oklch(0.08 0.01 260 / 0.5); }
.media-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 2px; overflow: hidden; background: #000; cursor: pointer; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.media-frame iframe { width: 100%; height: 100%; border: none; }
.media-frame embed { width: 100%; height: 100%; border: none; }
.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.play-btn i {
  width: 60px; height: 60px; border-radius: 50%; background: oklch(0.72 0.12 55 / 0.92);
  display: flex; align-items: center; justify-content: center;
}
.play-btn i::after {
  content: ''; width: 0; height: 0;
  border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid var(--bg);
  margin-left: 4px;
}
.media-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 19px; }
.media-note { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.group-label {
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--text-muted-2);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

/* ---------- category header (portfolio) ---------- */
.cat-index {
  position: absolute; top: 64px; right: 6vw;
  font-family: 'Instrument Serif', serif; font-size: clamp(90px,14vw,220px); line-height: 1;
  color: var(--big-number); z-index: 0; user-select: none; pointer-events: none;
}
.cat-bg-layer {
  position: absolute; top: 0; left: 0; right: 0; height: 560px; width: 100%; object-fit: cover;
  object-position: center; transition: opacity 1.2s ease; opacity: 0; z-index: 0;
}
.cat-bg-layer.active { opacity: 1; }
.cat-scrim {
  position: absolute; top: 0; left: 0; right: 0; height: 560px; z-index: 0;
  background: linear-gradient(180deg, oklch(0.14 0.012 260 / 0.3) 0%, oklch(0.14 0.012 260 / 0.55) 35%, oklch(0.14 0.012 260 / 0.9) 75%, oklch(0.14 0.012 260) 100%);
}
.cat-head { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-role { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 15px; color: var(--text-muted-2); white-space: nowrap; }
.cat-desc { position: relative; z-index: 1; color: var(--text-body-2); font-size: 15.5px; max-width: 64ch; margin-bottom: 48px; }

/* ---------- hex quick-nav (portfolio hero) ---------- */
.hex-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hex {
  position: relative;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  width: 84px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: oklch(0.9 0.005 260);
  background: oklch(0.22 0.015 260 / 0.9);
  border: 1px solid oklch(0.45 0.01 260);
  transition: background 0.25s, color 0.25s, transform 0.25s;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.08em;
}
.hex:hover { background: var(--accent); color: var(--bg); transform: scale(1.08); }

/* ---------- footer ---------- */
.site-footer {
  padding: 54px 6vw 60px;
  border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.site-footer .brand { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 17px; color: var(--text); }
.site-footer .meta { font-size: 13px; color: var(--text-faint-2); }
.site-footer a { color: var(--text-faint-2); }
.site-footer a:hover { color: var(--accent); }

/* ---------- misc ---------- */
.divider-line { height: 1px; background: var(--divider); border: none; margin: 0; }
.cta-band {
  text-align: center; padding: 90px 6vw; display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 8px; }
.stat b { display: block; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 34px; color: var(--accent); }
.stat span { font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.04em; }

.founder {
  display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap;
}
.founder-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; flex: none; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 28px; }
.founder-role { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 6px 0 14px; }

/* ---------- process strip ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--card-border); border-radius: 6px; overflow: hidden; }
.process-step { padding: 30px 26px; border-right: 1px solid var(--card-border); }
.process-step:last-child { border-right: none; }
.process-step .num { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); font-size: 15px; }
.process-step .title { font-family: 'Instrument Serif', serif; font-size: 19px; margin: 8px 0 6px; }
.process-step .desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.contact-line .label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted-2); }
.contact-line .value { font-size: 18px; }
.contact-line .value a { color: var(--text); border-bottom: 1px solid var(--card-border); padding-bottom: 2px; }
.contact-line .value a:hover { color: var(--accent); border-color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted-2); }
.field input, .field textarea {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 6px;
  padding: 13px 14px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 14.5px;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 12.5px; color: var(--text-faint-2); margin-top: 10px; }
