/* ========== Profile site — editorial / paper aesthetic ========== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Geist:wght@300;400;500;600;700&family=Instrument+Serif&display=swap');

:root {
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  --paper:        #fafaf7;
  --paper-2:      #f3f3ee;
  --paper-3:      #ebeae0;
  --ink:          #111110;
  --ink-2:        #2a2a26;
  --ink-3:        #57574f;
  --ink-4:        #8b8a82;
  --rule:         #1f1f1c;
  --rule-soft:    #d9d8cf;
  --rule-hair:    #e6e5db;

  --accent: oklch(58% 0.20 274);

  --gutter: clamp(24px, 5vw, 88px);
  --max:    1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

.mono { font-family: var(--font-mono); }
.small-cap {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}
.ink-3 { color: var(--ink-3); }
.dash { color: var(--accent); margin-right: 10px; font-weight: 500; }

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-hair);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}
.nav__dot {
  width: 9px; height: 9px; background: var(--accent);
  border-radius: 0;
}
.nav__links {
  display: flex; align-items: center; gap: 32px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink) !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
@media (max-width: 720px) {
  .nav__links li:not(:last-child) { display: none; }
}

/* ========== HERO ========== */
.hero {
  padding: 96px var(--gutter) 80px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero__meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
.hero__name {
  font-size: clamp(96px, 18vw, 240px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--ink);
  margin-bottom: 56px;
}
.hero__tagline {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  max-width: 1080px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-hair);
  margin-bottom: 56px;
}
.hero__tagline p {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
  font-weight: 400;
  max-width: 720px;
}
@media (max-width: 720px) {
  .hero__tagline { grid-template-columns: 1fr; gap: 16px; }
}

.hero__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 88px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.hero__band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero__band-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 28px 28px 0;
}
.hero__band-item:not(:first-child) { padding-left: 28px; border-left: 1px solid var(--rule-hair); }
.hero__band-val {
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); margin-top: 4px;
}
@media (max-width: 720px) {
  .hero__band { grid-template-columns: 1fr; }
  .hero__band-item:not(:first-child) {
    padding-left: 0; border-left: none; border-top: 1px solid var(--rule-hair);
  }
}

/* ========== SECTION HEAD ========== */
.section__head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px 32px;
  margin-bottom: 56px;
  padding-top: 96px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.section__num {
  font-size: 14px; color: var(--ink-3);
  letter-spacing: 0.06em;
  grid-row: 1 / span 2;
  padding-top: 8px;
}
.section__lab {
  align-self: end;
}
.section__title {
  grid-column: 2;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  text-wrap: balance;
}
.section__lede {
  grid-column: 2;
  font-size: 18px; color: var(--ink-3); line-height: 1.5;
  max-width: 640px; margin-top: 16px;
  text-wrap: pretty;
}

/* ========== CAPABILITIES ========== */
.cap {
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.cap__grid {
  display: flex; flex-direction: column;
}
.cap__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--rule-hair);
}
.cap__row:last-child { border-bottom: 1px solid var(--rule-hair); }
.cap__key { padding-top: 4px; }
.cap__val { display: flex; flex-wrap: wrap; gap: 8px; }
.cap__tag {
  font-size: 14px; padding: 6px 14px;
  border: 1px solid var(--rule-soft);
  background: var(--paper-2);
  color: var(--ink-2);
}
.cap__tag:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
  .cap__row { grid-template-columns: 1fr; gap: 12px; }
}

/* ========== EXPERIENCE ========== */
.exp {
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.exp__list {
  display: flex; flex-direction: column;
}
.exp__role {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule-hair);
  transition: background 0.15s;
}
.exp__role:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.exp__role-mark {
  font-size: 14px; color: var(--ink-3);
  padding-top: 4px;
}
.exp__role-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}
.exp__company { color: var(--accent) !important; }
.exp__title {
  font-size: 28px; font-weight: 500; letter-spacing: -0.015em;
  margin-top: 6px;
}
.exp__dates { font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; white-space: nowrap; }
.exp__summary {
  font-size: 17px; color: var(--ink-3); line-height: 1.55;
  font-style: italic; max-width: 760px;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.exp__bullets {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 820px;
}
.exp__bullets li {
  font-size: 16px; line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}
.exp__role--earlier { padding: 28px 0; }
.exp__role--earlier .exp__summary { font-style: normal; font-size: 16px; }

@media (max-width: 720px) {
  .exp__role { grid-template-columns: 1fr; gap: 12px; }
  .exp__role-head { grid-template-columns: 1fr; gap: 4px; }
  .exp__title { font-size: 22px; }
}

.edu {
  display: grid;
  grid-template-columns: 80px 220px 1fr;
  gap: 24px 32px;
  align-items: end;
  padding: 36px 0 96px;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}
.edu .section__num { padding: 0; }
.edu__row { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 720px) {
  .edu { grid-template-columns: 1fr; }
}

/* ========== APPS ========== */
.apps {
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.apps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-hair);
  border: 1px solid var(--rule-hair);
}
.app {
  background: var(--paper);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.app:hover { background: var(--paper-2); }
.app__placeholder {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper-2),
      var(--paper-2) 8px,
      var(--paper-3) 8px,
      var(--paper-3) 16px
    );
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--rule-hair);
}
.app__placeholder--logo {
  background: var(--paper);
  padding: 36px 32px;
  min-width: 0;
}
.app__logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.app__body {
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.app__name {
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  margin-top: 4px;
}
.app__desc {
  font-size: 15px; line-height: 1.5; color: var(--ink-3);
  flex: 1; text-wrap: pretty;
}
.app__link {
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.app--ghost {
  padding: 28px;
  background: var(--paper-2);
  display: flex; flex-direction: column; justify-content: flex-start;
}
@media (max-width: 720px) {
  .apps__grid { grid-template-columns: 1fr; }
}

/* ========== CONTACT ========== */
.contact {
  margin-top: 96px;
  background: var(--ink);
  color: var(--paper);
  padding: 96px var(--gutter);
}
.contact__inner { max-width: var(--max); margin: 0 auto; }
.contact__h {
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 24px 0 32px;
}
.contact__h span { font-family: var(--font-serif); font-weight: 400; }
.contact__lede {
  font-size: 20px; line-height: 1.5; max-width: 720px;
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: 80px;
  text-wrap: pretty;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact__item {
  background: var(--ink);
  padding: 28px 0;
  padding-right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background 0.15s;
}
.contact__item:not(:first-child) { padding-left: 24px; }
.contact__item:hover { background: rgba(255,255,255,0.04); }
.contact__item .small-cap { color: rgba(255,255,255,0.4); }
.contact__val {
  font-size: 18px; font-weight: 500; color: var(--paper);
  letter-spacing: -0.01em;
}
a.contact__item:hover .contact__val { color: var(--accent); }
@media (max-width: 720px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__item:not(:first-child) { padding: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
}

/* ========== FOOTER ========== */
.foot {
  background: var(--ink); color: var(--paper);
  padding: 24px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.foot .small-cap { color: rgba(255,255,255,0.35); }

/* ========== Layout variants via Tweaks ========== */
/* Split layout: hero name on left, tagline on right */
.profile--split .hero__name {
  font-size: clamp(72px, 12vw, 160px);
}
.profile--split .hero__tagline {
  grid-template-columns: 1fr 1fr;
}

/* Indexed: tighter, more meta */
.profile--indexed .hero__name { font-style: italic; font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }
.profile--indexed .section__title { font-family: var(--font-serif); font-weight: 400; }

/* Density */
body:has(.profile) { --row-pad: 36px; }
.profile--compact .exp__role { padding: 22px 0; }
.profile--compact .cap__row { padding: 20px 0; }
.profile--compact .section__head { margin-bottom: 40px; padding-top: 64px; padding-bottom: 24px; }
.profile--spacious .exp__role { padding: 56px 0; }
.profile--spacious .cap__row { padding: 40px 0; }
.profile--spacious .section__head { padding-top: 128px; padding-bottom: 48px; }
