/* Corporación EVASAC — "Portada": every photograph is seen through the Inca doorway of the logo.
   Night-stone dark rooms alternate with ivory and sand galleries; canela is the only metal. */
:root {
  --noche: #14110E;
  --noche-2: #1C1713;
  --espresso: #241A13;
  --marfil: #F4EFE7;
  --arena: #E6DACA;
  --canela: #B8864E;
  --canela-hi: #D3A66C;
  --canela-deep: #8A5C30;
  --ink-d: #F1EBE1;
  --muted-d: #B8AC9B;
  --ink-l: #1C1712;
  --muted-l: #62564A;

  /* the room you are in (dark by default) */
  --bg: var(--noche);
  --fg: var(--ink-d);
  --muted: var(--muted-d);
  --accent: var(--canela);
  --accent-text: var(--canela-hi);
  --line: rgba(241, 235, 225, .14);

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --text: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(46px, 6.6vw, 112px);
  --t-1: clamp(40px, 4.8vw, 78px);
  --t-2: clamp(32px, 3.4vw, 54px);
  --t-3: clamp(22px, 1.9vw, 28px);
  --t-state: clamp(25px, 2.55vw, 40px);
  --t-body: 16.5px;
  --t-small: 14px;

  --m: clamp(20px, 4.6vw, 80px);
  --pad: clamp(84px, 9.5vw, 150px);
  --max: 1520px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--noche); color: var(--ink-d);
  font: 400 var(--t-body)/1.65 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
::selection { background: var(--canela); color: var(--noche); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--marfil); color: var(--noche); padding: 10px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- rooms ---------- */
main > section { background: var(--bg); color: var(--fg); padding: var(--pad) var(--m); position: relative; }
main > section > * { max-width: var(--max); }
.light { --bg: var(--marfil); --fg: var(--ink-l); --muted: var(--muted-l); --accent: var(--canela-deep); --accent-text: var(--canela-deep); --line: rgba(28, 23, 18, .14); }
.sand { --bg: var(--arena); --fg: var(--ink-l); --muted: var(--muted-l); --accent: var(--canela-deep); --accent-text: var(--canela-deep); --line: rgba(28, 23, 18, .16); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 600 11.5px/1.2 var(--text); letter-spacing: .26em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.statement { font-family: var(--display); font-weight: 300; font-size: var(--t-state); line-height: 1.24; letter-spacing: -0.005em; }
.soft { color: var(--muted); }
.dropcap { float: left; width: 1.95em; height: 1.95em; margin: .14em .3em 0 0; }
.todo { color: var(--muted); font-style: italic; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 30px;
  background: var(--canela); color: var(--noche); border: 1px solid var(--canela); border-radius: 0;
  font: 600 12.5px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--canela-hi); border-color: var(--canela-hi); }
.btn:active { transform: scale(.98); }
.light .btn, .sand .btn { background: var(--ink-l); border-color: var(--ink-l); color: var(--marfil); }
.light .btn:hover, .sand .btn:hover { background: var(--canela-deep); border-color: var(--canela-deep); }
.btn--line { background: transparent !important; color: var(--fg) !important; border-color: var(--accent) !important; }
.btn--line:hover { background: var(--accent) !important; color: var(--bg) !important; }
.btn--block { display: flex; width: 100%; }
.link {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 600 12.5px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--fg); text-decoration: none;
  position: relative;
}
.link::after { content: "→"; font-weight: 400; letter-spacing: 0; transition: transform .35s var(--ease); color: var(--accent-text); }
.link::before { content: ""; position: absolute; left: 0; right: 1.6em; bottom: 0; height: 1px; background: var(--accent); transform-origin: left; transition: transform .45s var(--ease); }
.link:hover::after { transform: translateX(5px); }
.link:hover::before { transform: scaleX(.4); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.chip-status {
  display: inline-block; padding: 5px 10px 4px; border: 1px solid var(--accent); color: var(--accent-text);
  font: 600 10.5px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; vertical-align: middle;
}

/* ---------- the doorway (niche) ---------- */
.niche { --s: 13%; --d: 11px; position: relative; isolation: isolate; }
.niche::before, .niche::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 1.2s var(--ease) .5s; }
.niche::before { background: var(--accent); clip-path: polygon(var(--s) 0, calc(100% - var(--s)) 0, 100% 100%, 0 100%); z-index: -2; }
.niche::after { background: var(--bg); clip-path: polygon(calc(var(--s) + 1px) 1px, calc(100% - var(--s) - 1px) 1px, calc(100% - 1.2px) 100%, 1.2px 100%); z-index: -1; }
.niche-pic {
  display: block; position: relative; overflow: hidden; height: 100%;
  clip-path: polygon(calc(var(--s) + var(--d)) var(--d), calc(100% - var(--s) - var(--d)) var(--d), calc(100% - var(--d)) 100%, var(--d) 100%);
  transition: clip-path 1.5s var(--ease);
}
.niche-pic img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.14) saturate(.86) contrast(1.04) brightness(.97); transition: transform 1.6s var(--ease), filter .6s var(--ease); }
.niche--product .niche-pic img, .slide--lead .niche-pic img { filter: none; }
.niche figcaption { margin-top: 14px; font-size: var(--t-small); color: var(--muted); }
a:hover .niche-pic img, button:hover .niche-pic img, .niche:hover > .niche-pic > img { transform: scale(1.035); }
.niche--product { --s: 11%; }
.niche--product .niche-pic { background: #EFE7DA; }
.sand .niche--product .niche-pic { background: #F1EADF; }
.niche--product .niche-pic img { mix-blend-mode: multiply; object-fit: contain; padding: 6% 4% 0; }
/* the door opens */
.js .niche:not(.in) .niche-pic { clip-path: polygon(50% var(--d), 50% var(--d), 50% 100%, 50% 100%); }
.js .niche:not(.in)::before, .js .niche:not(.in)::after { opacity: 0; }
.js .niche:not(.in) .niche-pic img { transform: scale(1.12); }

/* ---------- entrances ---------- */
.js [data-in]:not(.niche) { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-in].in:not(.niche) { opacity: 1; transform: none; }
/* failsafe: if the observer never fires, show everything anyway */
@keyframes failsafe-in { to { opacity: 1; transform: none; } }
@keyframes failsafe-door { to { clip-path: polygon(calc(var(--s) + var(--d)) var(--d), calc(100% - var(--s) - var(--d)) var(--d), calc(100% - var(--d)) 100%, var(--d) 100%); } }
.js [data-in]:not(.niche):not(.in) { animation: failsafe-in .8s 3.5s forwards; }
.js .niche:not(.in) .niche-pic { animation: failsafe-door 1s 3.5s forwards; }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 88px; padding: 0 var(--m);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--ink-d);
  transition: background-color .45s var(--ease), height .45s var(--ease), border-color .45s;
  border-bottom: 1px solid transparent;
}
.bar.is-solid { background: rgba(20, 17, 14, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); height: 74px; border-bottom-color: rgba(241, 235, 225, .08); }
.bar-brand { text-decoration: none; flex: none; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; }
.brand-words { display: flex; flex-direction: column; gap: 5px; }
.brand-pre { font: 600 9px/1 var(--text); letter-spacing: .5em; text-transform: uppercase; color: var(--canela-hi); padding-left: 1px; }
.brand-name { width: 124px; height: auto; }
.bar-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.bar-links { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.bar-links a, .bar-contact { font: 500 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 10px 0; position: relative; }
.bar-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--canela); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.bar-links a:hover::after, .bar-links a[aria-current]::after { transform: scaleX(1); }
.bar-contact { border: 1px solid var(--canela); padding: 13px 20px; transition: background-color .3s, color .3s; }
.bar-contact:hover, .bar-contact[aria-current] { background: var(--canela); color: var(--noche); }
.langs { display: flex; gap: 6px; }
.langs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px; text-decoration: none; opacity: .5; transition: opacity .3s; }
.langs a:hover, .langs a[aria-current] { opacity: 1; }
.langs a[aria-current] .flag { box-shadow: 0 0 0 1px var(--canela-hi); }
.langs span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.flag { border-radius: 2px; display: block; }
.bar-toggle { display: none; }

/* ---------- home: hero ---------- */
.hero {
  min-height: 100svh; padding-top: 130px !important; padding-bottom: 72px !important;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end;
  background: radial-gradient(120% 80% at 78% 30%, #2A1E15 0%, var(--noche) 62%) !important;
  max-width: none;
}
.hero-text { grid-column: 1 / 7; grid-row: 1; align-self: center; position: relative; z-index: 2; padding-bottom: 6vh; }
.hero-h { font-size: var(--t-hero); line-height: .98; max-width: 12.5ch; }
.hero-sub { margin: 34px 0 44px; max-width: 46ch; font-size: 17.5px; color: var(--muted); }
.hero-pic { grid-column: 8 / 13; grid-row: 1; --s: 17%; --d: 14px; height: min(78svh, 820px); align-self: center; }
.hero-pic2 { grid-column: 7 / 9; grid-row: 1; align-self: end; --s: 15%; --d: 9px; aspect-ratio: 4 / 4.2; margin-bottom: -34px; z-index: 3; transform: translateX(22%); }
.hero-pic2 .niche-pic img { filter: saturate(.9); }
.hero-sci { grid-column: 10 / 13; grid-row: 2; margin-top: 22px; font-size: 13px; letter-spacing: .08em; color: var(--muted); text-align: right; }
.hero-sci em { font-family: var(--display); font-size: 17px; letter-spacing: 0; color: var(--ink-d); }

/* ---------- home: essence ---------- */
.essence { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 6vw, 90px); max-width: none; }
.essence > * { max-width: none; }
.essence-head { grid-column: 1 / 11; }
.essence-head .statement { font-size: clamp(28px, 3.3vw, 52px); line-height: 1.16; }
.essence-pic { grid-column: 1 / 6; aspect-ratio: 4 / 3.7; --s: 12%; }
.essence-side { grid-column: 7 / 13; align-self: end; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 15px; color: var(--muted); max-width: 26ch; }
.fact dd { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); }
.fact-n { font-size: clamp(54px, 5.6vw, 92px); line-height: .9; font-weight: 300; color: var(--fg); letter-spacing: -0.03em; }
.fact-u { font-size: 24px; color: var(--accent-text); font-style: italic; }
.sci-note { margin-top: 30px; font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--muted); max-width: 40ch; }

/* ---------- home: process ---------- */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); max-width: none !important; }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / 9; font-size: var(--t-1); }
.sec-head .link { grid-column: 10 / 13; justify-self: end; }
.process { max-width: none; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); max-width: none !important; }
.step:nth-child(2) { margin-top: clamp(40px, 9vw, 150px); }
.step:nth-child(3) { margin-top: clamp(20px, 4.5vw, 70px); }
.step-pic { aspect-ratio: 4 / 5; --s: 15%; }
.step-text { padding: 28px 6% 0; }
.step-n { display: block; font: 600 11.5px/1 var(--text); letter-spacing: .26em; color: var(--accent-text); margin-bottom: 14px; }
.step h3 { font-size: clamp(38px, 3.6vw, 60px); font-style: italic; font-weight: 300; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 34ch; }

/* ---------- home: fineness ---------- */
.fineness { --bg: var(--espresso); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; max-width: none; }
.fineness > * { max-width: none; }
.fine-text { grid-column: 1 / 6; }
.fine-text h2 { font-size: var(--t-1); }
.fine-p { margin: 22px 0 40px; color: var(--muted); max-width: 40ch; }
.bars { display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 128px minmax(0, 1fr) 62px; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.bars .bar { height: 1px; background: var(--line); position: relative; }
.bars .bar span { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--v) * 100%); background: var(--muted-d); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.bars .is-v { color: var(--ink-d); }
.bars .is-v .bar span { background: var(--canela-hi); height: 5px; top: -2px; }
.bars .bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.js .bars:not(.in) .bar span { transform: scaleX(0); }
.src { margin-top: 26px; font-size: 12.5px; color: var(--muted); opacity: .85; max-width: 52ch; }
.compare { grid-column: 7 / 13; aspect-ratio: 16 / 10.5; --s: 9%; --d: 12px; cursor: ew-resize; touch-action: pan-y; }
.compare .niche-pic { --pos: 50%; }
.compare .niche-pic img { transform: none !important; }
.cmp-a { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-a img { width: 100%; height: 100%; object-fit: cover; }
.cmp-b { position: absolute; inset: 0; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--marfil); box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.cmp-knob { position: absolute; top: 56%; left: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--marfil); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.cmp-knob::before, .cmp-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; transform: translateY(-50%); }
.cmp-knob::before { left: 11px; border-right-color: var(--noche); }
.cmp-knob::after { right: 11px; border-left-color: var(--noche); }
.cmp-tag { position: absolute; bottom: 22px; z-index: 2; padding: 9px 13px 8px; background: rgba(20, 17, 14, .78); color: var(--ink-d); font: 600 10.5px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.cmp-tag .u { text-transform: none; letter-spacing: .04em; }
.cmp-tag--a { left: 30px; }
.cmp-tag--b { right: 30px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.cmp-range:focus-visible ~ .cmp-tag--a { outline: 2px solid var(--canela-hi); }

/* ---------- home: hats carousel ---------- */
.hats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); max-width: none; padding-right: 0 !important; overflow: hidden; }
.hats > * { max-width: none; }
.hats-head { grid-column: 1 / 4; align-self: center; padding-right: 12px; }
.hats-head h2 { font-size: var(--t-1); }
.hats-head p:not(.eyebrow) { margin: 20px 0 34px; color: var(--muted); }
.car-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.car-ctrl .link { margin-left: 10px; }
.car-btn { width: 52px; height: 52px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 18px; transition: background-color .3s, border-color .3s, color .3s; }
.car-btn:hover { background: var(--ink-l); color: var(--marfil); border-color: var(--ink-l); }
.car-track {
  grid-column: 4 / 13; display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: 0; padding: 0 var(--m) 18px 0; scrollbar-width: none; outline-offset: -2px;
}
.car-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 clamp(250px, 23vw, 360px); scroll-snap-align: start; }
.slide .niche--product { aspect-ratio: 4 / 5; }
.prod { display: block; text-decoration: none; }
.prod-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 4px 0; }
.prod-name { font-family: var(--display); font-size: 30px; line-height: 1; }
.prod-line { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.prod-status { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 600 10.5px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- home: about teaser ---------- */
.about-teaser { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; max-width: none; }
.about-teaser > * { max-width: none; }
.about-pic { grid-column: 1 / 7; aspect-ratio: 16 / 11; --s: 10%; }
.about-text { grid-column: 8 / 13; }
.about-text .statement { margin-bottom: 22px; }
.about-text .soft { margin-bottom: 34px; max-width: 44ch; }

/* ---------- home: FAQ ---------- */
.faq { --bg: var(--noche-2); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); max-width: none; }
.faq > * { max-width: none; }
.faq-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 120px; }
.faq-head h2 { font-size: var(--t-2); }
.faq-list { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font-family: var(--display); font-size: clamp(22px, 1.9vw, 29px); line-height: 1.2; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--text); font-weight: 300; font-size: 26px; color: var(--accent-text); transition: transform .4s var(--ease); flex: none; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 28px; color: var(--muted); max-width: 62ch; }

/* ---------- contact band (home, collection) ---------- */
.contact-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); max-width: none; }
.contact-band > * { max-width: none; }
.cb-intro { grid-column: 1 / 5; }
.cb-intro h2 { font-size: var(--t-1); }
.cb-intro p:not(.eyebrow) { margin: 18px 0 36px; color: var(--muted); max-width: 36ch; }
.cb-pic { aspect-ratio: 4 / 3.3; --s: 12%; }
.cb-form { grid-column: 6 / 13; align-self: start; background: var(--marfil); padding: clamp(28px, 3.6vw, 56px); box-shadow: 0 30px 80px -40px rgba(60, 40, 20, .35); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; --fg: var(--ink-l); color: var(--ink-l); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field > span { font: 600 10.5px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-l); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(28, 23, 18, .28); border-radius: 0;
  background: transparent; font: 400 16.5px/1.4 var(--text); color: var(--ink-l); transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A5C30' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--canela-deep); box-shadow: 0 1px 0 var(--canela-deep); }
.field [aria-invalid="true"] { border-bottom-color: #A23B2A; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.form .btn { background: var(--ink-l); border-color: var(--ink-l); color: var(--marfil); }
.form .btn:hover { background: var(--canela-deep); border-color: var(--canela-deep); }
.form-note { font-size: 13px; color: var(--muted-l); }
.form-status { font-size: 14.5px; color: var(--canela-deep); min-height: 1.4em; }

/* ---------- inner pages: hero ---------- */
.ph { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding-top: 150px !important; padding-bottom: clamp(64px, 7vw, 110px) !important; max-width: none; background: radial-gradient(110% 90% at 85% 20%, #281D15 0%, var(--noche) 60%) !important; }
.ph > * { max-width: none; }
.ph-text { grid-column: 1 / 8; position: relative; z-index: 2; }
.ph h1 { font-size: var(--t-1); max-width: 16ch; }
.ph-lead { font-family: var(--display); font-size: var(--t-3); line-height: 1.35; max-width: 36ch; margin-top: 26px; color: var(--muted); }
.ph-pic { grid-column: 8 / 13; aspect-ratio: 4 / 4.4; --s: 15%; --d: 12px; }
.ph--plain { min-height: 0; padding-bottom: 40px !important; }
.ph--plain .ph-text { grid-column: 1 / 11; }
.ph-index { margin-top: 44px; border-top: 1px solid var(--line); max-width: 520px; }
.ph-index a { display: flex; gap: 22px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-size: 24px; transition: padding-left .4s var(--ease), color .3s; }
.ph-index a span { font: 600 11px/1 var(--text); letter-spacing: .2em; color: var(--accent-text); }
.ph-index a:hover { padding-left: 10px; color: var(--canela-hi); }
.ph-count { margin-top: 30px; font: 600 11.5px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); }
.ph--coll .ph-pic { aspect-ratio: 4 / 4.8; }

/* ---------- about ---------- */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; max-width: none; }
.story > * { max-width: none; }
.story-text { grid-column: 1 / 8; }
.story-pic { grid-column: 9 / 13; aspect-ratio: 3 / 4; --s: 16%; }
.vm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); max-width: none; overflow: hidden; }
.vm > * { max-width: none; }
.vm-card { position: relative; z-index: 1; border-top: 1px solid var(--accent); padding-top: 34px; }
.vm-card:first-child { grid-column: 1 / 5; }
.vm-card--low { grid-column: 5 / 9; margin-top: clamp(60px, 9vw, 150px); }
.vm-pic { grid-column: 10 / 13; grid-row: 1; aspect-ratio: 3 / 4.4; --s: 16%; align-self: center; }
.vm-n { display: block; font-family: var(--display); font-style: italic; font-size: 30px; color: var(--accent-text); margin-bottom: 18px; }
.vm-card h2 { font-size: var(--t-1); margin-bottom: 22px; }
.vm-card p { font-family: var(--display); font-size: var(--t-3); line-height: 1.38; color: var(--muted); max-width: 30ch; }

.values { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; max-width: none; }
.values > * { max-width: none; }
.values-pic { grid-column: 1 / 5; aspect-ratio: 3 / 4; --s: 14%; }
.values-text { grid-column: 6 / 13; }
.values-text h2 { font-size: var(--t-1); margin-bottom: 40px; }
.values-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
.values-list li { display: flex; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.val-n { font: 600 11px/1 var(--text); letter-spacing: .2em; color: var(--accent-text); }
.val-name { font-family: var(--display); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }

/* ---------- services / origin ---------- */
.svc, .chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; max-width: none; }
.svc > *, .chapter > * { max-width: none; }
.svc-pic, .chapter-pic { grid-column: 1 / 7; grid-row: 1; aspect-ratio: 5 / 4; --s: 11%; }
.svc-text, .chapter-text { grid-column: 8 / 13; grid-row: 1; }
.svc--flip .svc-pic, .chapter--flip .chapter-pic { grid-column: 7 / 13; }
.svc--flip .svc-text, .chapter--flip .chapter-text { grid-column: 1 / 6; }
.svc-n { display: block; font-family: var(--display); font-style: italic; font-size: 64px; line-height: 1; color: var(--accent-text); margin-bottom: 14px; }
.svc-text h2, .chapter-text h2 { font-size: var(--t-2); margin-bottom: 20px; }
.svc-text p, .chapter-text p { color: var(--muted); max-width: 42ch; margin-bottom: 32px; font-size: 17px; }
.chapter-text p { font-family: var(--display); font-size: var(--t-3); line-height: 1.38; }
.tech { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; max-width: none; }
.tech > * { max-width: none; }
.tech-text { grid-column: 1 / 7; }
.tech-text h2 { font-size: var(--t-1); margin-bottom: 22px; }
.tech-text p { color: var(--muted); max-width: 46ch; margin-bottom: 34px; }
.tech-pic { grid-column: 8 / 13; aspect-ratio: 4 / 3.6; --s: 13%; }
.docs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; max-width: none; }
.docs > * { max-width: none; }
.docs-pic { grid-column: 1 / 6; aspect-ratio: 4 / 4.4; --s: 14%; }
.docs-text { grid-column: 7 / 13; }
.docs-text h2 { font-size: var(--t-1); margin-bottom: 20px; }
.docs-text > p:not(.eyebrow) { color: var(--muted); max-width: 46ch; margin-bottom: 36px; }
.doc-list { border-top: 1px solid var(--line); }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc-name { font-family: var(--display); font-size: clamp(22px, 1.9vw, 28px); }

/* ---------- collection ---------- */
.shop { max-width: none; padding-top: clamp(70px, 8vw, 120px) !important; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 40px); max-width: none !important; }
.card:nth-child(even) { margin-top: clamp(40px, 6vw, 100px); }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.card .niche--product { aspect-ratio: 4 / 5; }
.card-meta { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 24px 4px 0; }
.card-n { grid-row: 1 / 3; font: 600 11px/1 var(--text); letter-spacing: .2em; color: var(--accent-text); padding-top: 12px; }
.card-name { font-size: clamp(32px, 2.6vw, 44px); line-height: 1; }
.card-line { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.card-price { grid-column: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 8px; font-size: 14.5px; }
.card-meta .link { grid-column: 2; justify-self: start; }
.shop-note { margin-top: clamp(50px, 6vw, 90px); font-size: 13.5px; color: var(--muted); max-width: 70ch; }

.pd { border: 0; padding: 0; width: min(1120px, calc(100vw - 32px)); max-height: calc(100svh - 32px); background: var(--bg); color: var(--fg); }
.pd::backdrop { background: rgba(14, 11, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pd[open] { animation: pd-in .5s var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(18px); } }
.pd-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 4vw, 56px); position: relative; }
.pd-main { aspect-ratio: 4 / 5; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumb { width: 76px; padding: 0; border: 1px solid var(--line); background: #EFE7DA; cursor: pointer; }
.thumb img { mix-blend-mode: multiply; aspect-ratio: 4 / 5; object-fit: contain; }
.thumb[aria-pressed="true"] { border-color: var(--canela-deep); }
.pd-info { align-self: center; }
.pd-info .eyebrow { margin-bottom: 18px; }
.pd-info h2 { font-size: clamp(44px, 4.4vw, 70px); }
.pd-line { color: var(--muted); margin-top: 8px; }
.pd-desc { font-family: var(--display); font-size: var(--t-3); line-height: 1.38; margin: 26px 0 10px; }
.pd-label { font: 600 10.5px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.sizes { display: flex; gap: 8px; }
.sizes li { min-width: 46px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 13.5px; }
.pd-details { margin: 28px 0; border-top: 1px solid var(--line); }
.pd-details div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pd-details dt { color: var(--muted); }
.pd-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.pd-close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border: 0; background: none; font-size: 30px; font-weight: 300; cursor: pointer; }
.pd-close:hover { color: var(--canela-deep); }

/* ---------- contact page ---------- */
.contact-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding-top: 150px !important; max-width: none; background: radial-gradient(110% 90% at 85% 10%, #281D15 0%, var(--noche) 60%) !important; }
.contact-page > * { max-width: none; }
.cp-side { grid-column: 1 / 5; }
.cp-side h1 { font-size: var(--t-1); }
.routes { margin: 44px 0; display: grid; gap: 12px; }
.route { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; padding: 20px 22px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color .3s, background-color .3s; }
.route-n { grid-row: 1 / 3; font: 600 11px/1 var(--text); letter-spacing: .2em; color: var(--accent-text); padding-top: 6px; }
.route strong { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.route span:last-child { font-size: 14px; color: var(--muted); }
.route:hover { border-color: var(--canela); }
.route[aria-pressed="true"] { border-color: var(--canela); background: rgba(184, 134, 78, .1); }
.cp-data div, .foot-data div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cp-data dt { color: var(--muted); }
.cp-main { grid-column: 6 / 13; position: relative; }
.cp-pic { aspect-ratio: 16 / 7.4; --s: 8%; --d: 12px; }
.cp-form { margin: 0 12px; position: relative; z-index: 2; }

/* ---------- prose ---------- */
.prose { padding-top: 70px !important; }
.prose > * { max-width: 760px; }
.todo-block { font-family: var(--display); font-size: var(--t-3); color: var(--muted); }
.credit-list { display: grid; gap: 14px; font-size: 15px; }
.credit-list li { padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- footer ---------- */
.foot { background: var(--noche); color: var(--ink-d); padding: clamp(70px, 8vw, 120px) var(--m) 34px; border-top: 1px solid rgba(184, 134, 78, .35); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 64px); max-width: var(--max); }
.foot-brand > a { text-decoration: none; display: inline-block; }
.brand--foot .brand-mark { width: 36px; height: 36px; }
.brand--foot .brand-name { width: 108px; }
.foot-brand p { margin-top: 26px; font-family: var(--display); font-size: 21px; line-height: 1.4; color: var(--muted-d); max-width: 30ch; }
.foot-col h2 { font: 600 10.5px/1 var(--text); letter-spacing: .26em; text-transform: uppercase; color: var(--canela-hi); margin-bottom: 22px; }
.foot-col li + li { margin-top: 10px; }
.foot-col a { text-decoration: none; font-size: 14.5px; color: var(--ink-d); transition: color .3s; }
.foot-col a:hover { color: var(--canela-hi); }
.foot-data div { padding: 9px 0; font-size: 13.5px; border-bottom-color: rgba(241, 235, 225, .1); }
.foot-data dt { color: var(--muted-d); }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: clamp(56px, 6vw, 90px); padding-top: 24px; border-top: 1px solid rgba(241, 235, 225, .1); font-size: 13px; color: var(--muted-d); max-width: var(--max); }
.foot-langs span { position: static; width: auto; height: auto; clip: auto; font-size: 12.5px; color: var(--ink-d); }
.foot-note { flex-basis: 100%; font-size: 12.5px; opacity: .8; }
.foot-note a { color: var(--ink-d); }

/* ---------- premium layer ---------- */
/* 1 · paper grain over every room */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 1.2 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 7 · editorial section numbers */
.eyebrow--n { gap: 16px; }
.eyebrow--n::before { order: 2; }
.eyebrow--n .eb-t { order: 3; }
.eb-n { order: 1; font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(46px, 4.4vw, 70px); line-height: .8; letter-spacing: -0.02em; text-transform: none; color: var(--accent-text); margin-right: 4px; }

/* 2 · headlines rise line by line */
.js .lines[data-in]:not(.niche) { opacity: 1; transform: none; }
.lines .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .12em; margin: -.16em 0 -.12em; }
.lines .w > span { display: inline-block; transform: translateY(112%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + var(--d0, 0ms)); }
.lines.in .w > span { transform: none; }
.js .lines:not(.in) .w > span { animation: failsafe-in .8s 3.5s forwards; }

/* 3 · cursor ring + magnetic controls */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--canela); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s; }
.cursor.on { opacity: .85; }
.cursor.big { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(184, 134, 78, .12); }
.magnet { transition: transform .45s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }

/* 4 · depth: photographs drift inside their doorway */
.niche:not(.niche--product):not(.compare) .niche-pic img { height: calc(100% + 56px); margin-top: -28px; translate: 0 var(--py, 0px); }

/* 5 · drifting editorial band */
.ticker { background: var(--noche); color: var(--canela-hi); border-block: 1px solid rgba(184, 134, 78, .3); overflow: hidden; padding: 20px 0; }
.tk-track { display: flex; width: max-content; animation: tk 46s linear infinite; }
.tk-run { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.tk-run span { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.4vw, 38px); white-space: nowrap; color: var(--ink-d); }
.tk-sep { width: 16px; height: 16px; color: var(--canela); flex: none; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes tk { to { transform: translateX(-50%); } }

/* 6 · first-visit opening */
.intro { display: none; }
html.is-intro .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--noche); animation: intro-out .55s .95s cubic-bezier(.22, .7, .2, 1) forwards; }
.intro-mark { width: min(120px, 26vw); overflow: visible; animation: intro-zoom .55s .95s cubic-bezier(.22, .7, .2, 1) forwards; }
.intro-j { fill: none; stroke: var(--canela); stroke-width: 3; stroke-dasharray: 760; stroke-dashoffset: 760; animation: intro-draw .85s .05s cubic-bezier(.22, .7, .2, 1) forwards; }
.intro-j2 { animation-delay: .2s; }
.intro-v { fill: var(--marfil); opacity: 0; animation: intro-fade .4s .55s ease forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-zoom { to { transform: scale(7); opacity: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-in] { opacity: 1 !important; transform: none !important; }
  .js .niche:not(.in) .niche-pic { clip-path: polygon(calc(var(--s) + var(--d)) var(--d), calc(100% - var(--s) - var(--d)) var(--d), calc(100% - var(--d)) 100%, var(--d) 100%); }
  .js .niche:not(.in)::before, .js .niche:not(.in)::after { opacity: 1; }
  .js .bars:not(.in) .bar span { transform: none; }
  .lines .w > span { transform: none !important; }
  .tk-track { animation: none !important; }
  .cursor { display: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .bar-links { gap: 18px; }
  .bar-links a, .bar-contact { letter-spacing: .1em; }
  .langs span { display: none; }
  .hats-head { grid-column: 1 / 5; }
  .car-track { grid-column: 5 / 13; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

/* ---------- phone & small tablet ---------- */
@media (max-width: 960px) {
  :root { --t-body: 16px; }
  .bar { height: 70px; }
  .bar.is-solid { height: 64px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { width: 104px; }
  .bar-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 2px 0 12px; background: none; border: 0; cursor: pointer; font: 600 11.5px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; z-index: 2; }
  .bar-toggle-lines { width: 22px; height: 8px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform .3s; }
  .menu-open .bar-toggle-lines { transform: scaleY(0.2); }
  .bar-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px;
    padding: 96px var(--m) 40px; background: var(--noche);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
  }
  .menu-open .bar-nav { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .menu-open { overflow: hidden; }
  .bar-links { flex-direction: column; gap: 4px; }
  .bar-links a { font-family: var(--display); font-weight: 300; font-size: 44px; letter-spacing: -0.01em; text-transform: none; padding: 6px 0; }
  .bar-links a::after { display: none; }
  .bar-contact { font-size: 12px; }
  .langs span { display: inline; position: static; width: auto; height: auto; clip: auto; font-size: 13px; }
  .bar-langs { gap: 12px; }

  main > section { padding: clamp(72px, 16vw, 110px) var(--m); }
  .hero, .essence, .sec-head, .fineness, .hats, .about-teaser, .faq, .contact-band, .ph, .story, .vm, .values,
  .svc, .chapter, .tech, .docs, .contact-page { grid-template-columns: minmax(0, 1fr); }
  .hero > *, .essence > *, .sec-head > *, .fineness > *, .hats > *, .about-teaser > *, .faq > *, .contact-band > *,
  .ph > *, .story > *, .vm > *, .values > *, .svc > *, .chapter > *, .tech > *, .docs > *, .contact-page > * { grid-column: 1 !important; grid-row: auto !important; }

  .hero { min-height: 0; padding-top: 104px !important; padding-bottom: 56px !important; }
  .hero-text { padding-bottom: 0; }
  .hero-h { font-size: clamp(42px, 11.4vw, 64px); }
  .hero-sub { margin: 22px 0 30px; font-size: 16px; }
  .hero-pic { height: auto; aspect-ratio: 4 / 4.6; margin-top: 44px; width: 86%; justify-self: end; }
  .hero-pic2 { width: 52%; transform: none; margin: -28% 0 0; aspect-ratio: 4 / 3.4; }
  .hero-sci { text-align: left; margin-top: 18px; }

  .essence { row-gap: 40px; }
  .essence-pic { width: 82%; }
  .fact-n { font-size: 56px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(2) { width: 88%; justify-self: end; margin-left: auto; }
  .step:nth-child(3) { width: 92%; }
  .sec-head .link { justify-self: start; margin-top: 18px; }
  .fine-text { margin-bottom: 44px; }
  .bars li { grid-template-columns: 92px minmax(0, 1fr) 68px; gap: 10px; font-size: 13px; }
  .bars .bar-val { white-space: nowrap; }
  .compare { aspect-ratio: 4 / 3.6; --s: 10%; }
  .cmp-tag { bottom: 14px; font-size: 9.5px; padding: 7px 9px 6px; }
  .cmp-tag--a { left: 18px; } .cmp-tag--b { right: 18px; }
  .cmp-knob { width: 44px; height: 44px; }
  .hats { padding-left: var(--m) !important; }
  .hats-head { margin-bottom: 34px; padding-right: var(--m); }
  .car-track { margin-left: calc(-1 * var(--m)); padding-left: var(--m); scroll-padding-left: var(--m); }
  .slide { flex-basis: 74vw; }
  .about-pic { margin-bottom: 40px; }
  .faq-head { position: static; margin-bottom: 30px; }
  .cb-intro { margin-bottom: 40px; }
  .cb-pic { display: none; }
  .cb-form { margin: 0 calc(-1 * var(--m) + 8px); }
  .form { grid-template-columns: minmax(0, 1fr); gap: 22px; }

  .ph { padding-top: 112px !important; }
  .ph-pic { margin-top: 44px; width: 88%; justify-self: end; }
  .story-pic { margin-top: 40px; width: 78%; justify-self: end; }
  .vm-card--low { margin-top: 64px; }
  .vm-pic { width: 70%; justify-self: end; margin-top: 56px; }
  .values-pic { width: 70%; margin-bottom: 44px; }
  .values-list { grid-template-columns: minmax(0, 1fr); }
  .svc-pic, .chapter-pic, .tech-pic, .docs-pic { margin-bottom: 36px; }
  .svc--flip .svc-pic, .chapter--flip .chapter-pic { order: -1; }
  .svc-n { font-size: 50px; }
  .tech-pic { order: -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; }
  .card:nth-child(even) { margin-top: 48px; }
  .card-meta { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .card-n { grid-row: auto; padding: 0 0 8px; }
  .card-price, .card-meta .link { grid-column: 1; }
  .card-price { font-size: 13px; }
  .pd-in { grid-template-columns: minmax(0, 1fr); padding: 56px 20px 28px; }
  .pd-main { width: 84%; margin: 0 auto; }
  .contact-page { padding-top: 110px !important; }
  .cp-main { margin-top: 10px; }
  .cp-pic { aspect-ratio: 16 / 9; }
  .cp-form { margin: 0 12px; padding: 26px 20px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .actions { gap: 16px 24px; }
  .btn { padding: 0 22px; }
  .bars li { grid-template-columns: 84px minmax(0, 1fr) 64px; }
}
