/* =========================================================================
   Jean Santourian — Architecture & Planning
   Theme: editorial, warm neutrals, terracotta accent
   ========================================================================= */

:root {
  --ink: #1b1d21;
  --ink-2: #2a2d33;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --white: #ffffff;
  --accent: #c0693a;
  --accent-2: #a2552c;
  --muted: #6b6f76;
  --line: #e2ddd3;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --container: 1200px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(27, 29, 33, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 29, 33, 0.22);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { width: 1.05em; height: 1.05em; vertical-align: -.18em; flex: none; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; font-size: 1.05rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .92rem; letter-spacing: .02em; line-height: 1;
  cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s;
  font-family: var(--font-body);
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(192,105,58,.28); }
.btn--accent:hover { background: var(--accent-2); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--ghost-dark { color: var(--ink); border-color: rgba(27,29,33,.3); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .95rem; color: var(--ink); }
.link-arrow .ico { transition: transform .25s var(--ease); color: var(--accent); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--ink); color: rgba(255,255,255,.78); font-size: .8rem; }
.topbar__inner { display: flex; gap: 26px; align-items: center; min-height: 36px; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.topbar__item a { color: inherit; }
.topbar__item a:hover { color: #fff; }
.topbar__item--mail { margin-left: auto; }
.topbar .ico { color: var(--accent); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(27,29,33,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand__mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  border-radius: 8px; letter-spacing: .02em; position: relative; overflow: hidden;
}
.brand__mark::after { content: ""; position: absolute; right: -8px; bottom: -8px; width: 22px; height: 22px; background: var(--accent); transform: rotate(45deg); }
.brand__text { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1; }
.brand__text small { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { display: flex; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: .5em; padding: 10px 14px;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  border-radius: 6px; position: relative;
}
.nav__link .ico { color: var(--accent); opacity: .85; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(82vh, 760px); background: var(--ink); overflow: hidden; color: #fff; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 6s linear; pointer-events: none;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; position: relative; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,22,26,.92) 0%, rgba(20,22,26,.72) 45%, rgba(20,22,26,.25) 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: min(82vh, 760px); padding-top: 60px; padding-bottom: 70px; }
.hero__kicker, .eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero__kicker::before, .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.eyebrow--light { color: #f2c9ad; }
.hero__title { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.2rem); margin-bottom: .2em; }
.hero__sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); color: #f2c9ad; margin: 0 0 .5em; }
.hero__desc { max-width: 520px; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__media { position: relative; }
.hero__fg { max-height: 480px; width: auto; margin-left: auto; border-radius: 10px; box-shadow: var(--shadow-lg); animation: rise 1s var(--ease) both; }
.hero__collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-3deg); }
.hero__collage img { aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); border: 3px solid rgba(255,255,255,.9); animation: rise .9s var(--ease) both; }
.hero__collage img:nth-child(2n) { transform: translateY(14px); }
.hero__collage img:nth-child(3n) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; } }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(20,22,26,.4); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.hero__arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero__dots button { width: 34px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: background .2s; }
.hero__dots button.is-active { background: var(--accent); }

/* ------------------------------------------------------------------ stats */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--ink); }
.stat span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* --------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section--alt { background: var(--paper); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.section__head--row .lead { max-width: 520px; margin: 0; }
.section__head h2 { margin-bottom: .3em; }
.lead { font-size: 1.08rem; color: var(--muted); }
.section__cta { text-align: center; margin-top: 46px; }
.h-section { font-size: 1.9rem; margin: 48px 0 22px; }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 28px; }
.grid--featured { grid-template-columns: repeat(3, 1fr); }
.grid--featured .card:first-child { grid-column: span 2; }
.grid--featured .card:first-child .card__media { aspect-ratio: 16/9; }
.grid--portfolio { grid-template-columns: repeat(3, 1fr); }
.card { display: block; color: var(--ink); background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.card__alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img { transform: scale(1.05); }
.card:hover .card__alt { opacity: 1; }
.card__placeholder { height: 100%; display: grid; place-items: center; color: var(--muted); }
.card__placeholder .ico { width: 44px; height: 44px; }
.card__count { position: absolute; top: 14px; right: 14px; background: rgba(20,22,26,.72); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: .35em; backdrop-filter: blur(6px); }
.card__body { padding: 20px 22px 24px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.card__body h3 { font-size: 1.55rem; margin-bottom: 4px; }
.card__meta { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-2); font-size: .86rem; font-weight: 700; background: #fff; transition: all .2s; }
.chip small { font-size: .72rem; color: var(--muted); background: var(--paper); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active small { background: var(--accent); color: #fff; }
.chips--lg .chip { padding: 14px 22px; font-size: 1rem; }
.chips--filter { margin-bottom: 40px; }
.chips--light .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.chips--light .chip:hover { background: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------------ about */
.about__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.about__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.about__facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.fact .ico { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.fact strong { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact a { color: var(--ink); font-weight: 600; }
.prose { font-size: 1.05rem; }
.prose p { margin-bottom: .9em; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px 0 24px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose--page { max-width: 820px; }

/* ----------------------------------------------------------------- events */
.event-list { display: grid; gap: 18px; }
.event-item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, transform .3s; }
.event-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.event-item__date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 10px; text-align: center; }
.event-item__day { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.event-item__month { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; color: #f2c9ad; font-weight: 700; }
.event-item__body h3 { font-size: 1.6rem; margin-bottom: 4px; }
.event-item__body h3 a { color: var(--ink); }
.event-item__body h3 a:hover { color: var(--accent); }
.event-item__time { font-size: .86rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: .4em; }
.event-item__excerpt { color: var(--ink-2); }
.event-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event-row h3 { font-size: 1.3rem; margin: 0; }
.event-row h3 a { color: var(--ink); }
.event-row h3 a:hover { color: var(--accent); }
.event-row__date { font-weight: 700; font-size: .86rem; color: var(--accent); }
.event-row__time { font-size: .86rem; color: var(--muted); }
.event-meta { display: flex; flex-wrap: wrap; gap: 22px; padding: 16px 20px; background: var(--paper); border-radius: var(--radius); margin-bottom: 28px; font-weight: 600; font-size: .95rem; }
.event-meta .ico { color: var(--accent); }

/* --------------------------------------------------------------- calendar */
.calendar { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.calendar__nav { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--ink); color: #fff; }
.calendar__nav h2 { color: #fff; margin: 0; font-size: 1.8rem; flex: 1; text-align: center; }
.calendar__btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.calendar__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.calendar__today { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f2c9ad; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar__head { padding: 12px 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; background: var(--paper); border-bottom: 1px solid var(--line); }
.calendar__cell { min-height: 96px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; }
.calendar__cell:nth-child(7n) { border-right: 0; }
.calendar__cell--empty { background: repeating-linear-gradient(45deg, #faf9f6 0 6px, #f3f1ec 6px 12px); }
.calendar__day { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; color: var(--ink-2); }
.calendar__cell.is-today .calendar__day { background: var(--accent); color: #fff; }
.calendar__cell.has-events { background: #fff8f3; }
.calendar__event { display: block; margin-top: 6px; padding: 5px 8px; border-radius: 4px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar__event:hover { background: var(--accent); color: #fff; }

/* -------------------------------------------------------------- page hero */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 60px solid rgba(255,255,255,.04); border-radius: 50%; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,.72); font-size: 1.1rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--accent); }

/* ---------------------------------------------------------------- project */
.project-hero { position: relative; background: var(--ink) center/cover no-repeat; color: #fff; }
.project-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,.55), rgba(20,22,26,.92)); }
.project-hero__inner { position: relative; padding: 120px 24px 60px; }
.project-hero h1 { color: #fff; margin-bottom: .3em; }
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery__item { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery__item:first-child { grid-column: span 2; aspect-ratio: 16/10; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20,22,26,.45)); opacity: 0; transition: opacity .3s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { opacity: 1; }
.project-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-box { padding: 26px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.side-box h3 { font-size: 1.35rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.side-box .prose { font-size: 1rem; }
.side-box .prose p:last-child { margin-bottom: 0; }
.side-box--dark { background: var(--ink); color: rgba(255,255,255,.85); border-color: var(--ink); }
.side-box--dark h3 { color: #fff; }
.side-box--facts { display: flex; gap: 20px; }
.side-box--facts > div { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.side-box--facts .ico { color: var(--accent); width: 20px; height: 20px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--ink); font-weight: 600; }
.side-list a:hover { color: var(--accent); }
.side-list--posts li { display: flex; flex-direction: column; }
.side-list--posts small { color: var(--muted); font-size: .8rem; }
.pager-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.pager-nav__link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.pager-nav__link small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pager-nav__link--next { justify-self: end; text-align: right; }
.pager-nav__link .ico { color: var(--accent); width: 26px; height: 26px; }
.pager-nav__link:hover { color: var(--accent); }
.pager-nav__all { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .85rem; }
.pager-nav__all:hover { border-color: var(--ink); }

/* ------------------------------------------------------- generic page */
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.page-side { display: grid; gap: 18px; position: sticky; top: 100px; }
.page-figure { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ico { color: var(--accent); margin-top: 3px; width: 20px; height: 20px; }
.contact-list a { color: inherit; }
.contact-list a:hover { color: var(--accent); }
.contact-list--dark { color: var(--ink-2); }

/* ---------------------------------------------------------------- contact */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field em { color: var(--accent); font-style: normal; }
.field input, .field textarea { font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(192,105,58,.14); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field small { color: #c0392b; font-weight: 600; }
.field--hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 22px; font-size: .98rem; }
.alert--success { background: #eaf6ea; color: #1e5a2a; border: 1px solid #bfe3c4; }
.alert--error { background: #fdecea; color: #8a2a20; border: 1px solid #f3c2bb; }
.contact-side { display: grid; gap: 18px; }
.map-box iframe, .footer__map iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); filter: grayscale(.4) contrast(1.05); }

/* --------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14,15,18,.94); display: none; align-items: center; justify-content: center; padding: 60px; }
.lightbox.is-open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-lg); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__btn .ico { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 50px; padding: 70px 24px 50px; }
.footer__brand { display: inline-grid; place-items: center; width: 46px; height: 46px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; border-radius: 8px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.footer__text p { margin-bottom: .5em; }
.footer__text strong { color: #fff; }
.site-footer .contact-list a { color: rgba(255,255,255,.85); }
.site-footer .contact-list a:hover { color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social a { padding: 7px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { color: rgba(255,255,255,.7); font-weight: 600; }
.footer__links a:hover { color: #fff; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .grid--featured, .grid--portfolio { grid-template-columns: repeat(2, 1fr); }
  .grid--featured .card:first-child { grid-column: span 2; }
  .project-layout, .page-layout, .contact-layout { grid-template-columns: 1fr; }
  .project-side, .page-side { position: static; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .topbar__inner { gap: 14px; font-size: .74rem; overflow: hidden; }
  .topbar__item--mail { display: none; }
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
  .brand__text { font-size: 1.3rem; }
  .section { padding: 60px 0; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .grid--featured, .grid--portfolio { grid-template-columns: 1fr; }
  .grid--featured .card:first-child { grid-column: auto; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .hero { min-height: 0; }
  .hero__inner { min-height: 0; padding: 70px 24px 80px; }
  .hero__arrow { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:first-child { grid-column: auto; }
  .event-item { grid-template-columns: 1fr; }
  .event-item__date { flex-direction: row; gap: 10px; justify-content: flex-start; padding: 10px 16px; }
  .event-item__day { font-size: 1.6rem; }
  .event-item__month { margin-top: 0; }
  .event-row { grid-template-columns: 1fr; gap: 4px; }
  .calendar__cell { min-height: 64px; padding: 4px; }
  .calendar__event { font-size: .62rem; padding: 3px 5px; }
  .calendar__nav h2 { font-size: 1.3rem; }
  .pager-nav { grid-template-columns: 1fr; text-align: center; }
  .pager-nav__link--next { justify-self: start; text-align: left; }
  .pager-nav__all { justify-self: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding: 50px 24px 30px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .lightbox { padding: 16px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 50px; transform: none; }
}
