/* ============================================================
   ORIE J. BRAUN — public profile
   Deep-water / technical aesthetic
   ============================================================ */

:root {
  /* surfaces */
  --ink:    #07151d;
  --ink-2:  #0a1d28;
  --ink-3:  #0f2734;
  --ink-4:  #143040;
  --line:   rgba(173, 208, 224, 0.12);
  --line-2: rgba(173, 208, 224, 0.22);

  /* text */
  --text:   #e9f1f5;
  --muted:  #8aa6b6;
  --faint:  #557083;

  /* accent (tweakable) */
  --accent:     #194782;
  --accent-2:   #5f97da;
  --accent-ink: #ffffff;
  --accent-glow: rgba(25, 71, 130, 0.42);
  --plunkx: #34c06a;

  --maxw: 1180px;
  --gut: 40px;

  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --disp: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* light theme override */
:root[data-theme="light"] {
  --ink:    #f3f0e9;
  --ink-2:  #ebe7dd;
  --ink-3:  #e3ded2;
  --ink-4:  #d9d3c4;
  --line:   rgba(20, 40, 52, 0.14);
  --line-2: rgba(20, 40, 52, 0.26);
  --text:   #14242e;
  --muted:  #4d6371;
  --faint:  #8395a0;
  --accent-ink: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--disp);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.section { position: relative; padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* mono kicker / section label */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker .idx { color: var(--faint); }
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-top: 18px;
  max-width: 18ch;
  text-wrap: balance;
}
.sec-head .lead {
  color: var(--muted);
  max-width: 38ch;
  font-size: 17px;
}

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 680; letter-spacing: -0.02em; font-size: 16px;
}
.brand .mark {
  width: 30px; height: 30px; position: relative; flex: none;
  display: grid; place-items: center;
}
.brand .mark svg { width: 100%; height: 100%; }
.brand { white-space: nowrap; }
.brand small {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--faint); text-transform: uppercase; display: block;
  margin-top: 1px; font-weight: 400; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--muted); padding: 8px 13px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--ink-3); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 620; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px var(--accent-glow); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 84vh;
  align-items: stretch;
}
.hero-left {
  padding: 64px var(--gut) 64px 0;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 15px; width: fit-content; margin-bottom: 30px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow); animation: pulse 2.6s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 680;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--accent-2);
  text-stroke: 1.4px var(--accent-2);
}
.hero-sub {
  margin-top: 30px; max-width: 46ch;
  color: var(--muted); font-size: 19px; line-height: 1.55;
}
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--text);
  transition: all .25s var(--ease); background: transparent;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { box-shadow: 0 14px 34px -10px var(--accent-glow); transform: translateY(-1px); }
.btn.ghost:hover { background: var(--ink-3); border-color: var(--line-2); }

.hero-right { position: relative; }
.hero-portrait {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, var(--ink) 0%, transparent 32%),
              linear-gradient(0deg, var(--ink) 2%, transparent 26%);
}
/* coordinate ticks down the hero divider */
.hero-meta {
  position: absolute; left: 0; bottom: 28px; z-index: 3;
  display: flex; gap: 28px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--faint);
}
.hero-meta span b { color: var(--accent-2); font-weight: 500; }

/* faint depth grid behind hero */
.depth-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 88px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ---------- stats band ---------- */
.stats {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.stat {
  padding: 44px 26px; border-left: 1px solid var(--line); position: relative;
}
.stat:first-child { border-left: none; }
.stat .num {
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 660;
  letter-spacing: -0.03em; line-height: 1; color: var(--text);
  display: flex; align-items: baseline; gap: 2px;
}
.stat .num .plus { color: var(--accent-2); font-size: 0.62em; }
.stat .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 14px;
}

/* ---------- bio ---------- */
.bio-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.bio-portrait {
  width: 100%; aspect-ratio: 4/5; position: sticky; top: 100px;
}
.bio-copy p { color: var(--muted); font-size: 18px; margin-bottom: 22px; line-height: 1.7; }
.bio-copy p b, .bio-copy strong { color: var(--text); font-weight: 600; }
.bio-copy .first { font-size: 22px; color: var(--text); line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px;
}
.tag .accent { color: var(--accent-2); }

/* ---------- qualifications ---------- */
.qual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.qual {
  border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2);
  padding: 26px 28px; display: flex; gap: 20px; align-items: flex-start;
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.qual:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--ink-3); }
.qual .q-no {
  font-family: var(--mono); font-size: 12px; color: var(--accent-2);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 9px;
  flex: none; letter-spacing: 0.05em;
}
.qual h3 { font-size: 19px; font-weight: 620; letter-spacing: -0.01em; }
.qual p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.qual .agency {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin-top: 12px;
}

/* ---------- exploration ---------- */
.exp-list { display: flex; flex-direction: column; }
.exp {
  display: grid; grid-template-columns: 56px 1.1fr 1fr 0.8fr; gap: 28px;
  align-items: center; padding: 28px 8px; border-top: 1px solid var(--line);
  transition: background .25s; position: relative;
}
.exp:hover { background: var(--ink-2); }
.exp:last-child { border-bottom: 1px solid var(--line); }
.exp .yr { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.exp h3 { font-size: 23px; font-weight: 620; letter-spacing: -0.02em; }
.exp .where { color: var(--muted); font-size: 15px; }
.exp .kind {
  justify-self: end; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px;
}
.exp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.exp-gallery image-slot { width: 100%; aspect-ratio: 3/2; }

/* ---------- affiliations ---------- */
.aff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aff {
  border: 1px solid var(--line); border-radius: 16px; padding: 30px;
  background: var(--ink-2); min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.aff:hover { border-color: var(--line-2); background: var(--ink-3); transform: translateY(-3px); }
.aff .logo {
  font-family: var(--disp); font-weight: 740; font-size: 22px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 12px;
}
.aff .logo .glyph {
  width: 48px; height: 48px; border-radius: 11px; flex: none;
  display: grid; place-items: center; border: 1px solid var(--line-2);
  background: #fff; overflow: hidden; padding: 7px;
}
.aff .logo .glyph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.aff .role { color: var(--text); font-weight: 600; font-size: 17px; margin-top: 8px; }
.aff .org { color: var(--muted); font-size: 14px; margin-top: 4px; }
.aff .meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------- quote ---------- */
.quote { background: var(--ink-2); text-align: center; overflow: hidden; position: relative; }
.quote .mark {
  font-family: var(--disp); font-size: 200px; line-height: 0.6; color: var(--ink-4);
  height: 90px; user-select: none;
}
.quote blockquote {
  font-size: clamp(28px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.1; max-width: 20ch; margin: 0 auto; text-wrap: balance;
}
.quote blockquote .hl { color: var(--accent-2); }
.quote cite {
  display: block; margin-top: 34px; font-family: var(--mono); font-style: normal;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}

/* ---------- instagram ---------- */
.ig-accounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.ig-acc {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px 8px 9px;
  transition: border-color .25s, background .25s; cursor: pointer;
}
.ig-acc:hover { border-color: var(--accent); background: var(--ink-3); }
.ig-acc .av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: var(--accent-ink);
  font-weight: 700; font-size: 12px;
}
.ig-acc .h { font-family: var(--mono); font-size: 13px; color: var(--text); }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ig-cell { position: relative; }
.ig-cell image-slot { width: 100%; aspect-ratio: 1/1; }
.ig-cell .tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 4; pointer-events: none;
  font-family: var(--mono); font-size: 11px; color: #fff; letter-spacing: .04em;
  background: rgba(4,16,22,.6); backdrop-filter: blur(4px);
  padding: 4px 9px; border-radius: 6px; border: none;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 660; letter-spacing: -0.035em; line-height: 1; }
.contact .lead { color: var(--muted); font-size: 19px; margin-top: 24px; max-width: 36ch; }
.contact-card { border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); overflow: hidden; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: var(--ink-3); }
.contact-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.contact-row .v { font-size: 17px; font-weight: 560; }
.contact-row .v.accent { color: var(--accent-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 78px 0 28px; overflow: hidden; }
.footer-mark { line-height: 0.78; margin-bottom: 54px; }
.footer-mark > span {
  display: block; text-align: left; white-space: nowrap; user-select: none;
  font-family: var(--disp); font-weight: 800; letter-spacing: -0.012em;
  font-size: clamp(120px, 34vw, 420px);
  color: transparent;
  -webkit-text-stroke: 1.6px var(--line-2);
  transition: -webkit-text-stroke-color .45s var(--ease);
}
.footer:hover .footer-mark > span { -webkit-text-stroke-color: var(--accent); }
.footer-mark .fill { display: inline; color: var(--accent); -webkit-text-stroke: 0; }

.footer-cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.15fr; gap: 40px;
  padding-bottom: 56px;
}
.fcol { display: flex; flex-direction: column; align-items: flex-start; }
.fcol h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 500; margin-bottom: 20px;
}
.fcol a, .fcol .fstatic {
  color: var(--muted); font-size: 16px; padding: 8px 0; transition: color .2s; width: fit-content;
}
.fcol a:hover { color: var(--text); }
.fcol-lead p { color: var(--muted); font-size: 16px; line-height: 1.62; max-width: 36ch; }

.footer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); padding-top: 26px; flex-wrap: wrap;
}
.fbar-left {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.fbar-left b { color: var(--plunkx); font-weight: 500; }
.builton {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 7px 7px 20px;
  transition: border-color .25s;
}
.builton:hover { border-color: var(--plunkx); }
.px-logo { font-family: var(--disp); font-weight: 800; letter-spacing: -0.02em; font-size: 15px; color: var(--text); }
.px-logo b { color: var(--plunkx); }
.px-text { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.px-arrow {
  width: 30px; height: 30px; border-radius: 50%; background: var(--plunkx); color: #04130a;
  display: grid; place-items: center; font-size: 14px; flex: none;
}

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- tweaks panel ---------- */
#tw {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 244px; background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  font-family: var(--mono); display: none;
}
#tw.show { display: block; }
#tw h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 14px; }
#tw .grp + .grp { margin-top: 18px; }
#tw .glabel { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
#tw .swatches { display: flex; gap: 8px; }
#tw .sw { width: 30px; height: 30px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: transform .15s; }
#tw .sw:hover { transform: scale(1.08); }
#tw .sw.on { border-color: var(--text); }
#tw .seg { display: flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
#tw .seg button {
  flex: 1; background: transparent; color: var(--muted); border: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; padding: 8px 0; letter-spacing: 0.08em; text-transform: uppercase;
}
#tw .seg button.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { padding: 56px 0 0; }
  .hero-right { min-height: 56vh; }
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  .bio-portrait { position: static; aspect-ratio: 16/10; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; }
  .qual-grid, .aff-grid { grid-template-columns: 1fr; }
  .exp { grid-template-columns: 44px 1fr; grid-auto-flow: row; gap: 6px 18px; }
  .exp .where { grid-column: 2; }
  .exp .kind { grid-column: 2; justify-self: start; margin-top: 6px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-gallery { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .fcol-lead { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gut: 22px; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}
