/* ==========================================================================
   Gralisa Oils — styles
   Base language adapted from Precept™: Geist + mono, precise grid,
   off-white / near-black, oversized display type, spec strips.
   ========================================================================== */

:root {
  --paper: #F2F1ED;
  --paper-2: #E9E8E3;
  --paper-3: #DEDDD7;
  --ink: #0E0F10;
  --ink-2: #3B3C3E;
  --mute: #7C7D7F;
  --line: rgba(14, 15, 16, .13);
  --night: #0A0B0C;
  --night-2: #131416;
  --night-line: rgba(242, 241, 237, .12);
  --amber: #E39B2D;
  --amber-2: #F2B650;
  --ph: #B5561B;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 44px);
  --max: 1560px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.amber { color: var(--amber); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(227,155,45,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,155,45,.55);} 70% { box-shadow: 0 0 0 10px rgba(227,155,45,0);} 100% { box-shadow: 0 0 0 0 rgba(227,155,45,0);} }

/* Placeholders — visible on purpose until Gralisa supplies real data */
.ph { color: var(--ph); font-family: var(--f-mono); font-size: .78em; letter-spacing: .02em; background: repeating-linear-gradient(-45deg, rgba(181,86,27,.07) 0 6px, transparent 6px 12px); padding: 1px 5px; border-radius: 2px; }
.ph--block { display: block; padding: 14px 16px; border: 1px dashed rgba(181,86,27,.45); font-size: 12.5px; line-height: 1.55; }
[data-theme="dark"] .ph { color: #F0A46B; background: repeating-linear-gradient(-45deg, rgba(240,164,107,.08) 0 6px, transparent 6px 12px); }
[data-theme="dark"] .ph--block { border-color: rgba(240,164,107,.4); }

/* ---------- type ---------- */
.h2 { font-size: clamp(38px, 5.4vw, 88px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.label { color: var(--mute); display: flex; gap: 10px; align-items: center; }
.label__n { color: var(--ink); }
[data-theme="dark"] .label { color: rgba(242,241,237,.5); }
[data-theme="dark"] .label__n { color: var(--amber); }
.sec-head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 90px); }
[data-theme="dark"] .sec-head { border-color: var(--night-line); }
.label--r { text-align: right; }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-radius: 2px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn__arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber::before { background: var(--paper); }
.btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(242,241,237,.35); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::before { background: var(--amber); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { background: var(--amber); }
.btn--dark:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--night); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter); }
.loader__inner { display: flex; justify-content: space-between; margin-bottom: 14px; }
.loader__bar { height: 1px; background: var(--night-line); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--amber); }
.is-loaded .loader { pointer-events: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; padding: 0 var(--gutter); color: var(--paper); transition: color .4s, background-color .4s, transform .6s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-light { color: var(--ink); background: rgba(242,241,237,.82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.nav.is-dark-bg { background: rgba(10,11,12,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--night-line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; font-size: 15px; }
.nav__logo svg { width: 26px; height: 26px; color: var(--amber); }
.nav__logo em { font-style: normal; font-weight: 400; opacity: .55; margin-left: 5px; }
.nav__links { display: flex; gap: 30px; font-size: 14.5px; }
.nav__links a { position: relative; opacity: .82; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; }
.lang a, .lang button { padding: 4px 6px; opacity: .45; transition: opacity .3s; }
.lang a:hover, .lang .is-active { opacity: 1; }
.menu__foot a { text-decoration: underline; text-underline-offset: 3px; }
.lang button:disabled { cursor: not-allowed; }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger i:first-child { top: 16px; } .nav__burger i:last-child { top: 23px; }
.menu-open .nav__burger i:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .nav__burger i:last-child { top: 19.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--paper); padding: 110px var(--gutter) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-open .nav { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(38px, 10vw, 64px); letter-spacing: -.04em; font-weight: 500; line-height: 1.12; border-bottom: 1px solid var(--night-line); padding: 6px 0; }
.menu nav a .mono { color: var(--amber); }
.menu__foot { opacity: .5; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--night); color: var(--paper); display: flex; flex-direction: column; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__gl.no-gl { background: radial-gradient(120% 80% at 70% 30%, #6b4312 0%, #22160a 40%, var(--night) 75%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,12,.55) 0%, rgba(10,11,12,0) 30%, rgba(10,11,12,0) 50%, rgba(10,11,12,.85) 100%); pointer-events: none; }
.hero__grain { position: absolute; inset: -50%; z-index: 1; opacity: .09; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(4) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }
.hero__grid { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--gutter); pointer-events: none; }
.hero__grid i { border-left: 1px solid rgba(242,241,237,.07); }
.hero__grid i:last-child { border-right: 1px solid rgba(242,241,237,.07); }
.hero__top, .hero__content, .hero__specs, .hero__scroll { position: relative; z-index: 2; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 108px; }
.hero__coords { text-align: right; opacity: .55; }
.tag { opacity: .85; }
.hero__content { margin-top: auto; display: grid; grid-template-columns: 1fr minmax(280px, 380px); align-items: end; gap: 40px; padding-bottom: clamp(32px, 5vh, 56px); }
.hero__title { font-size: clamp(54px, 10.4vw, 188px); font-weight: 500; letter-spacing: -.055em; line-height: .88; }
.hero__title .line, .custom__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span, .custom__title .line > span { display: inline-block; will-change: transform; }
.hero__title .line:nth-child(2) > span { color: var(--amber-2); }
.hero__lead { font-size: 19px; line-height: 1.45; color: rgba(242,241,237,.82); margin-bottom: 26px; letter-spacing: -.01em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(242,241,237,.18); }
.hero__specs > div { padding: 18px 0 26px; padding-right: 16px; }
.hero__specs dt { opacity: .5; margin-bottom: 6px; }
.hero__specs dd { font-size: 14.5px; letter-spacing: -.005em; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 120px; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; opacity: .6; }
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--paper), transparent); animation: drip 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- intro ---------- */
.intro { padding: clamp(90px, 12vw, 180px) 0 clamp(80px, 10vw, 150px); }
.intro__statement { font-size: clamp(34px, 5.2vw, 84px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; max-width: 15ch; }
.intro__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 110px); margin-top: clamp(60px, 8vw, 120px); align-items: start; }
.intro__molecule { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(18px, 3vw, 40px); position: relative; }
.intro__molecule::before, .intro__molecule::after { content: "+"; position: absolute; font-family: var(--f-mono); font-size: 14px; color: var(--mute); }
.intro__molecule::before { top: 8px; left: 10px; } .intro__molecule::after { bottom: 8px; right: 10px; }
.tg { width: 100%; height: auto; overflow: visible; }
.tg .bond { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tg .bond--amber { stroke: var(--amber); }
.tg .atom { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.4; }
.tg .atom--o { fill: var(--amber); stroke: var(--amber); }
.tg text { font-family: var(--f-mono); font-size: 10px; fill: var(--mute); letter-spacing: .06em; }
.intro__molecule figcaption { margin-top: 18px; color: var(--mute); max-width: 52ch; text-transform: none; letter-spacing: .01em; font-size: 12px; }
.intro__copy p { color: var(--ink-2); margin-bottom: 18px; max-width: 54ch; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 40px; }
.counters > div { padding: 22px 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.counters > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.counter { font-size: clamp(44px, 5vw, 72px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.counters .mono { color: var(--mute); }

/* ---------- applications (horizontal) ---------- */
.apps { background: var(--night); color: var(--paper); position: relative; }
.apps__pin { height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: 96px; }
.apps__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(24px, 4vh, 48px); }
.apps__head .h2 { margin-top: 16px; font-size: clamp(34px, 4.4vw, 70px); }
.apps__progress { white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 10px; color: rgba(242,241,237,.55); }
.apps__cur { color: var(--paper); }
.apps__progress i { display: block; width: 120px; height: 1px; background: var(--night-line); margin-left: 8px; }
.apps__progress b { display: block; height: 100%; width: 25%; background: var(--amber); transition: width .3s; }
.apps__track { display: flex; gap: 20px; padding: 0 var(--gutter); flex: 1; min-height: 0; padding-bottom: clamp(24px, 4vh, 44px); will-change: transform; }
.app { flex: 0 0 min(86vw, 1080px); display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--night-line); background: var(--night-2); position: relative; overflow: hidden; }
.app__visual { position: relative; border-right: 1px solid var(--night-line); overflow: hidden; background: radial-gradient(90% 70% at 50% 60%, rgba(227,155,45,.13), transparent 70%); }
.app__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app__visual .mono { position: absolute; left: 20px; top: 18px; color: rgba(242,241,237,.45); z-index: 2; }
.app__num { position: absolute; left: 16px; bottom: -.14em; font-size: clamp(120px, 16vw, 260px); font-weight: 500; letter-spacing: -.07em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(242,241,237,.18); z-index: 1; }
.app__body { padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.app__title { font-size: clamp(36px, 4vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-bottom: 18px; }
.app__lead { font-size: 18px; line-height: 1.4; color: var(--paper); margin-bottom: 14px; letter-spacing: -.01em; }
.app__text { color: rgba(242,241,237,.62); font-size: 15px; margin-bottom: 24px; }
.app__meta { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--night-line); padding-top: 18px; }
.app__meta .mono { color: rgba(242,241,237,.45); margin-bottom: 10px; display: block; }
.app__meta li { font-size: 14px; padding: 5px 0; border-bottom: 1px solid rgba(242,241,237,.06); display: flex; gap: 8px; }
.app__meta li::before { content: "—"; color: var(--amber); }
.app__meta .prod-link { cursor: pointer; transition: color .3s; text-align: left; }
.app__meta .prod-link:hover { color: var(--amber-2); }
.app--end { flex: 0 0 min(70vw, 560px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 44px); background: var(--amber); color: var(--ink); border: 0; }
.app--end h3 { font-size: clamp(32px, 3.4vw, 54px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.app--end p { font-size: 16px; max-width: 34ch; margin: 16px 0 28px; }

/* ---------- products ---------- */
.products { padding: clamp(100px, 12vw, 180px) 0; }
.products__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.products__lead { color: var(--ink-2); max-width: 46ch; justify-self: end; }
.products__filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.products__filters button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px; transition: background .3s, color .3s, border-color .3s; }
.products__filters button:hover { border-color: var(--ink); }
.products__filters button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pcard { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 16px; text-align: left; min-height: 460px; overflow: hidden; background: var(--paper); transition: background .5s var(--ease); isolation: isolate; }
.pcard:hover { background: var(--paper-2); }
.pcard.is-hidden { display: none; }
.pcard__top { display: flex; justify-content: space-between; color: var(--mute); }
.pcard__visual { position: relative; flex: 1; min-height: 200px; display: grid; place-items: center; }
.pcard__visual canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.pcard__name { font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.pcard__short { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; max-width: 36ch; }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.pcard__open { display: inline-flex; gap: 8px; align-items: center; }
.pcard__plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 16px; transition: transform .6s var(--ease), background .4s, color .4s, border-color .4s; }
.pcard:hover .pcard__plus { transform: rotate(90deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard__tags span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; background: var(--paper-2); border-radius: 2px; color: var(--ink-2); transition: background .5s; }
.pcard:hover .pcard__tags span { background: var(--paper-3); }

/* ---------- product sheet drawer ---------- */
.sheet { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.sheet.is-open { pointer-events: auto; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(10,11,12,.55); opacity: 0; transition: opacity .6s var(--ease); backdrop-filter: blur(3px); }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--paper); transform: translateX(100%); transition: transform .8s var(--ease); display: flex; flex-direction: column; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__close { position: absolute; top: 20px; right: 22px; z-index: 2; padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); }
.sheet__close:hover { background: var(--ink); color: var(--paper); }
.sheet__body { overflow-y: auto; padding: 28px clamp(20px, 4vw, 48px) 48px; overscroll-behavior: contain; }
.sheet__hero { height: 220px; margin: 0 calc(-1 * clamp(20px, 4vw, 48px)) 28px; margin-top: -28px; position: relative; overflow: hidden; }
.sheet__hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet__kicker { color: var(--mute); margin-bottom: 10px; }
.sheet h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-bottom: 18px; }
.sheet__desc { color: var(--ink-2); margin-bottom: 30px; }
.sheet__block { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.sheet__block > .mono { color: var(--mute); padding-top: 3px; }
.sheet__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet__chips span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 100px; font-size: 13.5px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.spec th { color: var(--ink-2); }
.spec td { font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.spec td:last-child { text-align: right; }
.docs { display: grid; gap: 6px; }
.docs button { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); text-align: left; transition: background .3s; font-size: 14.5px; }
.docs button:hover { background: var(--paper-2); }
.docs button .mono { color: var(--mute); }
.sheet__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- custom ---------- */
.custom { background: var(--night); color: var(--paper); padding: clamp(110px, 14vw, 200px) 0; position: relative; overflow: hidden; }
.custom__inner { position: relative; z-index: 2; }
.custom__title { font-size: clamp(50px, 9.4vw, 168px); font-weight: 500; letter-spacing: -.055em; line-height: .9; margin: 28px 0 clamp(40px, 5vw, 70px); }
.custom__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); max-width: 1100px; margin-bottom: 44px; }
.custom__cols p { color: rgba(242,241,237,.72); font-size: 18px; line-height: 1.5; }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--night-line); display: flex; gap: 12px; color: rgba(242,241,237,.85); }
.checklist li::before { content: "✓"; color: var(--amber); }
.custom__rings { position: absolute; right: -18vw; top: 50%; width: 70vw; aspect-ratio: 1; transform: translateY(-50%); z-index: 1; opacity: .5; background: repeating-radial-gradient(circle at center, transparent 0 38px, rgba(227,155,45,.22) 38px 39px); mask-image: radial-gradient(circle, #000 20%, transparent 68%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); }

/* ---------- expertise / process ---------- */
.expertise { padding: clamp(100px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); }
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.process__sticky { position: sticky; top: 110px; align-self: start; }
.process__dial { position: relative; width: clamp(180px, 20vw, 280px); aspect-ratio: 1; margin-top: 48px; }
.process__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial__track { fill: none; stroke: var(--line); stroke-width: 1; }
.dial__fill { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 578; stroke-dashoffset: 578; transition: stroke-dashoffset .8s var(--ease); }
.process__num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 38%; gap: 8px; }
.process__cur { font-size: clamp(54px, 6vw, 88px); font-weight: 500; letter-spacing: -.05em; line-height: .7; font-variant-numeric: tabular-nums; }
.process__num .mono { color: var(--mute); }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: clamp(36px, 7vh, 72px) 0; border-top: 1px solid var(--line); opacity: .28; transition: opacity .6s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-active { opacity: 1; }
.step__n { color: var(--amber); padding-top: 10px; }
.step h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 14px; }
.step p { color: var(--ink-2); max-width: 46ch; }

/* ---------- quality ---------- */
.quality { padding: clamp(60px, 8vw, 120px) 0 clamp(100px, 12vw, 180px); }
.quality__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.quality__top p { color: var(--ink-2); max-width: 46ch; justify-self: end; }
.quality__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.qcard { background: var(--paper); padding: 26px; min-height: 290px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: background .5s var(--ease); }
.qcard:hover { background: var(--paper-2); }
.qcard__n { color: var(--mute); }
.qcard__icon { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin: 14px 0 auto; transition: stroke .4s; }
.qcard:hover .qcard__icon { stroke: var(--amber); }
.qcard h3 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin-top: 18px; }
.qcard p { color: var(--ink-2); font-size: 15px; }
.qcard--slot { background: var(--paper-2); }
.qcard--slot h3 { margin-top: auto; }

/* ---------- sustainability ---------- */
.sustain { background: var(--night); color: var(--paper); padding: clamp(100px, 12vw, 180px) 0; }
.sustain__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.sustain__top p { color: rgba(242,241,237,.7); max-width: 48ch; justify-self: end; }
.loop { position: relative; margin: clamp(60px, 8vw, 110px) 0; }
.loop__svg { width: 100%; height: 150px; overflow: visible; }
.loop__path { fill: none; stroke: var(--amber); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.loop__nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.loop__nodes li { border-top: 1px solid var(--night-line); padding-top: 18px; }
.loop__nodes .mono { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--amber); color: var(--amber); border-radius: 50%; margin-bottom: 14px; }
.loop__nodes h3 { font-size: 22px; font-weight: 500; letter-spacing: -.03em; margin-bottom: 6px; }
.loop__nodes p { color: rgba(242,241,237,.6); font-size: 15px; }
.sustain__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.sustain__grid article { padding: 24px 20px 0 0; }
.sustain__grid article + article { border-left: 1px solid var(--night-line); padding-left: 20px; }
.sustain__grid h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.sustain__grid p { color: rgba(242,241,237,.6); font-size: 14.5px; }

/* ---------- global ---------- */
.global { padding: clamp(100px, 12vw, 180px) 0; overflow: hidden; }
.global__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.global__copy .h2 { margin: 20px 0 26px; }
.global__copy > p { color: var(--ink-2); max-width: 46ch; }
.global__specs { margin-top: 36px; border-top: 1px solid var(--line); }
.global__specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.global__specs dt { color: var(--mute); padding-top: 3px; }
.global__globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 720px; justify-self: end; }
.globe { width: 100%; height: 100%; cursor: grab; }
.globe:active { cursor: grabbing; }
.globe__label { position: absolute; left: 0; bottom: 0; color: var(--ink-2); }

/* ---------- about ---------- */
.about { padding: 0 0 clamp(100px, 12vw, 180px); }
.about__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.about__title { font-size: clamp(34px, 4.2vw, 68px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.about__copy p { color: var(--ink-2); margin-bottom: 18px; }
.timeline { margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.timeline__row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline__row .mono { color: var(--mute); }
.timeline__row p { font-size: 18px; letter-spacing: -.01em; }
.photo-slot { margin-top: clamp(50px, 6vw, 90px); aspect-ratio: 21 / 9; overflow: hidden; position: relative; background: var(--paper-2); border: 1px dashed var(--mute); }
.photo-slot__inner { position: absolute; inset: -10% 0; display: grid; place-items: center; background: repeating-linear-gradient(90deg, transparent 0 79px, var(--line) 79px 80px), repeating-linear-gradient(0deg, transparent 0 79px, var(--line) 79px 80px); color: var(--mute); text-align: center; padding: 20px; }

/* ---------- contact ---------- */
.contact { background: var(--night); color: var(--paper); padding: clamp(100px, 12vw, 170px) 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 100px); }
.contact__title { font-size: clamp(38px, 5vw, 80px); font-weight: 500; letter-spacing: -.05em; line-height: .98; margin: 22px 0 22px; }
.contact__sub { color: rgba(242,241,237,.7); font-size: 18px; max-width: 40ch; }
.contact__meta { margin-top: 44px; border-top: 1px solid var(--night-line); }
.contact__meta > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--night-line); font-size: 15px; }
.contact__meta dt { color: rgba(242,241,237,.45); padding-top: 3px; }
.clock { font-variant-numeric: tabular-nums; }
.form { display: flex; flex-direction: column; gap: 14px; background: var(--night-2); border: 1px solid var(--night-line); padding: clamp(20px, 3vw, 36px); align-self: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .mono { color: rgba(242,241,237,.5); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid rgba(242,241,237,.22); padding: 10px 0 12px; border-radius: 0; outline: none; transition: border-color .3s; width: 100%; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--night-2); color: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: rgba(242,241,237,.28); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #E5664A; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.form__note { color: rgba(242,241,237,.45); max-width: 38ch; text-transform: none; letter-spacing: .01em; font-size: 12px; }
.form__status { color: var(--amber-2); min-height: 1em; text-transform: none; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--paper); padding: 80px 0 24px; border-top: 1px solid var(--night-line); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer__cols .label { margin-bottom: 14px; }
.footer__cols a, .footer__cols p:not(.label) { display: block; color: rgba(242,241,237,.72); font-size: 15px; padding: 3px 0; transition: color .3s; }
.footer__cols a:hover { color: var(--amber-2); }
.footer__word { font-size: clamp(90px, 23.5vw, 400px); font-weight: 600; letter-spacing: -.07em; line-height: .78; margin: 70px 0 30px; text-align: center; background: linear-gradient(180deg, rgba(242,241,237,.9), rgba(242,241,237,.08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(242,241,237,.45); border-top: 1px solid var(--night-line); padding-top: 18px; }
.footer__base a:hover { color: var(--paper); }

/* ---------- Spanish: longer lines ---------- */
html[lang="es"] .hero__title { font-size: clamp(44px, 8.2vw, 150px); }
html[lang="es"] .custom__title { font-size: clamp(42px, 7.6vw, 136px); }
html[lang="es"] .nav__links { gap: 22px; font-size: 14px; }
@media (max-width: 1240px) { html[lang="es"] .nav__links { display: none; } html[lang="es"] .nav__burger { display: block; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .quality__grid { grid-template-columns: repeat(2, 1fr); }
  .sustain__grid { grid-template-columns: repeat(2, 1fr); }
  .sustain__grid article:nth-child(3) { border-left: 0; padding-left: 0; }
  .sustain__grid article { padding-bottom: 24px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__specs { grid-template-columns: 1fr 1fr; }
  .hero__specs > div:nth-child(n+3) { border-top: 1px solid rgba(242,241,237,.1); }
  .hero__scroll, .hero__coords { display: none; }
  .intro__grid, .products__intro, .custom__cols, .process, .quality__top, .sustain__top, .global__inner, .about__grid, .contact__inner { grid-template-columns: 1fr; }
  .products__lead, .quality__top p, .sustain__top p { justify-self: start; }
  .app { grid-template-columns: 1fr; grid-template-rows: 38% 1fr; flex-basis: 86vw; }
  .app__visual { border-right: 0; border-bottom: 1px solid var(--night-line); }
  .app__num { font-size: 110px; }
  .app__meta { grid-template-columns: 1fr; }
  .app__lead { font-size: 16px; }
  .app__text { display: none; }
  .process__sticky { position: relative; top: 0; }
  .process__dial { display: none; }
  .step { opacity: 1; grid-template-columns: 48px 1fr; }
  .loop__svg { display: none; }
  .loop__nodes { grid-template-columns: 1fr 1fr; }
  .global__globe { justify-self: center; max-width: 480px; }
  .sheet__block { grid-template-columns: 1fr; gap: 10px; }
  .timeline__row { grid-template-columns: 100px 1fr; }
  .photo-slot { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .nav .btn--sm, .lang { display: none; }
  .products__grid, .quality__grid { grid-template-columns: 1fr; }
  .pcard { min-height: 400px; }
  .counters { grid-template-columns: 1fr; }
  .counters > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .sustain__grid, .loop__nodes { grid-template-columns: 1fr; }
  .sustain__grid article + article { border-left: 0; padding-left: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .sec-head .label--r { display: none; }
  .apps__progress i { width: 40px; }
  .apps__head .h2 { font-size: 30px; }
  .apps__pin { padding-top: 84px; }
  .hero__top { padding-top: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
