/* ============================================================
   HELIORA ENERGY — visual system v3
   Display: Space Grotesk · Body/UI: Inter
   Palette derived from the brand mark (sun rising over waves)
   ============================================================ */

:root {
  /* Brand / warmth */
  --sun:      #f0590a;   /* primary brand orange (from logo) */
  --sun-2:    #ff8a1d;   /* sunrise highlight */
  --ember:    #c2410c;   /* deep orange — hover/depth */

  /* Warm neutrals */
  --paper:    #fbf7f1;   /* page background */
  --paper-2:  #f3ebdf;   /* soft panels */
  --ink:      #1a130d;   /* primary text (warm near-black) */
  --muted:    #6b6258;   /* secondary text */
  --line:     rgba(26, 19, 13, .12);
  --line-2:   rgba(26, 19, 13, .07);

  /* Dark surfaces (warm charcoal, not cold green) */
  --char:     #17120e;
  --char-2:   #211913;
  --char-3:   #2c2219;
  --on-dark:        rgba(255, 248, 240, .96);
  --on-dark-soft:   rgba(255, 248, 240, .68);
  --on-dark-line:   rgba(255, 248, 240, .14);

  --white: #ffffff;

  --shadow:       0 30px 80px -28px rgba(26, 19, 13, .42);
  --shadow-soft:  0 20px 48px -26px rgba(26, 19, 13, .30);
  --shadow-sun:   0 18px 40px -14px rgba(240, 89, 10, .45);

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --container: 1180px;

  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* horizon-wave divider (the logo motif), as a data-uri */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0 12 C 15 4, 25 4, 40 12 S 65 20, 80 12 100 4, 120 12' fill='none' stroke='%23f0590a' stroke-width='1.5' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 88% -6%, rgba(255, 138, 29, .16), transparent 46%),
    radial-gradient(90% 60% at 6% 0%, rgba(240, 89, 10, .10), transparent 42%),
    linear-gradient(180deg, #fffaf3 0%, var(--paper) 46%, #f1e9dd 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(240, 89, 10, .22); }

.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }

.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); background: var(--white); color: var(--char); padding: 10px 16px; border-radius: 12px; z-index: 1000; box-shadow: var(--shadow); font-weight: 600; }
.skip-link:focus-visible { transform: translateY(0); }

/* Scroll progress ------------------------------------------------ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--sun), var(--sun-2)); box-shadow: 0 0 14px rgba(240, 89, 10, .55); transition: width .08s linear; }

/* ===== Header / nav ===== */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .26s ease, box-shadow .26s ease, backdrop-filter .26s ease, border-color .26s ease; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(251, 247, 241, .82); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); box-shadow: 0 10px 30px -22px rgba(26, 19, 13, .5); border-bottom-color: var(--line-2); }
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-icon { width: 46px; height: 46px; object-fit: contain; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand-icon { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-family: var(--font-display); color: var(--sun); font-size: 1.22rem; font-weight: 700; letter-spacing: .12em; }
.brand-text em { font-style: normal; color: var(--muted); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { color: rgba(26, 19, 13, .72); font-size: .9rem; font-weight: 550; padding: 9px 12px; border-radius: 999px; transition: color .18s ease, background .18s ease; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: rgba(240, 89, 10, .10); }
.nav-cta { color: var(--white) !important; background: var(--char) !important; padding-inline: 18px !important; font-weight: 600 !important; transition: transform .18s ease, background .2s ease, box-shadow .2s ease !important; }
.nav-cta:hover { transform: translateY(-1px); background: var(--sun) !important; box-shadow: var(--shadow-sun); }
.lang-switch { display: inline-flex; margin-left: 10px; padding: 4px; gap: 2px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); border-radius: 999px; }
.lang-switch a { font-size: .74rem; font-weight: 600; padding: 6px 9px; border-radius: 999px; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: var(--sun); color: var(--white); }
.nav-toggle { display: none; border: 0; background: var(--char); width: 46px; height: 46px; border-radius: 14px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 27px; }
body.nav-open .nav-toggle span:first-child { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ===== Type ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); color: var(--ember); font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--sun), var(--sun-2)); }
.diagram .eyebrow, .cta-card .eyebrow, .contact-aside .eyebrow, .band .eyebrow, .service-card.dark .eyebrow { color: var(--sun-2); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.03; margin: 0; letter-spacing: -.025em; font-weight: 600; }
h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); max-width: 16ch; }
h3 { font-size: 1.24rem; margin-bottom: 10px; letter-spacing: -.015em; }
p { color: var(--muted); margin: 0 0 18px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: .96rem; letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background .2s ease, color .18s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: var(--white); background: linear-gradient(180deg, var(--sun-2), var(--sun)); box-shadow: var(--shadow-sun); }
.btn-primary:hover { background: linear-gradient(180deg, var(--sun), var(--ember)); box-shadow: 0 22px 46px -16px rgba(240, 89, 10, .6); }
.btn-secondary { color: var(--ink); background: rgba(255, 255, 255, .7); border-color: var(--line); }
.btn-secondary:hover { background: var(--white); border-color: rgba(26, 19, 13, .2); box-shadow: var(--shadow-soft); }

/* ===== Hero ===== */
.hero { padding: 70px 0 96px; position: relative; }
.hero::before { content: ""; position: absolute; top: -120px; right: -6%; width: 620px; height: 620px; max-width: 70vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 29, .32), rgba(240, 89, 10, .12) 42%, transparent 68%); filter: blur(8px); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: #463b30; max-width: 600px; margin: 22px 0 30px; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .62); border-radius: 999px; padding: 9px 15px; font-size: .88rem; font-weight: 550; color: var(--char-2); }
.hero-points span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }

.hero-media { position: relative; min-height: 520px; }
.hero-media > img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.hero-logo-card { position: absolute; left: 22px; top: 22px; width: min(340px, 74%); background: rgba(255, 252, 247, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 20px 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); border: 1px solid rgba(255, 255, 255, .6); }
.hero-logo-card img { width: 100%; height: auto; }
.hero-metric { position: absolute; right: 22px; bottom: 22px; background: var(--char); color: var(--on-dark); padding: 18px 22px; border-radius: var(--radius-md); width: min(340px, calc(100% - 44px)); box-shadow: var(--shadow); border: 1px solid var(--on-dark-line); overflow: hidden; }
.hero-metric::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--wave) repeat-x bottom/120px 18px; opacity: .6; }
.hero-metric strong { font-family: var(--font-display); display: block; font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.hero-metric span { color: var(--on-dark-soft); font-size: .9rem; }

/* ===== Quick bar ===== */
.quick-bar { padding: 0 0 82px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-grid article { background: var(--char); color: var(--on-dark); padding: 26px; border-radius: var(--radius-md); min-height: 142px; position: relative; overflow: hidden; border: 1px solid var(--on-dark-line); transition: transform .25s ease; }
.quick-grid article:hover { transform: translateY(-4px); }
.quick-grid article::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 138, 29, .42), rgba(240, 89, 10, .12) 60%, transparent); }
.quick-grid strong { font-family: var(--font-display); display: block; font-size: 1.16rem; font-weight: 600; margin-bottom: 8px; }
.quick-grid span { color: var(--on-dark-soft); position: relative; }

/* ===== Sections ===== */
.section { padding: 94px 0; }
.section.tight { padding: 66px 0; }
.section-head { max-width: 860px; margin-bottom: 44px; }
.section-head h2 { max-width: 15ch; }
.section-head p { font-size: 1.1rem; max-width: 760px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }

.service-card, .insight-card { position: relative; background: rgba(255, 255, 255, .68); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--sun), var(--sun-2)); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(240, 89, 10, .26); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.dark { background: var(--char); color: var(--on-dark); border-color: var(--on-dark-line); }
.service-card.dark h3, .service-card.dark p { color: var(--on-dark); }
.service-card.dark p { color: var(--on-dark-soft); }
.card-icon { font-family: var(--font-display); width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255, 138, 29, .18), rgba(240, 89, 10, .12)); color: var(--ember); font-weight: 600; font-size: 1.05rem; margin-bottom: 22px; border: 1px solid rgba(240, 89, 10, .16); }
.service-card ul, .page-list { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.service-card li + li, .page-list li + li { margin-top: 8px; }
.dark .page-list, .dark li { color: var(--on-dark-soft); }

/* ===== Split / diagram ===== */
.split-section, .muted { background: linear-gradient(180deg, rgba(243, 235, 223, .7), rgba(255, 255, 255, .1)); }
.split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: center; }
.visual-panel { background: var(--char); border-radius: var(--radius-xl); padding: 14px; box-shadow: var(--shadow); }
.panel-image img { height: 370px; width: 100%; object-fit: cover; border-radius: 24px; }
.panel-list { display: grid; gap: 10px; padding: 14px; }
.panel-list div { display: flex; justify-content: space-between; gap: 16px; border: 1px solid var(--on-dark-line); padding: 14px 16px; border-radius: 15px; color: var(--on-dark); }
.panel-list span { color: var(--on-dark-soft); text-align: right; }

.feature-list { display: grid; gap: 18px; margin-top: 32px; }
.feature-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature-list span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--sun-2), var(--sun)); color: var(--white); font-weight: 700; box-shadow: var(--shadow-sun); }
.feature-list h3 { margin-bottom: 6px; }

.diagram { background: var(--char); color: var(--on-dark); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); overflow: hidden; position: relative; border: 1px solid var(--on-dark-line); }
.diagram::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 248, 240, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 248, 240, .045) 1px, transparent 1px); background-size: 34px 34px; opacity: .7; }
.diagram::after { content: ""; position: absolute; top: -80px; right: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 29, .3), transparent 65%); }
.diagram > * { position: relative; }
.diagram h2, .diagram p { color: var(--on-dark); }
.diagram p { color: var(--on-dark-soft); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.flow div { position: relative; border: 1px solid var(--on-dark-line); background: rgba(255, 248, 240, .05); border-radius: var(--radius-md); padding: 22px; }
.flow div:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--sun); font-weight: 700; z-index: 2; }
.flow span { font-family: var(--font-display); display: inline-grid; place-items: center; width: 38px; height: 38px; background: linear-gradient(180deg, var(--sun-2), var(--sun)); color: var(--white); border-radius: 12px; font-weight: 600; margin-bottom: 16px; }
.flow strong { font-family: var(--font-display); display: block; font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.flow small { color: var(--on-dark-soft); line-height: 1.5; }

/* ===== Timeline ===== */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.timeline-item { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; min-height: 232px; box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease; }
.timeline-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.timeline-item span { font-family: var(--font-display); display: inline-grid; place-items: center; width: 46px; height: 46px; background: var(--char); color: var(--white); border-radius: 14px; font-weight: 600; margin-bottom: 22px; }
.timeline-item::after { content: ""; position: absolute; left: 51px; top: 46px; height: 2px; width: calc(100% - 28px); background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.timeline-item:last-child::after { display: none; }

/* ===== Projects ===== */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card img { width: 100%; height: 220px; object-fit: cover; }
.project-card > div { padding: 26px; }
.project-card span { font-family: var(--font-display); color: var(--ember); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; }
.project-card h3 { margin-top: 10px; }

/* ===== Band ===== */
.band { background: var(--char); color: var(--on-dark); border-radius: var(--radius-xl); padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; border: 1px solid var(--on-dark-line); }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--wave) repeat-x bottom/120px 18px; opacity: .5; }
.band h2, .band p { color: var(--on-dark); }
.band p { color: var(--on-dark-soft); margin-bottom: 0; }

/* ===== Brand showcase ===== */
.brand-showcase { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px; text-align: center; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.brand-showcase::before { content: ""; position: absolute; top: -90px; left: 50%; transform: translateX(-50%); width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 29, .16), transparent 62%); }
.brand-showcase img { position: relative; margin: 0 auto 22px; max-width: 320px; }
.brand-showcase p { position: relative; }

/* ===== Page hero ===== */
.page-hero { padding: 72px 0 46px; position: relative; }
.page-hero::before { content: ""; position: absolute; top: -90px; right: -4%; width: 460px; height: 460px; max-width: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 29, .22), transparent 66%); pointer-events: none; z-index: -1; }
.page-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }
.page-hero h1 { max-width: 13ch; }
.page-hero p { font-size: 1.14rem; max-width: 720px; }
.page-hero img { height: 420px; width: 100%; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }

/* ===== Stats ===== */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { background: var(--char); color: var(--on-dark); border-radius: var(--radius-md); padding: 26px; border: 1px solid var(--on-dark-line); }
.stat-card strong { font-family: var(--font-display); display: block; font-size: 1.7rem; font-weight: 600; color: var(--sun-2); letter-spacing: -.02em; margin-bottom: 6px; }
.stat-card span { color: var(--on-dark-soft); }

/* ===== CTA card ===== */
.cta-section { padding-top: 0; }
.cta-card { display: grid; grid-template-columns: 90px 1fr auto; gap: 26px; align-items: center; background: var(--char); color: var(--on-dark); border-radius: var(--radius-xl); padding: 38px; box-shadow: var(--shadow); position: relative; overflow: hidden; border: 1px solid var(--on-dark-line); }
.cta-card::after { content: ""; position: absolute; top: -70px; right: -40px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 29, .26), transparent 64%); }
.cta-card h2, .cta-card p { color: var(--on-dark); position: relative; }
.cta-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.cta-card p:not(.eyebrow) { color: var(--on-dark-soft); margin-bottom: 0; }
.cta-card > img { position: relative; width: 90px; height: 90px; object-fit: contain; background: var(--white); border-radius: 22px; padding: 12px; }
.cta-card .btn { position: relative; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 28px; align-items: start; }
.contact-aside { background: var(--char); color: var(--on-dark); border-radius: var(--radius-xl); padding: 36px; height: 100%; position: relative; overflow: hidden; border: 1px solid var(--on-dark-line); }
.contact-aside::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--wave) repeat-x bottom/120px 18px; opacity: .5; }
.contact-aside h2 { color: var(--on-dark); }
.contact-aside p { color: var(--on-dark-soft); }
.contact-lines { display: grid; gap: 10px; margin-top: 30px; position: relative; }
.contact-lines span, .contact-lines a { color: var(--on-dark); border: 1px solid var(--on-dark-line); border-radius: 999px; padding: 11px 16px; font-size: .92rem; }
.contact-lines a:hover { background: rgba(255, 248, 240, .07); }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-soft); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--ink); font-weight: 600; font-size: .92rem; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; background: #fffdf9; color: var(--ink); outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input::placeholder, textarea::placeholder { color: #a79e92; }
input:focus, textarea:focus, select:focus { border-color: var(--sun); background: var(--white); box-shadow: 0 0 0 4px rgba(240, 89, 10, .13); }
textarea { resize: vertical; min-height: 120px; }
.hidden { display: none; }


.email-label { margin-top: 22px; margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.email-address { display: inline-flex; align-items: center; width: fit-content; padding: 14px 18px; border-radius: 16px; background: #fff7ed; border: 1px solid rgba(240, 89, 10, .22); color: var(--ember); font-weight: 700; text-decoration: none; word-break: break-word; }
.email-address:hover { background: #fff1df; transform: translateY(-1px); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mail-list { margin-top: 24px; }

/* Form status messages */
.form-status { display: none; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; font-size: .94rem; font-weight: 500; line-height: 1.5; }
.form-status.is-shown { display: flex; }
.form-status.is-success { background: rgba(56, 142, 75, .12); border: 1px solid rgba(56, 142, 75, .3); color: #2c6a3c; }
.form-status.is-error { background: rgba(194, 65, 12, .1); border: 1px solid rgba(194, 65, 12, .3); color: var(--ember); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ===== Footer ===== */
.site-footer { background: var(--char); color: var(--on-dark); padding: 66px 0 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--wave) repeat-x top/120px 18px; opacity: .4; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.footer-brand img { width: 220px; background: var(--white); border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; }
.site-footer p { color: var(--on-dark-soft); max-width: 540px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; max-width: 650px; }
.footer-links a { color: var(--on-dark-soft); border: 1px solid var(--on-dark-line); border-radius: 999px; padding: 9px 14px; font-size: .88rem; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.footer-links a:hover { color: var(--on-dark); background: rgba(255, 248, 240, .07); border-color: rgba(255, 248, 240, .22); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; color: rgba(255, 248, 240, .48); border-top: 1px solid var(--on-dark-line); margin-top: 48px; padding-top: 24px; font-size: .88rem; }

/* ===== Reveal (visible by default; only hidden when JS+motion active) ===== */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ===== Focus visibility ===== */
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ===== Responsive ===== */
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 84px 20px auto 20px; display: grid; align-items: stretch; gap: 2px; background: rgba(251, 247, 241, .98); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); transform: translateY(-16px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-height: calc(100vh - 106px); overflow: auto; }
  body.nav-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 16px; }
  .lang-switch { margin-left: 0; margin-top: 6px; width: max-content; }
  .hero-grid, .split-grid, .page-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: auto; }
  .quick-grid, .cards-grid, .cards-grid.two, .cards-grid.three, .cards-grid.four, .timeline, .project-grid, .flow, .stat-grid { grid-template-columns: 1fr 1fr; }
  .flow div:not(:last-child)::after { display: none; }
  .timeline-item::after { display: none; }
  .cta-card { grid-template-columns: 72px 1fr; }
  .cta-card .btn { grid-column: 1 / -1; justify-self: start; }
  .band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 30px, var(--container)); }
  .nav-wrap { min-height: 74px; }
  .main-nav { inset-block-start: 74px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 50px 0; }
  .hero { padding: 36px 0 64px; }
  .hero-grid { gap: 34px; }
  .quick-grid, .cards-grid, .cards-grid.two, .cards-grid.three, .cards-grid.four, .timeline, .project-grid, .field-grid, .footer-grid, .flow, .stat-grid { grid-template-columns: 1fr; }
  .hero-media > img, .page-hero img { height: 340px; border-radius: 26px; }
  .hero-logo-card { left: 14px; top: 14px; padding: 16px; border-radius: 16px; width: calc(100% - 28px); }
  .hero-metric { left: 14px; right: 14px; bottom: 14px; width: auto; }
  .panel-list div { display: grid; }
  .panel-list span { text-align: left; }
  .footer-bottom { display: grid; gap: 8px; }
  .footer-links { justify-content: flex-start; }
  .cta-card { grid-template-columns: 1fr; text-align: left; }
  .cta-card > img { width: 72px; height: 72px; }
  .diagram, .band, .contact-aside, .contact-card, .cta-card { padding: 28px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-progress { display: none; }
}
