/* ============================================================================
   BloomyGio — bold editorial theme
   Giorgia Ghidoni · Illustratrice di mondi immaginari
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --bg: #FBF6EC;
  --bg-soft: #F3ECDB;
  --bg-deep: #E9DFC8;
  --paper: #FFFCF4;
  --ink: #1A1612;
  --ink-soft: #2E2820;
  --ink-muted: #5C544A;
  --ink-faint: #8A8276;

  --accent: #C5462E;       /* coral red */
  --accent-deep: #9C3322;
  --accent-soft: #E8B3A4;
  --sage: #7C8A6F;
  --gold: #B68A3E;

  --rule: rgba(26, 22, 18, 0.14);
  --rule-strong: rgba(26, 22, 18, 0.28);
  --shadow: 0 18px 50px -22px rgba(26, 22, 18, 0.30);
  --shadow-strong: 0 32px 70px -25px rgba(26, 22, 18, 0.45);

  --ff-display: "Fraunces", "Playfair Display", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 4px;
  --radius: 10px;

  --t-fast: 180ms cubic-bezier(.2, .8, .2, 1);
  --t-med:  340ms cubic-bezier(.2, .8, .2, 1);
  --t-slow: 700ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-feature-settings: "ss01" on, "cv11" on;
  font-optical-sizing: auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography --------------------------------------------------- */
.serif      { font-family: var(--ff-display); font-weight: 400; }
.serif-bold { font-family: var(--ff-display); font-weight: 700; }
.italic     { font-style: italic; }
.mono       { font-family: var(--ff-mono); }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.eyebrow .dot { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
.h-display { font-size: clamp(64px, 14vw, 240px); font-weight: 300; letter-spacing: -0.04em; line-height: 0.88; }
.h-mega    { font-size: clamp(48px, 8vw, 132px); font-weight: 400; letter-spacing: -0.03em; line-height: 0.92; }
.h-1       { font-size: clamp(38px, 5.5vw, 84px); letter-spacing: -0.02em; line-height: 0.98; }
.h-2       { font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -0.018em; line-height: 1.05; }
.h-3       { font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -0.014em; line-height: 1.15; }

.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.body { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.small { font-size: 13px; color: var(--ink-muted); }

/* ---------- Layout primitives ------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wide { max-width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack > * + * { margin-top: var(--stack, 16px); }

/* ---------- Header / Nav ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--ff-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .b-mark { font-style: italic; font-weight: 400; color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  position: relative;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 64px 0 0 0;
    background: var(--bg); padding: 32px var(--gutter);
    flex-direction: column; gap: 28px; align-items: flex-start;
    transform: translateX(100%); transition: transform var(--t-med);
    border-top: 1px solid var(--rule);
  }
  .nav-links a { font-size: 17px; }
  .nav.is-open .nav-links { transform: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arr { transition: transform var(--t-fast); }
.btn:hover .arr { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.text-link:hover { gap: 14px; color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Hero (home) ------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vh, 120px) 0 clamp(40px, 6vh, 80px);
  overflow: hidden;
}
.hero-bg-mark {
  position: absolute; right: -8vw; top: 4vh;
  font-family: var(--ff-display); font-style: italic; font-weight: 300;
  font-size: clamp(180px, 38vw, 720px);
  color: var(--bg-soft);
  letter-spacing: -0.06em; line-height: 0.8;
  pointer-events: none; user-select: none; z-index: 0;
}
.hero-bg-logo {
  position: absolute;
  right: -6vw; top: -2vh;
  width: clamp(380px, 62vw, 920px);
  height: auto;
  opacity: 0.18;
  filter: saturate(0.85);
  mix-blend-mode: multiply;
  pointer-events: none; user-select: none; z-index: 0;
}
@media (max-width: 900px) {
  .hero-bg-logo { right: -20vw; top: auto; bottom: -8vh; width: 120vw; opacity: 0.12; }
}
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  position: relative; z-index: 1;
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.hero-eyebrow .line { width: 60px; height: 1px; background: var(--ink); }
.hero-title { font-weight: 300; font-style: italic; }
.hero-title .lined { display: block; font-style: normal; font-weight: 700; color: var(--accent); letter-spacing: -0.05em; }

.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule);
}
.hero-meta .pair { display: flex; flex-direction: column; gap: 6px; }
.hero-meta .pair .label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.hero-meta .pair .value { font-family: var(--ff-display); font-size: 18px; }

.hero-aside {
  display: flex; flex-direction: column; gap: 24px;
}
.hero-quote {
  font-family: var(--ff-display); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 8px 16px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted); background: var(--paper);
}
.hero-pill .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 999px; }

/* ---------- Marquee / ticker -------------------------------------------- */
.ticker {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--bg);
  overflow: hidden;
  padding: 20px 0;
}
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap;
  font-family: var(--ff-display); font-style: italic; font-size: clamp(22px, 2.6vw, 38px); font-weight: 300;
  color: var(--ink);
  animation: scroll 38s linear infinite;
}
.ticker-track .star { color: var(--accent); font-style: normal; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Section heads ----------------------------------------------- */
.section { padding: clamp(60px, 10vh, 120px) 0; }
.section-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: end; margin-bottom: 56px;
  padding-bottom: 24px; border-bottom: 1px solid var(--ink);
}
.section-head .index { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-muted); }
.section-head .title { font-family: var(--ff-display); font-size: clamp(28px, 4vw, 56px); font-weight: 400; letter-spacing: -0.018em; line-height: 1.05; }
.section-head .title .it { font-style: italic; font-weight: 300; color: var(--accent); }
.section-head .meta { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; gap: 8px; align-items: flex-start; }
  .section-head .meta { display: none; }
}

/* ---------- Works grid -------------------------------------------------- */
.works-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 28px;
}
.work-card { grid-column: span 4; position: relative; }
.work-card.wide { grid-column: span 6; }
.work-card.tall { grid-column: span 4; }
.work-card.feat { grid-column: span 8; }
@media (max-width: 1000px) {
  .work-card, .work-card.wide, .work-card.tall, .work-card.feat { grid-column: span 6; }
}
@media (max-width: 600px) {
  .work-card, .work-card.wide, .work-card.tall, .work-card.feat { grid-column: span 12; }
}

/* Uniform grid (homepage): all cards same column span, all photos same aspect cell */
.works-grid--uniform { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.works-grid--uniform .work-card { grid-column: auto; }
.works-grid--uniform .work-thumb { aspect-ratio: 3 / 4; }
@media (max-width: 1000px) {
  .works-grid--uniform { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .works-grid--uniform { grid-template-columns: 1fr; }
}

.work-thumb {
  position: relative; overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
}
.work-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-med);
}
.work-card:hover .work-thumb img { transform: scale(1.04); filter: saturate(1.1); }
.work-thumb .num {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--paper);
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.work-thumb .tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 6px 12px; background: rgba(252, 248, 240, 0.92); color: var(--ink);
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 999px;
}
.work-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.05) 100%);
}
.work-info { margin-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-info .ttl { font-family: var(--ff-display); font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.work-info .yr  { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-muted); }
.work-info .sub { display: block; color: var(--ink-muted); font-size: 13px; margin-top: 4px; letter-spacing: 0.04em; }

/* ---------- Manifesto / pull quote -------------------------------------- */
.manifesto {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.manifesto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; } }
.pullquote {
  font-family: var(--ff-display); font-weight: 300; font-style: italic;
  font-size: clamp(28px, 4vw, 56px); line-height: 1.1;
  color: var(--ink); letter-spacing: -0.018em;
}
.pullquote .accent { color: var(--accent); font-style: normal; font-weight: 500; }
.pullquote .mark { color: var(--accent); font-style: normal; font-size: 1.4em; line-height: 0; vertical-align: -0.2em; padding-right: 6px; }
.manifesto-text { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.manifesto-text p + p { margin-top: 1em; }
.manifesto-cta { margin-top: 32px; }

/* ---------- Artist photo card ------------------------------------------- */
.artist-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.artist-card img { width: 100%; height: 100%; object-fit: cover; }
.artist-card .stamp {
  position: absolute; left: 18px; bottom: 18px;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(251, 246, 236, 0.92);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
  backdrop-filter: blur(10px);
}

/* ---------- Collections row --------------------------------------------- */
.coll-list { display: grid; gap: 0; }
.coll-row {
  display: grid; grid-template-columns: 80px 1fr 220px auto;
  gap: clamp(16px, 3vw, 48px); align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
  position: relative; transition: padding var(--t-fast), background var(--t-fast);
}
.coll-row:hover { background: var(--bg-soft); padding-left: 12px; padding-right: 12px; }
.coll-row .idx { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-muted); }
.coll-row .name { font-family: var(--ff-display); font-size: clamp(32px, 4vw, 64px); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.coll-row .name .it { font-style: italic; font-weight: 300; color: var(--accent); }
.coll-row .desc { color: var(--ink-muted); font-size: 14px; }
.coll-row .arr {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
}
.coll-row .arr svg { transition: transform var(--t-fast); }
.coll-row:hover .arr svg { transform: translateX(6px); }
@media (max-width: 800px) {
  .coll-row { grid-template-columns: 60px 1fr auto; gap: 16px; }
  .coll-row .desc { display: none; }
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(60px, 10vh, 120px) 0 32px;
  margin-top: 80px;
}
.foot-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 48px; margin-bottom: 32px;
}
@media (max-width: 800px) { .foot-top { grid-template-columns: 1fr; gap: 32px; } }
.foot-brand h2 { color: var(--bg); font-size: clamp(40px, 6vw, 88px); font-weight: 400; letter-spacing: -0.03em; line-height: 0.95; }
.foot-brand h2 .it { font-style: italic; font-weight: 300; color: var(--accent-soft); }
.foot-brand .moto { color: rgba(252, 248, 240, 0.6); margin-top: 16px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.foot-col h4 {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(252, 248, 240, 0.5); margin-bottom: 16px; font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-col a { color: rgba(252, 248, 240, 0.85); font-size: 15px; transition: color var(--t-fast); }
.foot-col a:hover { color: var(--accent-soft); }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(252, 248, 240, 0.45);
}

/* ---------- Painting detail page ---------------------------------------- */
.crumbs {
  display: flex; gap: 8px; align-items: center;
  padding: 18px 0;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule);
}
.crumbs a { color: var(--ink-muted); transition: color var(--t-fast); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--ink-faint); }

.painting {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 6vh, 80px) 0;
  align-items: start;
}
@media (max-width: 900px) { .painting { grid-template-columns: 1fr; } }

.painting-figure {
  position: sticky; top: 96px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transition: transform var(--t-med);
}
.painting-figure img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) { .painting-figure { position: static; } }

.painting-meta {
  display: flex; flex-direction: column; gap: 22px;
}
.painting-meta .num {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted);
}
.painting-meta .num .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 999px; }
.painting-meta .coll {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.painting-meta .ttl {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(40px, 5vw, 84px); line-height: 0.95; letter-spacing: -0.025em;
}
.painting-meta .ttl .it { font-style: italic; font-weight: 300; color: var(--accent); display: block; }
.painting-meta .desc { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.painting-meta .desc p + p { margin-top: 14px; }

.spec-grid {
  display: grid; grid-template-columns: auto 1fr; column-gap: 32px; row-gap: 14px;
  padding-top: 24px; border-top: 1px solid var(--rule);
}
.spec-grid dt {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted);
}
.spec-grid dd { margin: 0; font-family: var(--ff-display); font-size: 18px; }

.painting-cta { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 20px; }

.gallery {
  padding: clamp(40px, 6vh, 80px) 0;
  border-top: 1px solid var(--rule);
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-grid img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-soft);
  transition: transform var(--t-med);
}
.gallery-grid a:hover img { transform: scale(1.02); }

.prevnext {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  padding: 48px 0; border-top: 1px solid var(--rule);
}
.prevnext .pn { display: flex; align-items: center; gap: 16px; }
.prevnext .pn.next { justify-content: flex-end; text-align: right; }
.prevnext .pn img { width: 80px; height: 100px; object-fit: cover; border-radius: 4px; background: var(--bg-soft); }
.prevnext .pn .lbl { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.prevnext .pn .ttl { font-family: var(--ff-display); font-size: 18px; }
.prevnext .center {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-muted); text-transform: uppercase;
}
@media (max-width: 700px) {
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .center { display: none; }
  .prevnext .pn.next { justify-content: flex-start; text-align: left; }
}

/* ---------- About page -------------------------------------------------- */
.about-hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(60px, 10vh, 120px) 0;
}
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }
.about-hero-text .h-1 .it { font-style: italic; font-weight: 300; color: var(--accent); display: block; }

.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px;
}
@media (max-width: 800px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.tech-card .icon { width: 36px; height: 36px; color: var(--accent); }
.tech-card .ttl { font-family: var(--ff-display); font-size: 22px; font-weight: 500; }
.tech-card .body { font-size: 15px; color: var(--ink-soft); }

/* ---------- Contact page ------------------------------------------------ */
.contact-hero { padding: clamp(60px, 10vh, 120px) 0 clamp(40px, 6vh, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 900px) { .contact-hero { grid-template-columns: 1fr; } }
.contact-form {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  display: grid; gap: 18px;
  box-shadow: var(--shadow);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea {
  font: inherit; padding: 14px 16px;
  background: transparent; border: 1px solid var(--rule);
  border-radius: 8px; color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(197, 70, 46, 0.12);
}
.field textarea { resize: vertical; min-height: 140px; }

.social {
  display: grid; gap: 6px; padding-top: 28px; border-top: 1px solid var(--rule); margin-top: 28px;
}
.social a {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--ff-display); font-size: clamp(20px, 2vw, 28px);
  transition: padding var(--t-fast), color var(--t-fast);
}
.social a:hover { padding-left: 12px; color: var(--accent); }
.social a .h { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); margin-left: auto; }

/* ---------- Opere index filter chips ----------------------------------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.chip {
  padding: 8px 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--rule);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer;
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--ink-muted); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { color: var(--ink-faint); margin-left: 6px; }
.chip.is-active .count { color: rgba(251, 246, 236, 0.6); }

/* ---------- Animations & micro-interactions ---------------------------- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow), transform var(--t-slow); }
.fade-up.in { opacity: 1; transform: none; }

::selection { background: var(--accent); color: var(--paper); }
