/* ============================================================
   MARANGOS — HERITAGE WOODWORKS
   Direction 01 · "Heritage Atelier"
   Warm editorial calm — Roman serif display, arched imagery,
   cream & walnut. A craftsman's atelier, not a factory.
   ============================================================ */

:root {
  /* Palette — cream, walnut, terracotta */
  --bg:        #f6efe3;
  --bg-2:      #efe5d4;
  --bg-3:      #e8dcc6;
  --ink:       #2c2117;
  --ink-2:     #3a2c1f;
  --soft:      #5d5142;
  --mute:      #8a7d6a;
  --accent:    #9c5b2e;
  --accent-2:  #b06c38;
  --tan:       #caa979;
  --line:      #ddd0ba;
  --line-2:    #cdbd9f;
  --dark:      #241a12;
  --dark-2:    #1e150e;
  --on-dark:   #ece0c9;
  --on-dark-m: #b6a684;

  --serif:    'Marcellus', Georgia, serif;
  --serif-it: 'Cormorant Garamond', Georgia, serif;
  --sans:     'Mulish', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1280px;
  --r: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(20px, 5vw, 60px); }
.section { padding-block: clamp(70px, 10vw, 138px); position: relative; }

/* ---- Type ---- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.012em;
}
.display .accent {
  font-family: var(--serif-it);
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.7; color: var(--soft); }
.accent { color: var(--accent); }

/* ---- Eyebrow / tag ---- */
.tag {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.tag .sq { width: 24px; height: 1.5px; background: var(--accent); flex-shrink: 0; }
.tag.on-dark { color: var(--tan); }

/* section header */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head .h2 { margin-top: 16px; max-width: 16ch; }

/* ---- Buttons (pills) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px; border-radius: 100px;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--bg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost.on-dark { color: var(--on-dark); border-color: rgba(236,224,201,0.4); }
.btn-ghost.on-dark:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-arrow {
  font-family: var(--serif-it); font-style: italic; font-size: 19px;
  color: var(--accent); display: inline-flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px; transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 14px; }

/* ---- Imagery placeholders (warm — drop real photography) ---- */
.ph { position: relative; overflow: hidden; background: var(--bg-3); }
.ph .cap {
  position: absolute; inset-inline-start: 22px; inset-block-end: 18px; z-index: 2;
  font-family: var(--serif-it); font-style: italic; font-size: 15px;
  color: rgba(255,255,255,0.94); text-shadow: 0 1px 14px rgba(40,25,12,0.5);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w1 { background: linear-gradient(150deg, #c9a878, #9c6f43 60%, #6f4a28); }
.w2 { background: linear-gradient(150deg, #b98a52, #7c5430 62%, #523619); }
.w3 { background: linear-gradient(150deg, #b6b196, #8c8463 60%, #6a6347); }
.w4 { background: linear-gradient(150deg, #caa15f, #8a5e2e 60%, #5a3a1c); }
.w5 { background: linear-gradient(150deg, #b89a6e, #876545 62%, #5a3f25); }
/* faint plank texture over fills */
.ph[class*="w"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 46px),
                    repeating-linear-gradient(90deg, rgba(40,25,12,0.05) 0 1px, transparent 1px 120px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled { background: rgba(246,239,227,0.86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-block: 13px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo .logo-img { height: 44px; width: auto; display: block; transition: height 0.4s var(--ease); }
.nav.scrolled .nav-logo .logo-img { height: 38px; }
.nav-logo .logo-light { display: none; }
.nav-logo .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.navlink {
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink); opacity: 0.82; position: relative; padding: 4px 0; transition: opacity 0.25s;
}
.navlink::after { content: ""; position: absolute; inset-block-end: -1px; inset-inline-start: 0; width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s var(--ease); }
.navlink:hover { opacity: 1; }
.navlink:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 1.5px solid var(--line-2); border-radius: 100px;
  padding: 8px 14px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); transition: all 0.25s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn svg { width: 13px; height: 13px; transition: transform 0.25s; }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0;
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 14px;
  padding: 6px; min-width: 178px; box-shadow: 0 20px 48px rgba(44,33,23,0.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.22s var(--ease); z-index: 10;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: none; padding: 11px 13px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-align: start; transition: background 0.18s;
}
.lang-menu button:hover { background: var(--bg-2); }
.lang-menu button.active { color: var(--accent); background: var(--bg-2); }
.lang-menu button .flag { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--mute); width: 26px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s var(--ease); }

/* ============================================================
   HERO  (centered, arched imagery)
   ============================================================ */
.hero { position: relative; background: var(--bg); color: var(--ink); padding-top: clamp(120px, 13vw, 158px); overflow: hidden; }
.hero .grid-overlay { display: none; }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(8px, 3vw, 30px) clamp(40px, 6vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-top { display: none; }
.hero .tag { justify-content: center; }
.hero h1 { color: var(--ink); max-width: 17ch; margin: 22px auto 22px; }
.hero h1 .accent { font-family: var(--serif-it); font-style: italic; color: var(--accent); font-weight: 500; }
.hero-lead { max-width: 58ch; color: var(--soft); font-size: clamp(17px, 1.4vw, 20px); margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; justify-content: center; }

/* arched hero image (replaces blueprint exhibit) */
.exhibit {
  position: relative; width: 100%; margin-top: clamp(46px, 6vw, 76px);
  height: clamp(340px, 44vw, 540px);
  border-radius: 320px 320px var(--r) var(--r);
  overflow: hidden;
  background: linear-gradient(160deg, #caa979 0%, #9c6f43 58%, #654225 100%);
  box-shadow: 0 40px 80px -30px rgba(60,40,20,0.45);
}
.exhibit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 54px),
                    repeating-linear-gradient(90deg, rgba(40,25,12,0.05) 0 1px, transparent 1px 130px);
}
.exhibit .layer, .exhibit .seam, .exhibit .titleblock { display: none; }
.exhibit image-slot, .himg image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.exhibit.has-photo::after { opacity: 1; background-image: linear-gradient(180deg, transparent 62%, rgba(30,18,8,0.5)); }
.himg.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 58%, rgba(30,18,8,0.55)); }
.exhibit .ex-cap {
  position: absolute; inset-inline-start: 50%; inset-block-end: 26px; transform: translateX(-50%); z-index: 2;
  font-family: var(--serif-it); font-style: italic; font-size: 16px;
  color: rgba(255,255,255,0.92); text-shadow: 0 1px 16px rgba(40,25,12,0.5); text-align: center;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(34px, 6vw, 84px); margin-top: clamp(44px, 5vw, 64px); border-top: 1px solid var(--line); padding-top: 38px; justify-content: center; }
.hero-meta .stat { text-align: center; }
.hero-meta .stat .n { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 58px); font-weight: 400; color: var(--ink); line-height: 1; }
.hero-meta .stat .l { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-top: 12px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(40px, 7vw, 92px); align-items: start; }
.about-statement { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); font-weight: 400; line-height: 1.16; letter-spacing: -0.012em; max-width: 17ch; }
.about-statement .accent { font-family: var(--serif-it); font-style: italic; color: var(--accent); font-weight: 500; }
.about-side p { color: var(--soft); margin-bottom: 30px; font-size: 17px; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.stat-b .n { font-family: var(--serif); font-size: clamp(40px, 4vw, 54px); font-weight: 400; color: var(--ink); line-height: 1; }
.stat-b .l { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }

/* ============================================================
   SERVICES / CATEGORIES
   ============================================================ */
.services { background: var(--bg-2); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 26px; }
.cat { display: flex; flex-direction: column; transition: transform 0.35s var(--ease); }
.cat:hover { transform: translateY(-5px); }
.cat .cimg {
  aspect-ratio: 4 / 3.4; border-radius: var(--r) var(--r) 120px 120px;
  box-shadow: 0 24px 44px -26px rgba(60,40,20,0.4);
}
.cat .cimg.has-img { background: #f3f1ec; }
.cat .cimg.has-img img { transition: transform 0.6s var(--ease); }
.cat:hover .cimg.has-img img { transform: scale(1.04); }
.cat-body { padding: 22px 8px 0; display: flex; flex-direction: column; gap: 9px; align-items: center; text-align: center; flex: 1; }
.cat-body h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -0.005em; }
.cat-body p { font-size: 14.5px; color: var(--soft); line-height: 1.55; max-width: 28ch; }
.cat-code { display: none; }
.services-note { margin-top: 46px; display: flex; justify-content: center; }
.services-note .tag { color: var(--mute); font-weight: 600; letter-spacing: 0.08em; }
.services-note .tag .sq { background: var(--mute); }

/* ============================================================
   MATERIALS & PARTNERS
   ============================================================ */
.materials { background: var(--bg); }
.mat-list { border-top: 1px solid var(--line); }
.mat {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 5vw, 76px);
  align-items: center; padding: clamp(30px, 3.6vw, 46px) 0; border-bottom: 1px solid var(--line);
}
.mat-code { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--mute); }
.mat-main h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.7vw, 36px); letter-spacing: -0.01em; margin: 9px 0 12px; }
.mat-desc { font-size: 15.5px; color: var(--soft); line-height: 1.6; max-width: 46ch; }
.mat-logos { display: flex; flex-wrap: wrap; gap: 14px; }
.mlogo {
  width: 150px; height: 76px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 10px;
}
.mat-logos.has-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mlogo.brand { width: auto; height: 88px; display: grid; place-items: center; padding: 0 10px; transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.mlogo.brand:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.mlogo.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mlogo.brand img { display: block; height: auto; max-width: 86%; }
.mlogo.brand.wide { grid-column: 1 / -1; }
.mlogo.brand.line { display: flex; align-items: center; height: auto; min-height: 88px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.mlogo.brand.line .line-k { font-family: var(--serif); font-size: 20px; line-height: 1.15; text-wrap: balance; }
@media (max-width: 560px) { .mat-logos.has-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mlogo.wood { position: relative; overflow: hidden; width: auto; height: 88px; margin: 0; background: var(--bg-3); }
.mlogo.wood img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mlogo.wood figcaption { position: absolute; inset-inline-start: 8px; inset-block-end: 8px; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; padding: 4px 9px; border-radius: 8px; max-width: calc(100% - 16px); }
.wood-credit { grid-column: 1 / -1; font-size: 11px; line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.wood-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.wood-credit a:hover { color: var(--accent); }


.clients { background: var(--bg); }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.client-cell {
  border-block-end: 1px solid var(--line); border-inline-end: 1px solid var(--line);
  min-height: 138px; display: grid; place-items: center; padding: 24px; position: relative;
  transition: background 0.3s var(--ease);
}
.client-cell:hover { background: var(--bg-2); }
.client-cell .cidx { position: absolute; inset-block-start: 13px; inset-inline-start: 15px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--line-2); }
.client-cell .cname { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 24px); font-weight: 400; letter-spacing: -0.005em; color: var(--ink-2); text-align: center; line-height: 1.1; }
.client-cell.more .cname { font-family: var(--serif-it); font-style: italic; color: var(--accent); }
.client-cell img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: all 0.3s; }
.client-cell:hover img { filter: grayscale(0); opacity: 1; }

/* ============================================================
   PROCESS (dark walnut centerpiece)
   ============================================================ */
.process { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.process .grid-overlay {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(236,224,201,0.05) 1px, transparent 1.4px);
  background-size: 9px 9px;
}
.process .wrap { position: relative; z-index: 2; }
.process .h2 { color: var(--bg); }
.process .sec-head .lead { color: var(--on-dark-m); }
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(236,224,201,0.14); border: 1px solid rgba(236,224,201,0.14); }
.proc-step { padding: 38px 32px 42px; position: relative; background: var(--dark); transition: background 0.3s; }
.proc-step:hover { background: var(--dark-2); }
.proc-step .pnum { font-family: var(--serif-it); font-style: italic; font-size: 22px; color: var(--tan); }
.proc-step h3 { font-family: var(--serif); color: var(--bg); font-size: 24px; font-weight: 400; margin: 12px 0 12px; letter-spacing: -0.005em; }
.proc-step p { color: var(--on-dark-m); font-size: 14.5px; line-height: 1.6; }
.proc-step .ghost { display: none; }

/* ============================================================
   HERITAGE
   ============================================================ */
.heritage { background: var(--bg); }
.company-heritage { margin-top: clamp(64px, 8vw, 110px); padding-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.heritage-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.heritage-img { position: relative; }
.heritage-img .himg {
  aspect-ratio: 4 / 5; border-radius: 230px 230px var(--r) var(--r);
  box-shadow: 0 36px 70px -34px rgba(60,40,20,0.5);
}
.heritage-img .badge {
  position: absolute; inset-inline-end: -14px; inset-block-end: 34px; z-index: 3;
  background: var(--accent); color: #fff; padding: 20px 24px; border-radius: 100px;
  text-align: center; box-shadow: 0 16px 34px -12px rgba(156,91,46,0.6);
}
.heritage-img .badge .n { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; }
.heritage-img .badge .l { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; opacity: 0.92; }
.heritage-body .h2 { margin: 16px 0 24px; }
.heritage-body p { color: var(--soft); margin-bottom: 22px; }
.pull-quote { font-family: var(--serif-it); font-style: italic; font-size: clamp(23px, 2.5vw, 32px); font-weight: 500; line-height: 1.3; color: var(--accent); border-inline-start: 2px solid var(--tan); padding-inline-start: 26px; margin: 30px 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.contact-intro .h2 { margin: 16px 0 22px; }
.contact-intro > p { color: var(--soft); max-width: 46ch; }
.contact-details { display: grid; gap: 0; margin-top: 38px; border-top: 1px solid var(--line-2); }
.cdetail { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.cdetail .ic { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.cdetail .ic svg { width: 100%; height: 100%; }
.cdetail .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px; }
.cdetail .v { font-size: 16.5px; color: var(--ink); font-weight: 500; }
.langs-spoken { margin-top: 30px; }
.langs-spoken .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 100px; padding: 7px 16px; }

.contact-form { background: var(--bg); border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(26px, 3vw, 40px); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--bg-2); border: 1.5px solid var(--line-2); border-radius: 11px;
  padding: 13px 15px; transition: border-color 0.2s, background 0.2s; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.field textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--mute); margin-top: 15px; text-align: center; }
.contact-form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.contact-form .btn:disabled{opacity:.6;cursor:wait;transform:none}
.form-msg{font-size:14px;line-height:1.5;margin:14px 0 0;text-align:center;text-wrap:pretty}
.form-msg.ok{color:#3c7a4a}
.form-msg.err{color:#a3422a}
.contact-form.is-sent > :not(.form-sent){display:none}
.form-sent{text-align:center;padding:clamp(40px,6vw,72px) 0}
.form-sent h3{font-family:var(--serif);font-weight:400;font-size:clamp(28px,3vw,36px);line-height:1.1;margin:0 0 12px;color:var(--ink)}
.form-sent p{color:var(--soft);margin:0;text-wrap:pretty}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark-2); color: var(--on-dark-m); padding-block: clamp(52px, 7vw, 82px); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(236,224,201,0.12); }
.footer-logo { height: 50px; width: auto; display: block; margin-bottom: 22px; }
.footer-brand p { font-size: 14.5px; max-width: 36ch; line-height: 1.7; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14.5px; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--tan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; letter-spacing: 0.01em; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .has-reveal .reveal.d1 { transition-delay: 0.05s; }
  .has-reveal .reveal.d2 { transition-delay: 0.12s; }
  .has-reveal .reveal.d3 { transition-delay: 0.19s; }
  .has-reveal .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset-block-start: 0; inset-inline-end: 0; height: 100vh; width: min(78vw, 340px);
    background: var(--dark); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px; transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 90;
  }
  .nav-links.open { transform: translateX(0); }
  .navlink { color: var(--on-dark); font-size: 19px; opacity: 0.9; }
  .nav-burger { display: flex; z-index: 95; }
  .nav-burger.open span { background: var(--on-dark); }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about-grid, .heritage-grid, .contact-grid { grid-template-columns: 1fr; }
  .mat { grid-template-columns: 1fr; gap: 22px; }
  .heritage-img { max-width: 440px; }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat .cimg { aspect-ratio: 4 / 3; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .exhibit { border-radius: 200px 200px var(--r) var(--r); }
}

/* ---- Clients ---- */
.clients .client-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;border:0}
.clients .client-cell{border:0;min-height:0;height:104px;padding:0 12px;background:var(--bg-2);border-radius:10px;display:grid;place-items:center;transition:background .3s var(--ease),box-shadow .3s var(--ease)}
.clients .client-cell:hover{background:var(--bg-3);box-shadow:inset 0 0 0 1px var(--line-2)}
.clients a.client-cell{text-decoration:none}
.clients a.client-cell:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.clients .client-cell img{display:block;height:auto;max-height:none;max-width:86%;filter:none;opacity:1}
.clients .client-cell .cname{font-size:clamp(17px,1.5vw,20px);color:var(--soft)}
@media (max-width:980px){.clients .client-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:620px){.clients .client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
