@charset "utf-8";

/* ==========================================================================
   REN MORA JEWELRY - design system
   Palette and type are taken from the live site (Bricks globals + Open Sans).
   Do not introduce a second font family or a colour accent.
   ========================================================================== */

:root {
  /* Brand palette - verified from the live Bricks global colours */
  --brand-primary:   #404040;
  --brand-secondary: #6a6b6b;
  --brand-accent:    #222222;
  --surface:         #ffffff;
  --surface-muted:   #f4f4f4;
  --surface-sunken:  #ececec;
  --border:          #dbdbdb;
  --border-strong:   #c0c0c0;
  --divider:         #d8d8d8;
  --text-primary:    #222222;
  --text-secondary:  #6a6b6b;
  --text-inverse:    #ffffff;
  --ink:             #000000;

  /* Type */
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --step-display: clamp(2.35rem, 5.6vw, 4.25rem);
  --step-h2:      clamp(1.7rem, 3.4vw, 2.5rem);
  --step-h3:      clamp(1.15rem, 1.6vw, 1.35rem);
  --step-lead:    clamp(1.1rem, 1.9vw, 1.4rem);
  --step-body:    19px;
  --step-small:   0.9375rem;
  --step-label:   0.75rem;

  /* Space */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 88px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 340ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden turns body into a scroll container and breaks
     smooth scrolling and scroll-padding on some browsers */
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); font-weight: 600; letter-spacing: 0; line-height: 1.35; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--text-primary); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
  border-radius: 1px;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section--muted { background: var(--surface-muted); }
.section--sunken { background: var(--surface-sunken); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--text-primary); color: var(--text-inverse);
  padding: 12px 22px; font-size: var(--step-small); font-weight: 600;
  text-decoration: none; transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--text-inverse); }

.eyebrow {
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  display: block;
}

.lead {
  font-size: var(--step-lead);
  font-weight: 300;
  line-height: 1.6;
  color: var(--brand-primary);
}

.rule { height: 1px; background: var(--border); border: 0; margin-block: clamp(40px, 6vw, 72px); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 14px 30px;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--text-inverse); background: var(--brand-primary);
  border: 1px solid var(--brand-primary); border-radius: 0; cursor: pointer;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--text-primary); border-color: var(--text-primary); color: var(--text-inverse); }
.btn:active { transform: translateY(1px); }

.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--text-primary); border-color: var(--text-primary); color: var(--text-inverse); }

.btn--wide { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
  transition: min-height var(--t-base) var(--ease);
}
.site-header.is-stuck .site-header__inner { min-height: 68px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img {
  width: auto; height: 56px;
  transition: height var(--t-base) var(--ease);
}
.site-header.is-stuck .brand img { height: 44px; }

.nav { display: none; }

.nav__list { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }

.nav__link {
  position: relative;
  display: block; padding: 8px 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--text-primary); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer; color: var(--text-primary);
}
.nav-toggle__bar {
  display: block; width: 24px; height: 1.5px; background: currentColor;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1180px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  visibility: hidden;
  /* clip the off-screen panel so it can never widen the document */
  overflow: clip;
}
.drawer.is-open { visibility: visible; }

.drawer__scrim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4);
  opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter); border-bottom: 1px solid var(--border);
}
.drawer__title { font-size: var(--step-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-secondary); }

.drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer; color: var(--text-primary);
}

.drawer__list { list-style: none; margin: 0; padding: 8px 0 24px; }
.drawer__list a {
  display: block; padding: 14px var(--gutter);
  font-size: 1rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--text-primary); text-decoration: none;
  border-bottom: 1px solid var(--surface-muted);
  transition: background var(--t-fast) var(--ease), padding-left var(--t-base) var(--ease);
}
.drawer__list a:hover { background: var(--surface-muted); padding-left: calc(var(--gutter) + 8px); }
.drawer__list a[aria-current="page"] { font-weight: 600; }

.drawer__foot { margin-top: auto; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--brand-accent); color: #d8d8d8; padding-block: clamp(56px, 7vw, 88px) 40px; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }

.site-footer__grid {
  display: grid; gap: clamp(36px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer__logo { width: auto; height: 92px; filter: brightness(0) invert(1); opacity: 0.92; }

.site-footer__heading {
  font-size: var(--step-label); font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: #ffffff; margin: 0 0 1.25rem;
}

.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__list a { font-size: var(--step-small); }

.site-footer__place {
  font-size: var(--step-label); font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: #ffffff; margin: 1.5rem 0 0;
}

.site-footer__legal {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8125rem; line-height: 1.7; letter-spacing: 0.03em;
  color: #c0c0c0; text-transform: uppercase;
}

.social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, 0.12); border-color: #ffffff; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Page head / breadcrumbs
   -------------------------------------------------------------------------- */

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-head__title { margin-bottom: 0; }
.page-head__intro { margin-top: 1.25rem; max-width: 62ch; }

.breadcrumb { margin-bottom: clamp(24px, 4vw, 40px); font-size: var(--step-label); letter-spacing: 0.12em; text-transform: uppercase; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--border-strong); }
.breadcrumb [aria-current="page"] { color: var(--text-primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(48px, 7vw, 104px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero__title { margin-bottom: 0; }
.hero__name { display: block; font-weight: 600; letter-spacing: -0.03em; }
.hero__role {
  display: block; font-size: var(--step-label); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: 1.5rem; line-height: 1.6;
}
.hero__lead { margin-top: 1.75rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.25rem; }

.hero__figure { position: relative; margin: 0; }
.hero__figure::before {
  content: ""; position: absolute; inset: auto -6% -6% 12%;
  height: 62%; background: var(--surface-muted); z-index: 0;
}
.hero__figure img { position: relative; z-index: 1; width: 100%; }

.marks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.marks li {
  font-size: var(--step-label); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */

.story__quote {
  margin: 0; padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--border-strong);
  font-size: var(--step-lead); font-weight: 300; line-height: 1.65; color: var(--brand-primary);
}
.story__quote p:last-of-type { margin-bottom: 0; }
.story__sign { display: block; margin-top: 1.5rem; font-size: var(--step-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Category cards
   -------------------------------------------------------------------------- */

.cards { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); list-style: none; margin: 0; padding: 0; }
.cards > .card { min-width: 0; }

.card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface-muted); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-sunken); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }

.card__body { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 22px 24px; }
.card__title { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--text-primary); }
.card__meta { font-size: var(--step-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }

.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link { text-decoration: none; color: inherit; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--text-primary); outline-offset: 3px; }

.card--plain .card__media { display: flex; align-items: center; justify-content: center; background: var(--surface-sunken); }
.card--plain .card__glyph { font-size: var(--step-label); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Gallery + lightbox
   -------------------------------------------------------------------------- */

.gallery { display: grid; gap: clamp(12px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }

.gallery__item { margin: 0; min-width: 0; }

.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--surface-sunken);
  cursor: zoom-in; overflow: hidden; position: relative; aspect-ratio: 3 / 4;
}
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__btn::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0); transition: background var(--t-base) var(--ease);
}
.gallery__btn:hover::after { background: rgba(0, 0, 0, 0.06); }

.gallery__caption { padding-top: 10px; font-size: var(--step-small); line-height: 1.5; color: var(--text-secondary); }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; }
.lightbox[open] { display: block; }
.lightbox__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.9); }
.lightbox__stage {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(56px, 8vh, 88px) clamp(16px, 6vw, 96px);
}
.lightbox__img { max-width: 100%; max-height: calc(100vh - 200px); width: auto; object-fit: contain; }
.lightbox__caption { margin-top: 18px; max-width: 62ch; text-align: center; font-size: var(--step-small); line-height: 1.55; color: #dbdbdb; }
.lightbox__count { margin-top: 8px; font-size: var(--step-label); letter-spacing: 0.18em; text-transform: uppercase; color: #a8a8a8; }

.lightbox__btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28); color: #ffffff; cursor: pointer;
  transition: background var(--t-base) var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* --------------------------------------------------------------------------
   Empty / Coming Soon states
   -------------------------------------------------------------------------- */

.empty {
  display: grid; place-items: center; text-align: center;
  padding: clamp(56px, 9vw, 112px) var(--gutter);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}
.empty__mark {
  font-size: clamp(1.6rem, 4.5vw, 2.75rem); font-weight: 300;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-primary);
  margin: 0;
}
.empty--sentence .empty__mark {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 300;
  letter-spacing: 0.01em; text-transform: none; line-height: 1.45; max-width: 24ch;
}
.empty__note { margin: 1.5rem 0 0; max-width: 46ch; font-size: var(--step-small); color: var(--text-secondary); }
.empty__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2rem; }

.notice {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: var(--step-small);
}
.notice p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quotes { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quotes > li { min-width: 0; }

.quote {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(26px, 3vw, 38px);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.quote:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.quote blockquote { margin: 0 0 1.5rem; font-size: var(--step-small); line-height: 1.75; color: var(--text-secondary); }
.quote figcaption { margin-top: auto; font-size: var(--step-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-primary); }

/* --------------------------------------------------------------------------
   Resources
   -------------------------------------------------------------------------- */

.res-group + .res-group { margin-top: clamp(44px, 6vw, 72px); }
.res-group__title {
  font-size: var(--step-h3); font-weight: 600; letter-spacing: 0.02em;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
}

.res-list { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); list-style: none; margin: 0; padding: 0; }

.res-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.5vw, 28px); border: 1px solid var(--border); background: var(--surface); transition: border-color var(--t-base) var(--ease); }
.res-card:hover { border-color: var(--border-strong); }
.res-card__name { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--text-primary); letter-spacing: 0; }
.res-card__links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--step-small); }
.res-card__links li { overflow-wrap: anywhere; }
.res-card__links a { display: inline; align-items: baseline; color: var(--text-primary); overflow-wrap: anywhere; }
.res-card__label { color: var(--text-secondary); }
.res-card__self { font-size: var(--step-small); color: var(--text-secondary); }

.ext { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.1em; flex-shrink: 0; }
.ext svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: var(--step-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-primary); }
.field__req { color: var(--text-primary); }
.field__hint { font-size: 0.8125rem; color: var(--text-secondary); }

.field__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field__row { grid-template-columns: 1fr 1fr; } }

.input {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font-family: inherit; font-size: 1rem; color: var(--text-primary);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 0;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea.input { min-height: 150px; resize: vertical; line-height: 1.6; }
.input::placeholder { color: var(--text-secondary); opacity: 1; }
.input:hover { border-color: var(--text-secondary); }
.input:focus { outline: none; border-color: var(--text-primary); box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.14); }
.input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }

.field__error { display: none; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.field__error::before { content: "\26A0  "; }
.field.has-error .field__error { display: block; }

.form__status { display: none; padding: 16px 20px; border: 1px solid var(--text-primary); background: var(--surface-muted); font-size: var(--step-small); }
.form__status.is-visible { display: block; }

.check { display: flex; align-items: center; gap: 12px; font-size: var(--step-small); color: var(--text-secondary); cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand-primary); flex-shrink: 0; }

.auth { max-width: 460px; }
.auth__meta { margin-top: 20px; font-size: var(--step-small); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 0.85fr 1.15fr; } }

.mail-link { font-size: var(--step-lead); font-weight: 300; color: var(--text-primary); word-break: break-word; }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--brand-primary); color: var(--text-inverse);
  border: 1px solid var(--brand-primary); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
              visibility var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--text-primary); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

/* Gated on .js so that with scripting off every section is simply visible,
   rather than stuck at opacity 0 waiting for an observer that never runs. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover .card__media img,
  .gallery__btn:hover img { transform: none; }
  .quote:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .drawer, .to-top, .lightbox { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
