/* ============================================================
   AIARU — light editorial
   Montserrat throughout
   ============================================================ */

:root {
  --bg:     #F5F2EA;
  --bg-2:   #EDEADF;
  --text:   #161616;
  --body:   #2C2A26;
  --muted:  #6E6A60;
  --dim:    #C5BEB4;
  --line:   #E2DDD2;

  --sans:   "Montserrat", system-ui, sans-serif;

  --max:    1160px;
  --pad:    clamp(24px, 6vw, 80px);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--text); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- paper grain ---- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.025;
}

/* ---- shell ---- */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  background: rgba(245,242,234,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.stuck { border-color: var(--line); }
.brand {
  font-family: var(--sans); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  transition: opacity .2s;
}
.brand:hover { opacity: .6; }
.brand .mk {
  width: 18px; height: 18px; border: 1.5px solid var(--dim); border-radius: 50%;
  display: grid; place-items: center;
}
.brand .mk::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  border: 1px solid var(--dim) !important; border-radius: 999px;
  padding: 6px 14px !important; transition: all .2s !important;
}
.nav-cta:hover {
  background: var(--text) !important; color: var(--bg) !important;
  border-color: var(--text) !important;
}
@media (max-width: 640px) { .nav-links a.label { display: none; } }

/* ---- reveal on scroll ---- */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- enter on load ---- */
.enter { opacity: 0; transform: translateY(12px); }
.loaded .enter {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
}
.loaded .enter.e1 { transition-delay: .06s; }
.loaded .enter.e2 { transition-delay: .18s; }
.loaded .enter.e3 { transition-delay: .30s; }
.loaded .enter.e4 { transition-delay: .42s; }
.loaded .enter.e5 { transition-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
  .enter { opacity: 1; transform: none; }
  .loaded .enter { transition: none; }
}

/* ---- section spacing ---- */
.section { padding: clamp(64px, 10vh, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--dim); display: inline-block; }
h2.head {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08; letter-spacing: -.02em; color: var(--text); max-width: 18ch;
}
.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--text); max-width: 56ch; margin-top: 20px; line-height: 1.6; }
p.body { color: var(--body); max-width: 58ch; margin-top: 16px; font-size: 15px; line-height: 1.65; }
p.body strong { color: var(--text); font-weight: 600; }
.pull {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.18; letter-spacing: -.01em; color: var(--text); max-width: 22ch; margin: 8px 0;
}

/* ---- buttons ---- */
.btn {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--dim);
  transition: all .2s; display: inline-flex; gap: 8px; align-items: center; color: var(--text);
}
.btn.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.solid:hover { background: transparent; color: var(--text); border-color: var(--dim); }
.btn.ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */

body.contact-page {
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.contact-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: clamp(60px, 10vh, 100px) var(--pad);
}
.contact-col {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 20px;
}
.contact-email {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(20px, 3.6vw, 40px); letter-spacing: -.01em;
  color: var(--text); transition: color .2s;
}
.contact-email:hover { color: var(--muted); }
.contact-where {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.contact-link {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--dim); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.contact-link:hover { color: var(--text); border-color: var(--muted); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.story-main {
  padding-top: clamp(52px, 8vh, 88px);
  padding-bottom: clamp(64px, 10vh, 100px);
}

.story-heading {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1; letter-spacing: -.01em; color: var(--text);
  margin-bottom: clamp(36px, 5vh, 56px);
}

.story-portrait {
  width: 100%; max-width: 300px;
  margin-bottom: clamp(48px, 7vh, 72px);
}
.story-portrait img {
  width: 100%; display: block;
  filter: grayscale(1) brightness(.9);
}

.story-lines {
  display: flex; flex-direction: column;
  gap: clamp(22px, 3.5vh, 36px);
  margin-bottom: clamp(56px, 8vh, 88px);
}
.story-line {
  font-family: var(--sans); font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400; line-height: 1.45; color: var(--text);
  max-width: 58ch;
}

.story-divider {
  width: 100%; height: 1px; background: var(--line);
  margin-bottom: clamp(32px, 4.5vh, 48px);
}

.story-creds {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: clamp(56px, 8vh, 88px);
}
.story-cred {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.about-hobbies {
  padding: clamp(40px, 6vh, 64px) 0 0;
  border-top: 1px solid var(--line);
}
.about-hobbies-label {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.about-hobbies-lead {
  font-family: var(--sans); font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400; color: var(--text); margin-bottom: 24px; max-width: 48ch;
}
.about-hobbies-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.about-hobbies-list li {
  font-family: var(--sans); font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400; color: var(--body); max-width: 48ch;
}
.about-hobbies-list li::before { content: "— "; color: var(--dim); }

/* ============================================================
   HOMEPAGE — centered single column
   ============================================================ */

body.home {
  min-height: 100svh;
  display: flex; flex-direction: column;
}

/* globe */
.globe-bg {
  position: fixed;
  bottom: -22vmax;
  right: -18vmax;
  width: 92vmax;
  height: 92vmax;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
}

.corner-nav {
  position: fixed; top: 24px; right: var(--pad); z-index: 50;
  display: flex; gap: 22px;
}
.corner-nav a {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.corner-nav a:hover { color: var(--text); }

.home-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: clamp(36px, 6vh, 64px) var(--pad) clamp(36px, 6vh, 64px);
}
.home-cta {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; color: var(--text);
  border-bottom: 1.5px solid var(--text); padding-bottom: 2px;
  transition: opacity .2s; margin-top: 8px;
}
.home-cta:hover { opacity: .5; }

.home-col {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  position: relative; z-index: 1;
}

.home-portrait {
  width: 100%; max-width: 420px; margin-bottom: 28px;
}
.home-portrait img {
  width: 100%; display: block;
  filter: grayscale(1) brightness(.9);
}

.home-kicker {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}

.home-name {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(44px, 9vw, 88px);
  line-height: .92; letter-spacing: .04em; color: var(--text);
  text-transform: uppercase; margin-bottom: 14px;
}

.home-quote {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--muted); margin-bottom: 44px; letter-spacing: .01em;
}

.home-work {
  width: 100%; margin-bottom: 36px;
}
.home-work-label {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(14px, 1.6vw, 16px); color: var(--muted);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.home-proj {
  display: flex; flex-direction: column; gap: 5px;
  padding: 17px 0; border-bottom: 1px solid var(--line);
  transition: opacity .2s;
}
.home-proj:hover { opacity: .5; }
.home-proj-title {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(15px, 2vw, 18px); color: var(--text);
}
.home-proj-desc {
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  line-height: 1.55; color: var(--body);
}

.home-bottom-links {
  display: flex; align-items: center; gap: 14px;
}
.home-bottom-links a {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.home-bottom-links a:hover { color: var(--text); }
.home-bottom-sep { color: var(--dim); font-size: 11px; }

/* ============================================================
   INNER PAGES (work / about nav shell)
   ============================================================ */

.pageframe {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 22px 0 0;
}

.hero { padding-top: clamp(28px, 6vh, 64px); }
.hero h1 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(48px, 11vw, 140px);
  line-height: .9; letter-spacing: -.03em; color: var(--text);
}

/* work page */
.work-hero { padding: clamp(48px, 8vh, 80px) 0 0; }
.work-page-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.08; letter-spacing: -.02em; color: var(--text);
  max-width: 16ch;
}
.work-proof-heading {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.2; letter-spacing: -.01em; color: var(--text);
  margin-bottom: 20px;
}
.work-proof-body {
  font-family: var(--sans); font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 400; line-height: 1.7; color: var(--body); max-width: 54ch;
}
.proof-link {
  color: inherit; border-bottom: 1.5px solid var(--dim);
  padding-bottom: 1px; transition: border-color .2s;
}
.proof-link:hover { border-color: var(--text); }
.work-proof-aside {
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  line-height: 1.6; color: var(--muted); max-width: 52ch; margin-top: 16px;
}

/* work page proof sheet */
.sheet-dark {
  background: var(--bg); color: var(--text); border-radius: 0;
  padding: clamp(34px, 5.5vw, 68px) 0; border: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sheet-dark .eyebrow { color: var(--muted); }
.sheet-dark .eyebrow::before { background: var(--dim); }
.sheet-dark h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(22px, 3.4vw, 40px); line-height: 1.1;
  letter-spacing: -.02em; color: var(--text); max-width: 18ch;
}
.sheet-dark p { color: var(--body); margin-top: 16px; max-width: 46ch; font-size: 15px; }
.proof-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-top: 6px; }
@media (max-width: 820px) { .proof-grid { grid-template-columns: 1fr; gap: 28px; } }
.bignum .n {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(72px, 13vw, 144px); color: var(--text); opacity: .1;
  display: block; line-height: .82; letter-spacing: -.04em;
}
.bignum .l {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px;
}
.dstats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.dstats div { border-left: 1px solid var(--dim); padding-left: 14px; }
.dstats b { display: block; font-family: var(--sans); font-weight: 700; font-size: 20px; color: var(--text); }
.dstats span { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* project rows */
.projects { margin-top: 38px; border-top: 1px solid var(--line); }
.proj {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px;
  align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: padding-left .3s;
}
.proj:hover { padding-left: 12px; }
.proj .pidx { font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--muted); }
.proj .pm h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(18px, 2.6vw, 28px); letter-spacing: -.01em; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
}
.proj .pm h3 .arr { color: var(--muted); opacity: 0; transform: translateX(-5px); transition: all .3s; }
.proj:hover .pm h3 .arr { opacity: 1; transform: none; }
.proj .pm p { color: var(--body); font-size: 14px; font-weight: 400; margin-top: 7px; max-width: 58ch; }
.proj .ptag {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; white-space: nowrap;
}
@media (max-width: 720px) {
  .proj { grid-template-columns: auto 1fr; gap: 12px; }
  .proj .ptag { grid-column: 2; margin-top: 6px; }
}

/* shared footer */
footer { padding: 42px 0 56px; }
.foot-in {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px;
}
.foot-in a:hover { color: var(--text); }
.footnav { display: flex; gap: 16px; flex-wrap: wrap; }
