/* ===================================================================
   Nítid — shared stylesheet (index.html, about.html, portfolio.html)
   =================================================================== */
:root {
  --teal-deep:  #19343B;
  --teal-mid:   #2C565D;
  --white:      #FFFFFF;
  --white-dim:  rgba(255,255,255,0.72);
  --white-faint:rgba(255,255,255,0.48);
  --line:       rgba(255,255,255,0.16);
  --glass:      rgba(25,52,59,0.55);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --band: 1180px;        /* width of the centred content band — raise for more room, lower to tighten */
}

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

body {
  min-height: 100svh;
  background: linear-gradient(180deg, var(--teal-deep) 0%, var(--teal-deep) 64%, var(--teal-mid) 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--mono);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* drifting pollen/dust behind everything */
.motes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* centred content band, reused by every section */
.wrap { position: relative; z-index: 1; max-width: var(--band); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }

/* ── NAV (frosted, sticky) ── */
.nav {
  position: sticky; top: 0; z-index: 10;
  padding: 1.1rem 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.55rem; }
.nav-logo .m { height: 30px; width: auto; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.nav-logo:hover .m { transform: rotate(90deg); }       /* aperture actuates on hover */
.nav-logo .w { height: 17px; width: auto; }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 1.8rem); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links a { color: var(--white-dim); text-decoration: none; padding: 0.2rem 0; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { border-bottom: 1px solid var(--white); }
.nav-links a:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.9em 1.5em; border: 1px solid var(--line); border-radius: 2px;
  color: var(--white); text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }
.btn-primary { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* ── HERO (home) ── */
.hero { position: relative; min-height: calc(100svh - 60px); display: flex; }
.hero .wrap { display: flex; align-items: center; width: 100%; }
.hero-text { max-width: 32rem; position: relative; z-index: 2; padding: 3rem 0; }
.eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white-faint); margin-bottom: 1.4rem; }
.h1 { font-weight: 700; font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.01em; }
.h2 { font-weight: 600; font-size: clamp(1rem, 2.8vw, 1.35rem); margin-top: 0.7rem; }
.hero-copy { margin-top: 1.5rem; }
.hero-copy p { display: none; color: var(--white-dim); line-height: 1.8; font-size: clamp(0.92rem, 2.1vw, 1.02rem); max-width: 30rem; }
.hero-copy p.on { display: block; }
.cta { display: flex; gap: 0.9rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* soft futuristic glow + cut-out figure, bottom-right of the hero band */
.glow { position: absolute; right: 4%; bottom: 12%; width: min(46vh, 420px); aspect-ratio: 1; z-index: 0;
        background: radial-gradient(circle, rgba(82,150,159,0.35) 0%, rgba(82,150,159,0) 70%); pointer-events: none; }
.portrait {
  position: absolute; right: 0; bottom: 0;
  height: min(84vh, 760px); width: auto;
  z-index: 1; pointer-events: none; user-select: none;
}

/* small language switcher */
.langs { display: flex; gap: 1.1rem; margin-top: 2.2rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.langs button {
  background: none; border: 0; padding: 0.2rem 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--white-faint); transition: color 0.2s ease;
}
.langs button.on { color: var(--white); border-bottom: 1px solid var(--white); }
.langs button:hover { color: var(--white); }
.langs button:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }

/* ── ABOUT page ── */
.page { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white-faint);
         padding-bottom: 1.4rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-portrait { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.about-portrait-cap { margin-top: 0.8rem; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white-faint); }
.about-h { font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.12; margin-bottom: 0.4rem; }
.about-sub { font-weight: 600; font-size: clamp(0.95rem, 2.4vw, 1.2rem); color: var(--white-dim); margin-bottom: 1.8rem; }
.bio p { color: var(--white-dim); line-height: 1.85; font-size: clamp(0.92rem, 2.1vw, 1.02rem); margin-bottom: 1.3rem; }
.bio p.accent { color: var(--white); }

/* ── PORTFOLIO page ── */
.construction { max-width: 38rem; }
.construction .msg { display: none; color: var(--white-dim); line-height: 1.8; font-size: clamp(0.95rem, 2.3vw, 1.08rem); margin-bottom: 2rem; }
.construction .msg.on { display: block; }
.grid { columns: 3 300px; column-gap: 1.1rem; }
.grid img { width: 100%; margin-bottom: 1.1rem; border-radius: 3px; display: block; break-inside: avoid; }

/* ── FOOTER ── */
.footer { padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; }
.footer .wrap { display: flex; gap: 0.6rem 1.3rem; flex-wrap: wrap; align-items: baseline;
                font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-faint);
                border-top: 1px solid var(--line); padding-top: 2rem; }
.footer a { color: var(--white-dim); text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--white); }
.footer .sep { opacity: 0.5; }
.footer .grow { flex: 1; }

/* ── Motion ── */
@keyframes rise     { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spinin   { from { opacity: 0; transform: rotate(-160deg) scale(0.55); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes focusfade{ from { opacity: 0; filter: blur(16px); } to { opacity: 1; filter: blur(0); } }
.nav-logo .m { opacity: 0; animation: spinin 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-text { opacity: 0; animation: focusfade 1.1s ease-out forwards; animation-delay: 0.12s; }
.portrait  { opacity: 0; animation: focusfade 1.2s ease-out forwards; animation-delay: 0.25s; }

/* ── MOBILE / narrow ── */
@media (max-width: 820px) {
  .hero .wrap { flex-direction: column; }
  .hero-text { text-align: center; max-width: 36rem; margin: 0 auto; padding-top: 2.5rem; }
  .cta, .langs { justify-content: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .glow { display: none; }
  .portrait { position: static; height: auto; width: min(70vw, 270px); margin: 2.4rem auto 0; right: auto; bottom: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; }
  .grid { columns: 2 160px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}
