/* =============================================================
   Nurida Ateshi — design system
   Royal blue #5777ff · deep navy #080d41 · Urbanist + Rubik
   ============================================================= */

:root {
    /* Color */
    --blue:        #5777ff;
    --blue-600:    #3f57f5;
    --blue-700:    #2f43d6;
    --blue-soft:   #eef1ff;
    --blue-ring:   #c9d0fb;
    --ink:         #080d41;   /* headings */
    --ink-2:       #121933;
    --body:        #555c7d;   /* paragraph text */
    --muted:       #8b91ad;
    --line:        #e7e9f4;
    --line-2:      #eef0f8;
    --bg:          #ffffff;
    --bg-soft:     #f5f6ff;
    --white:       #ffffff;

    /* Type */
    --font-display: "Urbanist", system-ui, sans-serif;
    --font-body:    "Rubik", system-ui, sans-serif;

    /* Layout */
    --container: 1200px;
    --gutter: 24px;
    --header-h: 92px;
    --radius: 18px;
    --radius-lg: 28px;

    /* Effects */
    --shadow-sm: 0 4px 18px rgba(8,13,65,.06);
    --shadow:    0 18px 50px rgba(8,13,65,.10);
    --shadow-lg: 0 30px 80px rgba(8,13,65,.16);
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body:not(.page-home) { padding-top: var(--header-h); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--blue);
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    line-height: 1; letter-spacing: -.01em;
    padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
    white-space: nowrap;
}
.btn-lg { padding: 1.1em 1.8em; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px rgba(87,119,255,.32); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(87,119,255,.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--blue-700); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translate(2px,-2px); }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
    font-family: var(--font-display); font-weight: 700; font-size: .82rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
    display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }
.eyebrow--light { color: #bcc6ff; }
.eyebrow--light::before { background: #bcc6ff; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.link-arrow {
    display: inline-flex; align-items: center; gap: .5em; margin-top: .4rem;
    font-family: var(--font-display); font-weight: 700; color: var(--blue);
    transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: .9em; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--soft { background: var(--bg-soft); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center;
    transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(8,13,65,.07); height: 76px; }
.header-inner { display: flex; align-items: center; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--blue); width: 38px; height: 38px; display: grid; place-items: center; }
.brand-mark svg { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.brand-name-2 { font-weight: 500; color: var(--body); }

.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative; font-family: var(--font-display); font-weight: 600; font-size: .92rem;
    color: var(--ink-2); padding: 9px 10px; border-radius: 10px; transition: color .2s; white-space: nowrap;
}
.nav-link::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
    background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Language switch (segmented) */
.lang-switch { display: inline-flex; align-items: center; padding: 4px; background: var(--blue-soft); border-radius: 999px; }
.site-header.scrolled .lang-switch { background: #eef0fb; }
.lang-opt {
    font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
    padding: 6px 11px; border-radius: 999px; color: var(--body); transition: background .2s, color .2s;
}
.lang-opt:hover { color: var(--blue); }
.lang-opt.is-active { background: var(--blue); color: #fff; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border: 2px solid var(--line); background: #fff;
    border-radius: 12px; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ico-close { display: none; }
.nav-toggle .ico-menu, .nav-toggle .ico-close { width: 24px; height: 24px; }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter) 28px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
}
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { transform: none; opacity: 1; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a {
    display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
    color: var(--ink); padding: 12px 4px; border-bottom: 1px solid var(--line-2);
}
.mobile-nav a.is-active { color: var(--blue); }
.mobile-menu-foot { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.mobile-menu-foot .btn { width: 100%; justify-content: center; }
.mobile-contact { display: flex; flex-direction: column; gap: 10px; color: var(--body); font-size: .95rem; }
.mobile-contact li { display: flex; align-items: center; gap: 10px; }
.mobile-contact .ico { color: var(--blue); }
.menu-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(8,13,65,.4); }
.menu-backdrop[hidden] { display: none; }

/* =============================================================
   HERO
   ============================================================= */
.hero { position: relative; padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: clamp(3rem,6vw,5rem); overflow: hidden; }
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
    background: var(--bg-soft); z-index: -2;
}
.hero-bg { position: absolute; top: 4%; right: -8%; width: min(640px, 60vw); color: var(--ink); opacity: .05; z-index: -1; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: center; min-height: 60vh; }

.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 900; letter-spacing: -.03em; }
.hero-greet { font-weight: 800; color: var(--ink); margin-right: .25em; }
.name-pill {
    display: inline-block; background: var(--blue); color: #fff; padding: .04em .42em .12em;
    border-radius: .42em; box-shadow: 0 16px 36px rgba(87,119,255,.32);
}
.hero-chev { display: inline-block; width: clamp(40px,5vw,64px); color: var(--blue); vertical-align: middle; margin-left: .25em; }
.hero-chev svg { width: 100%; height: auto; }
.hero-tail { display: block; color: var(--ink); margin-top: .14em; font-size: .84em; font-weight: 800; }

.hero-roles {
    font-family: var(--font-display); font-weight: 600; color: var(--muted);
    font-size: clamp(.95rem,1.6vw,1.18rem); letter-spacing: .01em; margin-top: 1.4rem;
}
.hero-lead { max-width: 46ch; margin-top: 1rem; font-size: 1.12rem; color: var(--body); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.hero-media { position: relative; justify-self: center; }
.portrait {
    position: relative; width: clamp(280px, 34vw, 440px); aspect-ratio: 1;
    border-radius: 50%; overflow: hidden; background: var(--blue-soft);
    box-shadow: var(--shadow-lg); border: 6px solid #fff;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-badge {
    position: absolute; left: -6px; bottom: 22px; width: clamp(112px,12vw,140px); aspect-ratio: 1;
    background: var(--blue); color: #fff; border-radius: 50%; display: grid; place-content: center; text-align: center;
    box-shadow: 0 20px 40px rgba(87,119,255,.45); border: 5px solid #fff;
}
.hero-badge-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,2.4vw,2rem); line-height: 1; }
.hero-badge-l { font-size: .72rem; line-height: 1.2; margin-top: 4px; padding-inline: 8px; opacity: .92; }

.scroll-cue {
    display: inline-flex; align-items: center; gap: .5em; margin-top: 1.5rem;
    font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
}
.scroll-cue .ico { color: var(--blue); animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

/* =============================================================
   STATS
   ============================================================= */
.stats { background: var(--bg-soft); padding-bottom: clamp(3.5rem,7vw,6rem); }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.stat { text-align: center; padding: 1rem; }
.stat-n {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem,6vw,5.2rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 1.6px var(--blue-ring); transition: color .35s, -webkit-text-stroke-color .35s;
}
.stat:hover .stat-n { color: var(--blue); -webkit-text-stroke-color: var(--blue); }
.stat-l { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-top: .4rem; font-size: 1.02rem; }

/* =============================================================
   ABOUT
   ============================================================= */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,6vw,5rem); align-items: start; }
.about-body p + p { margin-top: 1.1rem; }
.about-body p { font-size: 1.1rem; }

/* =============================================================
   FOCUS
   ============================================================= */
.focus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.focus-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2rem 1.7rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.focus-ico {
    display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
    background: var(--blue-soft); color: var(--blue); margin-bottom: 1.2rem; transition: background .3s, color .3s;
}
.focus-ico .ico { width: 26px; height: 26px; }
.focus-card:hover .focus-ico { background: var(--blue); color: #fff; }
.focus-title { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.focus-text { font-size: 1rem; color: var(--body); }

/* =============================================================
   EXPLORE
   ============================================================= */
.explore-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.explore-row {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem,3vw,2.5rem);
    padding: clamp(1.4rem,3vw,2rem) .5rem; border-bottom: 1px solid var(--line);
    transition: background .3s, padding-left .3s var(--ease);
}
.explore-row:hover { background: var(--bg-soft); padding-left: 1.4rem; }
.explore-num { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--blue-ring); transition: color .3s; }
.explore-row:hover .explore-num { color: var(--blue); }
.explore-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem,2.4vw,1.7rem); color: var(--ink); }
.explore-text { display: block; color: var(--body); margin-top: .25rem; font-size: 1rem; }
.explore-arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); color: var(--ink); transition: all .3s var(--ease); }
.explore-row:hover .explore-arrow { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(0) scale(1.05); }

/* =============================================================
   CTA BAND
   ============================================================= */
.cta-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding-block: clamp(3.5rem,7vw,6rem); }
.cta-band .cta-title { color: #fff; font-size: clamp(2rem,4.5vw,3.4rem); }
.cta-rings { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(420px,45vw); color: #fff; opacity: .08; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-text-wrap { max-width: 40ch; }
.cta-text { color: rgba(255,255,255,.72); margin-top: .9rem; font-size: 1.12rem; }

/* =============================================================
   SOON / 404
   ============================================================= */
.soon { position: relative; overflow: hidden; text-align: center; min-height: 64vh; display: grid; place-items: center; }
.soon-rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px,90vw); color: var(--blue); opacity: .07; }
.soon-inner { position: relative; max-width: 620px; }
.soon-inner .eyebrow { justify-content: center; }
.soon-title { font-size: clamp(2rem,5vw,3.2rem); margin-bottom: 1rem; }
.soon-text { font-size: 1.12rem; margin-bottom: 2rem; }
.soon-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(3rem,6vw,4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-bottom: 2.5rem; }
.brand--footer { margin-bottom: 1rem; }
.footer-tagline { color: var(--body); max-width: 32ch; }
.footer-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 1.1rem; }
.footer-links li, .footer-contact li { margin-bottom: .7rem; }
.footer-links a { color: var(--body); transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-contact li { display: flex; gap: 12px; color: var(--body); }
.footer-contact .ico { color: var(--blue); flex: none; margin-top: 2px; }
.footer-contact a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-block: 1.6rem; color: var(--muted); font-size: .92rem; }

/* =============================================================
   BIOGRAPHY / VITA
   ============================================================= */
.vita-hero { position: relative; overflow: hidden; padding-block: clamp(2rem,5vw,3.5rem) clamp(3rem,6vw,5rem); }
.vita-hero .hero-bg { top: -8%; right: -10%; width: min(560px,52vw); }
.vita-head { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.vita-title { max-width: 16ch; margin-bottom: 1.4rem; }
.vita-lead { font-size: 1.08rem; color: var(--body); max-width: 62ch; }
.vita-lead + .vita-lead { margin-top: 1rem; }
.vita-head .hero-cta { margin-top: 1.8rem; }

.vita-aside { display: flex; flex-direction: column; gap: 1.4rem; }
.portrait--vita { width: 100%; max-width: 300px; aspect-ratio: 1; margin: 0 auto; }
.vita-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; width: 100%; }
.vita-facts li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1rem; text-align: center; }
.vf-n { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--blue); }
.vf-l { display: block; font-size: .8rem; color: var(--body); margin-top: .35rem; line-height: 1.25; }

/* Timeline */
.timeline { max-width: 840px; }
.tl-item { display: grid; grid-template-columns: 100px 1fr; gap: clamp(1rem,3vw,2rem); }
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: .98rem; color: var(--blue); text-align: right; padding-top: 1px; }
.tl-body { position: relative; border-left: 2px solid var(--line); padding-left: clamp(1.2rem,2.5vw,2rem); padding-bottom: 2.2rem; }
.tl-body::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.tl-item:last-child .tl-body { padding-bottom: 0; }
.tl-title { font-size: 1.22rem; font-weight: 700; margin-bottom: .35rem; }
.tl-text { color: var(--body); font-size: 1rem; max-width: 56ch; }

/* Expertise · languages · roles */
.vita-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.8rem,4vw,3rem); align-items: start; }
.vita-h { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 1.1rem; }
.vita-block-text { color: var(--body); margin-bottom: 1.1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-block; padding: .5em .95em; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.tag--blue { background: var(--blue-soft); border-color: transparent; color: var(--blue-700); }
.roles-list li { position: relative; padding-left: 1.5rem; margin-bottom: .85rem; color: var(--ink-2); }
.roles-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--blue); border-radius: 2px; transform: rotate(45deg); }
.vita-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.vita-note .ico { color: var(--blue); flex: none; margin-top: 3px; }

@media (max-width: 1080px) {
    .vita-head { grid-template-columns: 1fr; }
    .vita-aside { max-width: 420px; }
}
@media (max-width: 900px) {
    .vita-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .tl-item { grid-template-columns: 72px 1fr; gap: 14px; }
    .tl-year { font-size: .9rem; }
    .vita-facts { grid-template-columns: repeat(2,1fr); }
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact-hero { padding-block: clamp(2rem,5vw,3.5rem) clamp(1.5rem,4vw,2.6rem); }
.contact-intro { max-width: 720px; }
.contact-intro-text { font-size: 1.1rem; color: var(--body); max-width: 60ch; margin-top: .4rem; }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.4rem; }
.contact-cards li { display: flex; gap: 14px; align-items: flex-start; }
.cc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); flex: none; }
.cc-ico .ico { width: 20px; height: 20px; }
.cc-body { display: flex; flex-direction: column; }
.cc-label { font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.cc-value { color: var(--ink-2); font-size: 1.02rem; }
a.cc-value:hover { color: var(--blue); }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.4rem); box-shadow: var(--shadow-sm); }
.contact-form-wrap .vita-h { margin-bottom: 1.4rem; }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-bottom: .4rem; }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 12px; padding: .8em .9em; transition: border-color .2s, background .2s, box-shadow .2s; width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.field.has-error input, .field.has-error textarea { border-color: #e0506b; background: #fdf2f4; }
.field-err { color: #c23a55; font-size: .85rem; margin-top: .35rem; }
.contact-form .btn { justify-self: start; margin-top: .3rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-ok { display: flex; align-items: center; gap: .6rem; background: #eaf7ef; border: 1px solid #bfe6cd; color: #1c7a44; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.form-ok .ico { color: #1c7a44; flex: none; }
.form-err { background: #fdf2f4; border: 1px solid #f3c7d0; color: #c23a55; border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1.4rem; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* =============================================================
   SPECIAL TOPICS
   ============================================================= */
.topic-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.topic-grid--alt .topic-text { order: 2; }
.topic-grid--alt .topic-card { order: 1; }
.topic-title { max-width: 18ch; margin-bottom: 1rem; }
.topic-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem,1.8vw,1.32rem); color: var(--ink-2); line-height: 1.35; margin-bottom: 1.2rem; }
.topic-p { color: var(--body); margin-bottom: .9rem; max-width: 62ch; }
.topic-p:last-child { margin-bottom: 0; }

.topic-card { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.3rem); box-shadow: var(--shadow); }
.topic-card-title { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #bcc6ff; margin-bottom: 1rem; position: relative; z-index: 1; }
.fact-dl { position: relative; z-index: 1; }
.fact-row { display: grid; grid-template-columns: 40% 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.13); }
.fact-row:first-of-type { border-top: 0; }
.fact-row dt { color: rgba(255,255,255,.6); font-size: .92rem; }
.fact-row dd { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.topic-card-rings { position: absolute; right: -36px; bottom: -36px; width: 190px; color: #fff; opacity: .07; }
.topic-note-band { padding-block: clamp(2.5rem,5vw,4rem); }

@media (max-width: 900px) {
    .topic-grid { grid-template-columns: 1fr; }
    .topic-grid--alt .topic-text, .topic-grid--alt .topic-card { order: 0; }
    .topic-card { max-width: 560px; }
}

/* =============================================================
   LITERARY WORKS
   ============================================================= */
.books-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.4rem,3vw,2rem); margin-bottom: 2.2rem; }
.book-cover { position: relative; aspect-ratio: 3 / 4.2; border-radius: 14px; overflow: hidden; padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.book-card:hover .book-cover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.book-cover--1 { background: linear-gradient(155deg, #5777ff, #2f43d6); }
.book-cover--2 { background: linear-gradient(155deg, #1b2a6b, #080d41); }
.book-cover--3 { background: linear-gradient(155deg, #3f57f5, #161d44); }
.book-cover--4 { background: linear-gradient(155deg, #2f43d6, #5777ff); }
.book-cover-lang { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.book-cover-title { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem,1.5vw,1.35rem); line-height: 1.15; margin-top: .3rem; }
.book-cover-rings { position: absolute; right: -24px; top: -24px; width: 120px; color: #fff; opacity: .12; }
.book-meta { padding-top: .9rem; }
.book-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.book-translated { color: var(--muted); font-size: .92rem; font-style: italic; margin: .15rem 0 .55rem; }
.book-meta .tag { margin-top: .2rem; }

.songs-band { padding-block: clamp(2.5rem,5vw,4rem); }
.songs-inner { display: flex; gap: 1.3rem; align-items: flex-start; max-width: 760px; }
.songs-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); flex: none; }
.songs-ico .ico { width: 26px; height: 26px; }
.songs-text { color: var(--body); margin-top: .4rem; max-width: 60ch; }

@media (max-width: 1080px) { .books-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px)  { .books-grid { grid-template-columns: repeat(2,1fr); } }

/* =============================================================
   ACADEMIC WORK
   ============================================================= */
.acad-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,2.5vw,1.6rem); padding-top: clamp(2.5rem,5vw,4rem); }
.acad-facts li { text-align: center; padding: .6rem; }
.af-n { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue-ring); }
.af-l { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-top: .55rem; font-size: .95rem; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.pubs-wrap { max-width: 760px; }
.pubs-text { font-size: 1.1rem; color: var(--body); margin-bottom: 1.6rem; max-width: 64ch; }
.pubs-langs-label { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }

@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .acad-facts { grid-template-columns: repeat(2,1fr); } }

/* =============================================================
   MEDIA
   ============================================================= */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(.8rem,2vw,1.2rem); }
.gallery-item { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; overflow: hidden; aspect-ratio: 1; display: block; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,13,65,.92); display: flex; align-items: center; justify-content: center; padding: 4vw; opacity: 0; transition: opacity .25s; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.lightbox-close .ico { width: 24px; height: 24px; }

.video-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1.2rem,3vw,2rem); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: var(--ink); }
.video-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-top: .8rem; }

.media-empty { display: flex; align-items: center; gap: 1.1rem; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2rem); color: var(--body); max-width: 680px; }
.media-empty-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #fff; color: var(--blue); flex: none; box-shadow: var(--shadow-sm); }
.media-empty p { font-size: 1.05rem; }

@media (max-width: 760px) {
    .gallery { grid-template-columns: repeat(2,1fr); }
    .video-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   SOCIAL LINKS
   ============================================================= */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.3rem; }
.social-row a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.social-row a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }
.social-row .ico { width: 20px; height: 20px; }
.contact-info .social-row { margin-top: 1.6rem; }

/* Biography prose + awards/memberships */
.bio-prose { max-width: 760px; }
.bio-prose p { color: var(--body); font-size: 1.06rem; line-height: 1.75; margin-bottom: 1.1rem; }
.bio-prose p:last-child { margin-bottom: 0; }
.bio-aux { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.roles-list--cols { columns: 2; column-gap: 2rem; }
.roles-list--cols li { break-inside: avoid; }
@media (max-width: 760px) {
    .bio-aux { grid-template-columns: 1fr; }
    .roles-list--cols { columns: 1; }
}

/* =============================================================
   BOOKS (full bibliography)
   ============================================================= */
.books-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.books-collage { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.books-collage img { width: 100%; height: auto; display: block; }
.books-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 2rem; }
.lib-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; transition: box-shadow .2s, transform .2s var(--ease); }
.lib-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.lib-year { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--blue); flex: none; width: 3.2ch; }
.lib-body { flex: 1 1 auto; min-width: 0; }
.lib-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.25; }
.lib-pub { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.lib-lang { flex: none; }
@media (max-width: 900px) { .books-head { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .books-grid2 { grid-template-columns: 1fr; } }

/* Academic — publications, fieldwork, conferences */
.pub-list { list-style: none; display: grid; gap: 12px; }
.pub-list--2 { grid-template-columns: 1fr 1fr; }
.pub-item { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.pub-year { font-family: var(--font-display); font-weight: 800; color: var(--blue); flex: none; width: 4.6ch; }
.pub-body { display: flex; flex-direction: column; min-width: 0; }
.pub-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.3; }
.pub-venue { color: var(--muted); font-size: .85rem; margin-top: .25rem; }

.field-list { display: grid; gap: 10px; }
.field-item { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1.1rem; }
.field-year { font-family: var(--font-display); font-weight: 800; color: var(--blue); flex: none; width: 9ch; }
.field-body { flex: 1 1 auto; min-width: 0; }
.field-place { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.field-note { color: var(--muted); font-size: .85rem; margin-left: .5rem; }
.field-type { flex: none; }

.conf-list { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.conf-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; padding: .8rem 1rem; }
.conf-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.conf-venue { color: var(--muted); font-size: .85rem; margin-top: .2rem; }

@media (max-width: 820px) {
    .pub-list--2, .conf-list { grid-template-columns: 1fr; }
    .field-item { flex-wrap: wrap; }
    .field-year { width: auto; }
}

/* PDF downloads (Special Topics) */
.dl-block { margin-top: 1.5rem; }
.dl-title { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.dl-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.dl-btn { gap: .45rem; }

.yt-channel { align-items: center; }
.yt-body { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.yt-body p { margin: 0; }

/* Craftsmanship grid */
.craft-grid { grid-template-columns: repeat(2,1fr); max-width: 940px; margin: 0 auto 2rem; }
@media (max-width: 760px) { .craft-grid { grid-template-columns: 1fr; } }

/* Nurmahal */
.nurmahal-title { margin-bottom: .4rem; }
.nurmahal-tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem,1.6vw,1.25rem); letter-spacing: .04em; color: var(--blue); margin-bottom: 1.1rem; }

/* =============================================================
   Reveal-on-scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1279px) {
    .nav { display: none; }
    .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    /* keep the language switch visible; push actions (lang + hamburger) to the far right */
    .header-actions { margin-left: auto; }
    .lang-switch--header { display: inline-flex; }
}
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero-media { order: -1; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    :root { --gutter: 18px; }
    .focus-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 18px; }
    .stat { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
    .stat-n { font-size: 3.2rem; }
    .explore-row { grid-template-columns: auto 1fr; }
    .explore-arrow { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .header-inner { gap: 10px; }
    .header-actions { gap: 8px; }
    .brand-mark, .brand-mark svg { width: 32px; height: 32px; }
    .brand-name { font-size: 1.15rem; }
    .brand-name-2 { display: none; }            /* show just "Nurida" to save room */
    .lang-switch { padding: 3px; }
    .lang-opt { padding: 5px 8px; font-size: .75rem; letter-spacing: .02em; }
    .nav-toggle { width: 42px; height: 42px; }
}
@media (min-width: 1280px) { .mobile-menu, .menu-backdrop { display: none !important; } }

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}
