/* =====================================================================
   Krijon-Tech — public site stylesheet (v4 · "Modern Heritage")
   Editorial serif headlines, Swiss-style grid, fine rules, restrained colour.
   Motion rule: only transform / translate / opacity / stroke are animated.
   ===================================================================== */

/* ===== TOKENS ===== */
:root {
  /* Palette */
  --ivory:      #F5F2EA;
  --ivory-2:    #ECE7DB;
  --paper:      #FFFFFF;
  --charcoal:   #202321;
  --charcoal-2: #2B2F2C;
  --forest:     #344C3D;
  --forest-2:   #283B2F;
  --bronze:     #A58B65;
  --bronze-ink: #7A6242;   /* bronze darkened for small text on light (≥4.5:1) */
  --grey:       #777872;

  /* Roles */
  --ink:         var(--charcoal);
  --body:        #3E413D;
  --muted:       #62645E;
  --line:        rgba(32,35,33,.13);
  --line-strong: rgba(32,35,33,.32);

  --on-dark:       #F5F2EA;
  --on-dark-body:  rgba(245,242,234,.78);
  --on-dark-muted: rgba(245,242,234,.58);
  --line-dark:     rgba(245,242,234,.16);

  --success-bg: #EDF1EA; --success-fg: #2A3F32; --success-line: #C4D2C6;
  --error-bg:   #F7ECE8; --error-fg:   #9B2C1F; --error-line:   #E6C3BA;

  /* Type */
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Shape & motion */
  --radius: 2px;
  --ease:   cubic-bezier(.2,.7,.2,1);
  --fast:   .2s cubic-bezier(.4,0,.2,1);
  --nav-h:  76px;
  --container: 1240px;
  --gutter: 32px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }
::selection { background: rgba(165,139,101,.32); color: var(--ink); }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 1px; }
.section-dark :focus-visible, #cta-banner :focus-visible, footer :focus-visible { outline-color: var(--bronze); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  background: var(--charcoal); color: var(--ivory); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Language switch cross-fade */
main, footer, .nav-menu { transition: opacity .18s ease; }
.i18n-switching main, .i18n-switching footer, .i18n-switching .nav-menu { opacity: .12; }

/* ===== TYPOGRAPHY ===== */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-optical-sizing: auto; }
h3 { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.35; letter-spacing: -.005em; }

.section-title {
  font-size: clamp(2.05rem, 1.35rem + 2.3vw, 3.35rem);
  line-height: 1.06; letter-spacing: -.018em;
  margin-bottom: 22px; text-wrap: balance;
}
.section-sub { font-size: 1.04rem; color: var(--muted); max-width: 44ch; }

/* Eyebrow: section index (mono, bronze) + rule + label */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.eyebrow .idx { color: var(--bronze-ink); }
.eyebrow .idx::after { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 14px; opacity: .7; }
.section-dark .eyebrow { color: var(--on-dark-muted); }
.section-dark .eyebrow .idx { color: var(--bronze); }

.inline-link { color: var(--forest); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.inline-link:hover { color: var(--ink); }

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 128px 0; position: relative; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark  { background: var(--charcoal); color: var(--on-dark-body); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }

/* Asymmetric split: narrow sticky heading column + wide content column */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: calc(var(--nav-h) + 40px); }

/* Heading left, supporting line right — aligned on a shared baseline */
.head-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; margin-bottom: 72px; }
.head-split .section-title { margin-bottom: 0; }
.head-split .section-sub { justify-self: end; padding-bottom: 8px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 .92rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.btn i { font-size: 1.05em; transition: transform .3s var(--ease); }
.btn:hover i.ri-arrow-right-line { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-2); }
.btn-light { background: var(--ivory); color: var(--charcoal); }
.btn-light:hover { background: var(--paper); }
.btn-text {
  padding: 15px 2px; color: var(--ink);
  background: linear-gradient(var(--bronze), var(--bronze)) no-repeat 0 calc(100% - 10px) / 100% 1px;
  border-radius: 0; transition: background-size .35s var(--ease), color var(--fast);
}
.btn-text:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--forest); font-weight: 500; font-size: .9rem; text-decoration: none;
}
.text-link span { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease); }
.text-link:hover span { background-size: 100% 1px; }
.text-link i { transition: transform .3s var(--ease); }
.text-link:hover i { transform: translateX(4px); }

/* ===== HEADER ===== */
#navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 0 var(--gutter); border-bottom: 1px solid transparent;
  transition: background var(--fast), border-color var(--fast);
}
#navbar.scrolled, .menu-open #navbar { background: rgba(245,242,234,.94); backdrop-filter: saturate(1.2) blur(10px); border-bottom-color: var(--line); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--bronze); transform: scaleX(0); transform-origin: left; will-change: transform; }

.nav-inner {
  max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 36px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; color: var(--charcoal); }
.nav-brand { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; letter-spacing: -.015em; line-height: 1; }
.nb-krijon { color: currentColor; }
.nb-tech   { color: var(--forest); }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  display: inline-block; padding: 6px 0; font-size: .88rem; font-weight: 500; text-decoration: none; color: var(--body);
  background: linear-gradient(var(--bronze), var(--bronze)) no-repeat 0 100% / 0 1px;
  transition: background-size .35s var(--ease), color var(--fast);
}
.nav-links a:hover { color: var(--ink); background-size: 100% 1px; }
.nav-links a.active { color: var(--ink); background-image: linear-gradient(var(--forest), var(--forest)); background-size: 100% 1px; }

/* Language switch — mono labels with a sliding hairline */
.lang-switch { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 32px; }
.ls-indicator {
  position: absolute; bottom: 4px; left: 9px; width: 14px; height: 1px; background: var(--forest);
  transform: translateX(calc(var(--idx, 0) * 32px)); transition: transform .4s var(--ease);
}
.lang-switch a {
  position: relative; display: grid; place-items: center; height: 34px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-decoration: none;
  color: var(--muted); transition: color var(--fast);
}
.lang-switch a:hover, .lang-switch a[aria-current="true"] { color: var(--ink); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 40px; padding: 10px 8px; background: none; border: 0; cursor: pointer;
}
.hamburger span { display: block; height: 1.5px; background: var(--charcoal); transition: transform var(--fast), opacity var(--fast); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
#hero { position: relative; background: var(--ivory); padding: calc(var(--nav-h) + 76px) 0 0; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: 88px;
}

.hero-title {
  font-size: clamp(2.5rem, 1.25rem + 4.3vw, 5.35rem);
  line-height: 1.02; letter-spacing: -.025em; margin-bottom: 32px;
}
.ht-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ht-line > span { display: inline-block; }
.ht-rotator { position: relative; width: fit-content; max-width: 100%; padding-bottom: .16em; }
.rot-word {
  display: inline-block; font-style: italic; color: var(--forest);
  transition: translate .38s var(--ease), opacity .38s ease;
}
.rot-word.is-out { translate: 0 -40%; opacity: 0; }
.rot-word.is-in  { translate: 0 40%;  opacity: 0; transition: none; }
.rot-swoosh {
  position: absolute; left: 0; bottom: .04em; width: 100%; height: .16em; overflow: visible;
  fill: none; stroke: var(--bronze); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.ht-rotator.draw .rot-swoosh { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) .05s; }

.hero-desc { font-size: 1.1rem; line-height: 1.7; max-width: 52ch; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 44px; }

.hero-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0 22px; border-top: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* Construction drawing of the mark */
.hero-figure { margin: 0; justify-self: end; width: 100%; max-width: 500px; }
.hv { width: 100%; height: auto; overflow: visible; }
.hv-sheet  { fill: #FBF9F4; stroke: var(--line-strong); stroke-width: 1; }
.hv-grid   { fill: none; stroke: rgba(32,35,33,.075); stroke-width: 1; }
.hv-ticks  { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.hv-guide  { fill: none; stroke: var(--bronze); stroke-width: 1; stroke-dasharray: 3 5; opacity: .75; }
.hv-k polygon { fill: var(--charcoal); stroke: var(--charcoal); stroke-width: 1.25; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hv-k .hv-swoosh { fill: var(--bronze); stroke: var(--bronze); }
.hv-note path { fill: none; stroke: var(--charcoal); stroke-width: 1; opacity: .55; }
.hv-note text { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; fill: var(--bronze-ink); }

/* Drawing sequence: grid → guides → outline → fill → notes (CSS only, runs once) */
@keyframes hvFade { from { opacity: 0; } }
@keyframes hvDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hvFill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
.js .hv-grid, .js .hv-ticks { animation: hvFade 1s ease .1s both; }
.js .hv-guide { animation: hvFade 1s ease .5s both; }
.js .hv-k polygon { animation: hvDraw 1.3s var(--ease) both, hvFill .7s ease both; animation-delay: .7s, 1.8s; }
.js .hv-k polygon:nth-child(2) { animation-delay: .82s, 1.9s; }
.js .hv-k polygon:nth-child(3) { animation-delay: .94s, 2s; }
.js .hv-k polygon:nth-child(4) { animation-delay: 1.2s, 2.15s; }
.js .hv-note { animation: hvFade .8s ease 2.4s both; }

/* Entrance choreography (JS only) */
@keyframes heroIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.js .hero-in { animation: heroIn .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms + 100ms); }

/* ===== SERVICES — structured, numbered list ===== */
.svc-list { border-top: 1px solid var(--line-strong); }
.svc {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 40px;
  padding: 44px 0 46px; border-bottom: 1px solid var(--line);
}
.svc::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.svc:hover::before { transform: scaleX(1); }
.svc-mark { display: flex; flex-direction: column; gap: 18px; padding-top: 9px; }
.svc-num { font-family: var(--mono); font-size: .78rem; color: var(--bronze-ink); letter-spacing: .06em; }
.svc-mark i { font-size: 1.15rem; color: var(--forest); line-height: 1; }
.svc-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + .9vw, 1.95rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 14px; }
.svc-text { font-size: .98rem; max-width: 44ch; margin-bottom: 24px; }
.svc-points { align-self: start; padding-top: 10px; }
.svc-points li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--body);
}
.svc-points li:first-child { border-top: 0; padding-top: 0; }
.svc-points li::before { content: ''; flex: 0 0 10px; height: 1px; background: var(--bronze); transform: translateY(-4px); }

/* ===== ABOUT (dark) ===== */
.about-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
.about-top .section-title { margin-bottom: 0; max-width: 14ch; }
.about-lead { font-size: 1.14rem; line-height: 1.6; color: var(--on-dark); margin-bottom: 18px; }
.about-text p:not(.about-lead) { font-size: .98rem; }

.about-mission {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 48px; align-items: start;
  margin: 96px 0; padding: 56px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.mark-draw { width: 100%; overflow: visible; }
.mark-draw polygon {
  fill: rgba(165,139,101,0); stroke: var(--bronze); stroke-width: 1; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke;
}
.visible .mark-draw polygon {
  stroke-dashoffset: 0; fill: rgba(165,139,101,.1);
  transition: stroke-dashoffset 1.6s var(--ease), fill .8s ease 1.2s;
}
.mark-draw polygon:nth-child(2) { transition-delay: .15s, 1.3s; }
.mark-draw polygon:nth-child(3) { transition-delay: .3s, 1.4s; }
.mark-draw polygon:nth-child(4) { transition-delay: .5s, 1.5s; }
.mission-label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin-bottom: 18px; }
.mission-text {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 1rem + 1.5vw, 2.25rem); line-height: 1.3; letter-spacing: -.01em;
  color: var(--on-dark); max-width: 34ch; text-wrap: pretty;
}

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; row-gap: 48px; }
.principle { padding-top: 22px; border-top: 1px solid var(--line-dark); }
.principle-num { display: block; font-family: var(--mono); font-size: .76rem; color: var(--bronze); margin-bottom: 26px; }
.principle h3 { margin-bottom: 10px; }
.principle p { font-size: .92rem; color: var(--on-dark-muted); }

/* ===== PROCESS — a ruled timeline ===== */
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; row-gap: 56px; }
.step { position: relative; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.step::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--forest);
  transform: scaleX(.08); transform-origin: left; transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms + 200ms);
}
.step.visible::before { transform: scaleX(1); }
.step::after { content: ''; position: absolute; top: -6px; left: 0; width: 1px; height: 11px; background: var(--charcoal); }
.step-num { display: block; font-family: var(--mono); font-size: .76rem; color: var(--bronze-ink); margin-bottom: 20px; letter-spacing: .06em; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px; }
.step p { font-size: .94rem; }

/* ===== CTA BAND ===== */
#cta-banner { position: relative; overflow: hidden; background: var(--forest); padding: 96px 0; color: rgba(245,242,234,.82); }
.cta-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-line path { fill: none; stroke: var(--bronze); stroke-width: 1; opacity: .55; }
.cta-banner-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
#cta-banner h2 { color: var(--on-dark); font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.018em; margin-bottom: 16px; }
#cta-banner p { max-width: 56ch; }
#cta-banner .btn { flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); line-height: 1.3; color: var(--ink);
  transition: color var(--fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--forest); font-size: 1rem;
  transition: transform .35s var(--ease), background var(--fast), color var(--fast), border-color var(--fast);
}
.faq-item[open] summary i { transform: rotate(45deg); background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.faq-item summary:hover { color: var(--forest); }
.faq-body p { padding: 0 64px 28px 0; font-size: .98rem; max-width: 64ch; }
@keyframes faqIn { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.faq-item[open] .faq-body { animation: faqIn .35s var(--ease); }

/* ===== CONTACT ===== */
.contact-wrapper { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info .lead { font-size: 1.04rem; margin-bottom: 40px; max-width: 46ch; }
.contact-items { border-top: 1px solid var(--line-strong); margin-bottom: 48px; }
.contact-items li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-items i { flex-shrink: 0; color: var(--forest); font-size: 1.1rem; width: 22px; }
.contact-items small { display: block; font-family: var(--mono); font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2px; }
.contact-items a, .contact-items span { color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-items a:hover { color: var(--forest); }

.next-steps h3 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.next-steps ol { display: grid; gap: 14px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 34px 1fr; font-size: .95rem; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); font-family: var(--mono); font-size: .76rem; color: var(--bronze-ink); padding-top: 3px; }

.contact-form-wrap { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--forest); border-radius: var(--radius); padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .84rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.req { color: var(--bronze-ink); }
.opt { color: var(--muted); font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(32,35,33,.24); border-radius: var(--radius);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.form-group select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2362645E' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8C8D86; }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: rgba(32,35,33,.42); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(52,76,61,.14);
}
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--error-fg); }
.field-error { display: none; color: var(--error-fg); font-size: .82rem; margin-top: 6px; }
.form-group.has-error .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: .92rem; font-weight: 500; border: 1px solid; }
.form-status.success { display: block; background: var(--success-bg); color: var(--success-fg); border-color: var(--success-line); }
.form-status.error   { display: block; background: var(--error-bg);   color: var(--error-fg);   border-color: var(--error-line); }

/* ===== FOOTER ===== */
footer { background: var(--charcoal); color: var(--on-dark-muted); padding: 88px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 72px; }
.footer-logo { display: flex; align-items: center; gap: 11px; color: var(--on-dark); }
.footer-logo .nb-tech { color: var(--bronze); }
.footer-brand p { font-size: .92rem; margin: 22px 0 24px; max-width: 34ch; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark-body); text-decoration: none;
  transition: color var(--fast), border-color var(--fast);
}
.footer-social a:hover { color: var(--on-dark); border-color: var(--bronze); }
.footer-col h2 { font-family: var(--mono); color: var(--bronze); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col span { color: var(--on-dark-body); text-decoration: none; font-size: .92rem; overflow-wrap: anywhere; transition: color var(--fast); }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 24px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--charcoal); border-radius: 50%; background: var(--charcoal); color: var(--ivory); font-size: 1.1rem; cursor: pointer;
  opacity: 0; visibility: hidden; translate: 0 10px;
  transition: opacity var(--fast), visibility var(--fast), translate .3s var(--ease), background var(--fast);
}
#scrollTop.visible { opacity: 1; visibility: visible; translate: 0 0; }
#scrollTop:hover { background: var(--forest); border-color: var(--forest); }

/* ===== REVEAL (progressive enhancement: hidden only when JS runs) ===== */
.js .reveal {
  opacity: 0; translate: 0 16px;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.visible { opacity: 1; translate: 0 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  .nav-inner { gap: 24px; }
  .nav-menu { gap: 24px; }
  .nav-links { gap: 22px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; --nav-h: 68px; }
  .section { padding: 104px 0; }

  .hamburger { display: flex; }
  .nav-inner { gap: 12px; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 28px;
    translate: 0 -8px; opacity: 0; visibility: hidden;
    transition: opacity var(--fast), translate var(--fast), visibility var(--fast);
  }
  .nav-menu.open { translate: 0 0; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a {
    display: block; padding: 16px 0; border-bottom: 1px solid var(--line); background: none;
    font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--ink);
  }
  .nav-links a.active { color: var(--forest); }
  .nav-cta { align-self: flex-start; }

  .split { grid-template-columns: 1fr; }
  .split-head { position: static; margin-bottom: 56px; }
  .about-top, .contact-wrapper { grid-template-columns: 1fr; row-gap: 40px; }
  .head-split { grid-template-columns: 1fr; row-gap: 20px; margin-bottom: 56px; }
  .head-split .section-sub { justify-self: start; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  #hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; row-gap: 56px; padding-bottom: 56px; }
  .hero-figure { justify-self: start; max-width: 440px; }
  .about-mission { grid-template-columns: 80px minmax(0, 1fr); column-gap: 28px; margin: 72px 0; padding: 44px 0; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  /* Services become a single column: number row, title, text, points, then the link */
  .svc { display: flex; flex-direction: column; padding: 36px 0 40px; }
  .svc-body { display: contents; }
  .svc-mark { order: 1; flex-direction: row; align-items: center; gap: 14px; padding-top: 0; margin-bottom: 16px; }
  .svc-title { order: 2; }
  .svc-text { order: 3; margin-bottom: 18px; }
  .svc-points { order: 4; padding-top: 0; }
  .svc-body .text-link { order: 5; align-self: flex-start; margin-top: 20px; }
  .process-steps, .principles { grid-template-columns: 1fr; row-gap: 40px; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  #cta-banner { padding: 72px 0; }
  .contact-form-wrap { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
  .faq-body p { padding-right: 0; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .nav-brand { font-size: .98rem; }
  .lang-switch { grid-auto-columns: 28px; }
  .ls-indicator { left: 7px; transform: translateX(calc(var(--idx, 0) * 28px)); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-actions .btn-text { align-self: flex-start; }
  .hero-foot { flex-direction: column; gap: 4px; }
  .about-mission { grid-template-columns: 1fr; row-gap: 24px; }
  .mark-draw { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; }
  .mark-draw polygon { stroke-dashoffset: 0; fill: rgba(165,139,101,.1); }
  .rot-swoosh { stroke-dashoffset: 0; }
  .step::before { transform: none; }
}

/* Very narrow phones: keep every rotating keyword on one line (no layout jump) */
@media (max-width: 380px) {
  .hero-title { font-size: 2.2rem; }
  .rot-word { white-space: nowrap; }
}
