/* =====================================================================
   PRIMEFACTOR ADVISORS — STYLESHEET
   =====================================================================
   COLOR SYSTEM
   Every color in this site is defined here. To re-skin the site,
   change the values below — nothing elsewhere hardcodes a color.
   --------------------------------------------------------------------- */
:root {
  /* ── Brand palette ── */
  --color-ink: #1a1814; /* primary dark — text, dark sections     */
  --color-stone: #6b6560; /* muted body text                         */
  --color-fog: #f0ede8; /* light surface / cards                   */
  --color-paper: #faf8f5; /* page background                         */
  --color-gold: #b89b6a; /* PRIMARY accent — links, highlights      */
  --color-rule: #d8d2c8; /* hairline borders                        */

  /* ── Derived / dark-section tones (were hardcoded before) ── */
  --color-muted-dark: #a09a92; /* muted text on dark background           */
  --color-border-dark: #2e2b27; /* hairline borders on dark background     */
  --color-footer-text: #5a5650; /* footer text                             */

  /* ── Feedback ── */
  --color-error: #b4544a; /* form error messages                     */

  /* ── Semantic aliases (reference these in components) ── */
  --bg: var(--color-paper);
  --bg-alt: var(--color-fog);
  --bg-invert: var(--color-ink);
  --text: var(--color-ink);
  --text-muted: var(--color-stone);
  --accent: var(--color-gold);
  --border: var(--color-rule);

  /* ── Typography ── */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;

  /* ── Layout ── */
  --container: 1100px;
  --nav-h: 4.6rem;

  /* ── Motion ── */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ── Icons (as masks so they inherit currentColor via background) ── */
  --icon-warning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* ─────────────────────────────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.6rem, 5vw, 4rem);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-wordmark span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}
nav ul a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
nav ul a:hover {
  color: var(--text);
}
nav ul a:hover::after {
  transform: scaleX(1);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 10rem clamp(1.6rem, 5vw, 4rem) 6rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 860px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--color-ink);
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-ink);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  animation: scrollNudge 1.8s var(--ease) infinite;
}
@keyframes scrollNudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   SECTION SHARED
   ───────────────────────────────────────────────────────────────────── */
section {
  padding: 7rem clamp(1.6rem, 5vw, 4rem);
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
/* Match these section labels to the "What We Do" label size (1.05rem) */
#team .section-label,
#engage .section-label,
#engagements .section-label {
  font-size: 1.05rem;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.6rem;
}
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 2rem 0;
}
hr.section-rule {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────────────────────────────── */
#about {
  background: var(--bg);
}
.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 420px;
}
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--text);
}
/* ── Accordion ── */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.accordion-trigger:hover,
.accordion-item.open .accordion-trigger {
  color: var(--text);
}
.accordion-trigger:focus-visible {
  outline: none;
  color: var(--text);
}
.accordion-label {
  flex: 1;
}

/* Plus → minus icon */
.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.accordion-icon::before {
  /* horizontal bar */
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.accordion-icon::after {
  /* vertical bar */
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.accordion-item.open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* Collapsible panel — animated via max-height set in JS */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
}
.accordion-panel-inner {
  padding: 0 0 1rem;
}
.accordion-panel-inner p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: none;
}

/* ─────────────────────────────────────────────────────────────────────
   HOW WE ENGAGE
   ───────────────────────────────────────────────────────────────────── */
#engage {
  background: var(--bg-alt);
}
.engage-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
}
.step {
  padding: 2.2rem 1.6rem;
  border-right: 1px solid var(--border);
  position: relative;
}
/* Flush the outer edges with the section, keep inner columns clear of the
   divider lines so text never touches them. */
.step:first-child {
  padding-left: 0;
}
.step:last-child {
  border-right: none;
  padding-right: 0;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.25s var(--ease);
}
.step:hover .step-num {
  color: var(--accent);
}
.step-title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.step:last-child .step-title {
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────────
   ENGAGEMENTS
   ───────────────────────────────────────────────────────────────────── */
#engagements {
  background: var(--bg);
}
.eng-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
}
.eng-card {
  background: var(--bg-alt);
  padding: 2.2rem;
  position: relative;
  transition: transform 0.25s var(--ease);
}
.eng-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.eng-card:hover {
  transform: translateY(-4px);
}
.eng-card:hover::before {
  opacity: 1;
}
.eng-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.eng-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.eng-note {
  margin-top: 3rem;
  padding: 2rem 2.4rem;
  border: 1px solid var(--border);
  max-width: 680px;
}
.eng-note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────
   TEAM
   ───────────────────────────────────────────────────────────────────── */
#team {
  background: var(--bg-alt);
}
.team-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.team-intro {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 3rem;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.team-card {
  background: var(--bg);
  padding: 2.4rem;
  border-top: 2px solid var(--accent);
  transition: transform 0.25s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
}
.team-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.team-role {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.team-card p.team-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.team-footnote {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 620px;
}

/* ─────────────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────────────── */
#contact {
  background: var(--bg-invert);
  color: var(--color-paper);
}
#contact .section-label {
  color: var(--accent);
}
#contact .section-title {
  color: var(--color-paper);
}
.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-sub {
  color: var(--color-muted-dark);
  font-size: 0.95rem;
  max-width: 380px;
  margin-bottom: 2.5rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-paper);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.contact-link:hover {
  color: var(--accent);
}
.contact-link-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted-dark);
  width: 64px;
  flex-shrink: 0;
}
.contact-right {
  border-left: 1px solid var(--color-border-dark);
  padding-left: 5rem;
}
.contact-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-paper);
  opacity: 0.75;
}

/* ─────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-invert);
  border-top: 1px solid var(--color-border-dark);
  padding: 1.6rem clamp(1.6rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer p {
  font-size: 0.75rem;
  color: var(--color-footer-text);
}
footer a {
  font-size: 0.75rem;
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
footer a:hover {
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────────
   ENGAGE CTA
   ───────────────────────────────────────────────────────────────────── */
.engage-inner .btn-primary {
  margin-top: 3rem;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────────
   BRIEF MODAL
   ───────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center; /* vertical centering   */
  justify-content: center; /* horizontal centering */
  padding: 1.5rem;
  background: color-mix(in srgb, var(--color-ink) 55%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Lock the page behind the modal — no background scroll. */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  /* Never exceed the viewport (overlay has 1.5rem padding each side). */
  max-height: calc(100vh - 3rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.6rem 2.4rem 2.4rem;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.32s var(--ease),
    opacity 0.32s var(--ease);

  /* Thin, on-brand scrollbar — Firefox. */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scrollbar-gutter: stable;
}
/* Thin, on-brand scrollbar — WebKit/Chromium/Safari. */
.modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-track {
  background: transparent;
}
.modal::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
  transition: background 0.2s var(--ease);
}
.modal:hover::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-muted) 55%, transparent);
}
.modal::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.modal-overlay.open .modal {
  transform: none;
  opacity: 1;
}
.modal-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 1.6rem;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.modal-close:hover {
  color: var(--accent);
}

/* ── Form ── */
.brief-form .field {
  margin-bottom: 1.1rem;
}
.brief-form label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.brief-form input,
.brief-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s var(--ease);
}
.brief-form textarea {
  resize: none;
  line-height: 1.55;
  display: block;
}
.field-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.1rem;
}
.field-hint {
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.4;
}
.char-count {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.char-count.is-limit {
  color: var(--color-error);
}

/* ── Custom field validation ── */
.field-error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.35;
  color: var(--color-error);
}
.field.has-error .field-error {
  display: flex;
  animation: fieldErrorIn 0.22s var(--ease);
}
/* Warning glyph before the message. */
.field.has-error .field-error::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: var(--color-error);
  -webkit-mask: var(--icon-warning) center / contain no-repeat;
  mask: var(--icon-warning) center / contain no-repeat;
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--color-error);
}
.field.has-error input:focus,
.field.has-error textarea:focus {
  outline: none;
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-error) 18%, transparent);
}
@keyframes fieldErrorIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brief-form input:focus,
.brief-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.modal-submit {
  width: 100%;
  margin-top: 0.4rem;
  border: none;
  cursor: pointer;
}
.modal-submit:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* Honeypot — visually hidden, off the tab order */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  display: block;
  font-size: 0.82rem;
  margin-top: 0.9rem;
  min-height: 1.1rem;
}
.form-status.is-success {
  color: var(--accent);
}
.form-status.is-error {
  color: var(--color-error);
}

/* ── File attachment ── */
/* The `hidden` attribute must win over the display:flex rules below,
   otherwise the chip/dropzone never toggle (and "remove" appears broken). */
.file-drop[hidden],
.file-chip[hidden] {
  display: none;
}
.label-optional {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-weight: 300;
}
/* Native input hidden — the styled <label for> drives it. */
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.4rem 1rem;
  cursor: pointer;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.file-drop:hover,
.file-input:focus-visible + .file-drop,
.file-drop.is-dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-alt));
}
.file-drop-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file-drop-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
}
.file-drop-text strong {
  font-weight: 500;
  color: var(--accent);
}
.file-drop-hint {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.file-chip-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file-chip-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.file-chip-name {
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-chip-size {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.file-chip-remove {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 0 0.2rem;
  transition: color 0.2s var(--ease);
}
.file-chip-remove:hover {
  color: var(--color-error);
}

/* ─────────────────────────────────────────────────────────────────────
   SCROLL REVEAL
   ───────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav {
    padding: 1.1rem 1.6rem;
  }

  /* Mobile nav panel */
  .nav-toggle {
    display: flex;
  }
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 1.6rem;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.35s var(--ease),
      padding 0.35s var(--ease);
  }
  nav.open ul {
    max-height: 320px;
    padding: 0.5rem 1.6rem 1.2rem;
  }
  nav ul li {
    border-bottom: 1px solid var(--border);
  }
  nav ul li:last-child {
    border-bottom: none;
  }
  nav ul a {
    display: block;
    padding: 1rem 0;
    font-size: 0.85rem;
  }
  nav ul a::after {
    display: none;
  }

  section {
    padding: 5rem 1.6rem;
  }
  #home {
    padding: 9rem 1.6rem 5rem;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-pillars {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.4rem;
    border-top: 1px solid var(--border);
  }
  .step {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.8rem 0;
  }
  .step:first-child,
  .step:last-child {
    padding: 1.8rem 0;
  }
  .step:last-child {
    border-bottom: none;
  }
  .eng-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .contact-right {
    border-left: none;
    border-top: 1px solid var(--color-border-dark);
    padding-left: 0;
    padding-top: 3rem;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .about-pillars {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 2.4rem;
  }
  .hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-scroll {
    animation: none;
  }
}
