/* ==========================================================================
   Iron Tech Innovations — public site
   Palette: graphite steel + molten-iron orange
   ========================================================================== */

:root {
    --ink: #0c0e12;
    --steel-900: #12151b;
    --steel-800: #1a1e26;
    --steel-700: #252a34;
    --steel-500: #5b6372;
    --steel-300: #a3abb8;
    --steel-100: #e6e8ec;
    --paper: #ffffff;
    --paper-alt: #f4f3f0;
    --text: #1b1f27;
    --text-muted: #5a6170;
    --line: #e3e3df;
    --line-dark: rgba(255, 255, 255, .09);

    --molten: #ff5a1f;
    --molten-600: #e8470d;
    --ember: #ffb347;
    --molten-soft: rgba(255, 90, 31, .1);
    --gradient-molten: linear-gradient(135deg, var(--ember) 0%, var(--molten) 55%, #e2320b 100%);

    --font: "Manrope", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(12, 14, 18, .04), 0 8px 24px rgba(12, 14, 18, .06);
    --shadow-lg: 0 2px 4px rgba(12, 14, 18, .04), 0 22px 48px rgba(12, 14, 18, .12);
    --header-h: 76px;
    --gutter: clamp(16px, 4vw, 32px);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; }
.hero__inner > *, .project-detail > *, .contact > *, .site-footer__grid > * { min-width: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--molten); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--molten); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { flex-shrink: 0; }

/* Armenian/Russian words run longer — soften heading tracking */
.locale-am h1, .locale-am h2, .locale-ru h1, .locale-ru h2 { letter-spacing: -.01em; }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 64px); }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--steel-900); color: var(--steel-100); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0; max-width: 18ch; }
.section__subtitle { font-size: 1.5rem; margin: 48px 0 20px; }
.section__lead { max-width: 46ch; color: var(--text-muted); margin: 0; font-size: 1.075rem; }
.section--dark .section__lead { color: var(--steel-300); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--molten); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--pill { padding: 7px 14px; border: 1px solid rgba(255, 90, 31, .35); border-radius: 999px; background: rgba(255, 90, 31, .08); letter-spacing: .08em; }
.eyebrow--pill::before { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 90, 31, .2); }

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gradient-molten); color: #fff; box-shadow: 0 8px 24px rgba(255, 90, 31, .28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 90, 31, .38); }
.btn--ghost { border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--molten); }
.link-arrow .icon { transition: transform .2s ease; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* Logo ------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo--light { color: #fff; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.logo__text small { font-size: .68rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; opacity: .65; margin-top: 4px; }

/* Header ----------------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    color: #fff; transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled, body:not(.page-home) .site-header {
    background: rgba(12, 14, 18, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line-dark);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__brand { flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; list-style: none; gap: 4px; }
.site-nav__list a {
    position: relative; display: block; padding: 8px 14px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; color: rgba(255, 255, 255, .78); transition: color .2s, background-color .2s;
}
.site-nav__list a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav__list a.is-active { color: #fff; }
.site-nav__list a.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 2px; margin-left: -9px;
    background: var(--molten); border-radius: 2px;
}

.lang-switch { display: flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: rgba(255, 255, 255, .7); }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { background: #fff; color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #fff; align-items: center; justify-content: center; }
.nav-toggle__close { display: none; }

@media (max-width: 1020px) {
    .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
    .site-nav {
        position: fixed; inset: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
        flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
        background: var(--ink); overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open .nav-toggle__open { display: none; }
    .nav-open .nav-toggle__close { display: block; }
    .nav-open { overflow: hidden; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__list a { font-size: 1.6rem; font-weight: 700; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line-dark); background: none !important; }
    .site-nav__list a.is-active { color: var(--molten); }
    .site-nav__list a.is-active::after { display: none; }
    .lang-switch { align-self: flex-start; }
    .lang-switch a { padding: 8px 16px; font-size: .9rem; }
}

/* Hero (home) ------------------------------------------------------------ */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(120% 80% at 80% 0%, #1d222c 0%, var(--ink) 60%);
    padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 64px);
}
.hero__grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero__glow {
    position: absolute; width: 640px; height: 640px; right: -160px; top: -120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 31, .32) 0%, rgba(255, 179, 71, .1) 40%, transparent 70%);
    filter: blur(20px); animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-60px, 40px) scale(1.08); } }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin: 0 0 22px; max-width: 15ch; }
.locale-am .hero__title, .locale-ru .hero__title { font-size: clamp(2.1rem, 4.6vw, 3.7rem); max-width: 18ch; }
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--steel-300); max-width: 52ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; height: 420px; }
.device { position: absolute; background: var(--steel-800); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.device--browser { inset: 20px 40px auto 0; height: 300px; border-radius: 16px; overflow: hidden; animation: float 7s ease-in-out infinite; }
.device--phone { right: 0; bottom: 0; width: 170px; height: 330px; border-radius: 30px; padding: 12px; animation: float 7s ease-in-out -3.5s infinite; }
.device__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.device__bar i:first-child { background: var(--molten); }
.device__notch { width: 56px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); margin: 4px auto 18px; }
.device__screen { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.device--phone .device__screen { padding: 8px; align-items: center; }
.sk { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); width: 100%; }
.sk--title { height: 22px; width: 60%; background: var(--gradient-molten); opacity: .9; }
.sk--short { width: 45%; }
.sk--avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient-molten); margin-bottom: 8px; }
.sk--button { height: 34px; border-radius: 999px; margin-top: auto; background: rgba(255, 90, 31, .25); }
.device--phone .device__screen { height: calc(100% - 28px); }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.sk-grid span { height: 92px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
@keyframes float { 50% { transform: translateY(-12px); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 7vw, 80px) 0 0; border-top: 1px solid var(--line-dark); }
.stats__item { padding: 28px 24px 0 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats__item + .stats__item { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stats dt { color: var(--steel-300); font-size: .95rem; }
.stats dd { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; background: var(--gradient-molten); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { display: none; }
}
@media (max-width: 560px) {
    .stats { grid-template-columns: 1fr; }
    .stats__item, .stats__item + .stats__item { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); flex-direction: row-reverse; justify-content: space-between; align-items: center; }
    .stats dd { font-size: 1.9rem; }
}

/* Inner page hero -------------------------------------------------------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(90% 120% at 90% 0%, #222733 0%, var(--ink) 65%);
    padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) 0 clamp(48px, 7vw, 80px);
}
.page-hero::after {
    content: ""; position: absolute; right: -120px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 31, .22), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0; max-width: 22ch; }
.page-hero__text { margin: 20px 0 0; max-width: 60ch; color: var(--steel-300); font-size: 1.12rem; }
.page-hero__back { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--steel-300); font-weight: 600; font-size: .95rem; }
.page-hero__back:hover { color: #fff; }

/* Cards: services -------------------------------------------------------- */
.service-card { height: 100%; }
.service-card__link {
    display: flex; flex-direction: column; height: 100%; padding: 32px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 24px;
    border-radius: 16px; color: var(--molten); background: var(--molten-soft); transition: background .25s, color .25s;
}
.service-card__link:hover .service-card__icon { background: var(--gradient-molten); color: #fff; }
.service-card__title { font-size: 1.3rem; margin-bottom: 10px; }
.service-card__text { color: var(--text-muted); flex-grow: 1; margin-bottom: 22px; }

/* Cards: projects -------------------------------------------------------- */
.project-card { height: 100%; }
.project-card__link { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.project-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card__media, .project-detail__cover {
    --hue: 18;
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--hue) 22% 16%) 0%, hsl(var(--hue) 30% 9%) 100%);
}
.project-card__media img, .project-detail__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card__link:hover .project-card__media img { transform: scale(1.04); }
.project-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: hsl(var(--hue) 100% 62%); }
.project-card__placeholder::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
}
.project-card__placeholder .icon { position: relative; filter: drop-shadow(0 0 22px hsl(var(--hue) 100% 55% / .55)); }
.project-card__body { display: flex; flex-direction: column; flex-grow: 1; padding: 24px 26px 26px; }
.project-card__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-500); }
.project-card__meta span + span::before { content: "•"; margin-right: 10px; color: var(--molten); }
.project-card__title { font-size: 1.3rem; margin-bottom: 8px; }
.project-card__text { color: var(--text-muted); flex-grow: 1; margin-bottom: 18px; }

/* Cards: team ------------------------------------------------------------ */
.team-card { text-align: left; }
.team-card__photo {
    position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px;
    background: linear-gradient(160deg, var(--steel-700), var(--ink));
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: filter .3s, transform .5s; }
.team-card:hover .team-card__photo img { filter: none; transform: scale(1.03); }
.team-card__initials {
    position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.2rem; font-weight: 800; letter-spacing: .02em;
    background: var(--gradient-molten); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.team-card__name { font-size: 1.18rem; margin-bottom: 2px; }
.team-card__role { color: var(--molten); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.team-card__bio { color: var(--text-muted); font-size: .95rem; }
.team-card__links { display: flex; gap: 8px; }
.team-card__links a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--steel-500); transition: all .2s; }
.team-card__links a:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

/* Process ---------------------------------------------------------------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; counter-reset: step; border-radius: var(--radius-lg); overflow: hidden; }
.process__step { padding: 36px 30px; background: var(--steel-800); transition: background .25s; }
.process__step:hover { background: var(--steel-700); }
.process__num { display: block; margin-bottom: 30px; font-size: .9rem; font-weight: 800; letter-spacing: .1em; color: var(--molten); }
.process__step h3 { font-size: 1.3rem; color: #fff; }
.process__step p { color: var(--steel-300); margin: 0; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Values (about) --------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 4vw, 48px); }
.values__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--molten); margin-bottom: 18px; }
.values__item h3 { font-size: 1.25rem; }
.values__item p { color: var(--text-muted); margin: 0; }

/* CTA band --------------------------------------------------------------- */
.cta { padding: 0 0 clamp(64px, 9vw, 112px); }
.section--alt + .cta, .section--dark + .cta { padding-top: clamp(64px, 9vw, 112px); }
.cta__box {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: clamp(36px, 6vw, 64px); border-radius: var(--radius-lg); color: #fff;
    background: radial-gradient(80% 140% at 100% 0%, rgba(255, 90, 31, .45) 0%, transparent 60%), var(--ink);
}
.cta__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.cta__text { color: var(--steel-300); margin: 0; max-width: 50ch; }

/* Filters ---------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters__item { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .93rem; color: var(--text-muted); transition: all .2s; }
.filters__item:hover { border-color: var(--ink); color: var(--ink); }
.filters__item.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { padding: 48px; text-align: center; color: var(--text-muted); background: var(--paper-alt); border-radius: var(--radius); }

/* Project / service detail ---------------------------------------------- */
.project-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.project-detail__cover { border-radius: var(--radius-lg); margin-bottom: 40px; }
.project-detail__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.facts { margin: 0; padding: 8px 26px; background: var(--paper-alt); border-radius: var(--radius-lg); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; }
.tag { padding: 4px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.aside-cta { padding: 30px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.aside-cta h2 { font-size: 1.4rem; margin-top: 4px; }
.aside-cta p { color: var(--steel-300); }
.aside-cta .service-card__icon { background: rgba(255, 90, 31, .15); margin-bottom: 18px; }
.side-list { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.side-list h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-500); margin-bottom: 10px; }
.side-list ul { list-style: none; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.side-list li:last-child a { border-bottom: 0; }
.side-list a .icon { color: var(--molten); }
.side-list a:hover { color: var(--molten); }
@media (max-width: 960px) {
    .project-detail { grid-template-columns: 1fr; }
    .project-detail__aside { position: static; }
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.gallery__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-alt); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(8, 9, 12, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }

/* Rich text -------------------------------------------------------------- */
.prose { font-size: 1.08rem; line-height: 1.8; color: #2a2f39; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.75rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--molten); }
.prose a { color: var(--molten-600); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { padding: 6px 0 6px 22px; border-left: 3px solid var(--molten); color: var(--text-muted); font-style: italic; }
.prose pre { padding: 18px; border-radius: var(--radius); background: var(--ink); color: var(--steel-100); overflow-x: auto; font-size: .9rem; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }

/* Contact ---------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.contact__info h2 { font-size: 1.5rem; margin-bottom: 24px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: rgba(255, 90, 31, .14); color: var(--molten); }
.contact-list small { display: block; color: var(--steel-300); font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; }
.contact-list a:hover { color: var(--ember); }
.contact-list a, .contact-list span { overflow-wrap: anywhere; font-weight: 600; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .92rem; }
.field input, .field textarea {
    width: 100%; padding: 14px 16px; border: 1px solid #d6d6d1; border-radius: 12px; background: var(--paper);
    font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--molten); box-shadow: 0 0 0 4px rgba(255, 90, 31, .14); }
.field.has-error input, .field.has-error textarea { border-color: #d93025; }
.field__error { margin: 6px 0 0; color: #c5221f; font-size: .88rem; font-weight: 600; }

.alert { display: flex; gap: 12px; align-items: center; padding: 16px 20px; margin-bottom: 24px; border-radius: 12px; font-weight: 600; }
.alert--success { background: #e8f6ee; color: #146c3c; }
.alert--error { background: #fdecea; color: #b3261e; }

/* Error page ------------------------------------------------------------- */
.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 64px) 0 96px; background: radial-gradient(70% 60% at 50% 0%, #1d222c, var(--ink)); color: #fff; }
.error-page__code { font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; margin: 0 0 12px; background: var(--gradient-molten); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.error-page p { color: var(--steel-300); max-width: 46ch; margin: 0 auto 32px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--steel-300); padding: clamp(56px, 8vw, 88px) 0 28px; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.site-footer__about p { margin: 20px 0 22px; max-width: 34ch; }
.site-footer__title { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer__contact { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.site-footer__contact .icon { color: var(--molten); margin-top: 3px; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-dark); transition: all .2s; }
.socials a:hover { background: var(--molten); border-color: var(--molten); color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* Reveal on scroll ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
