/* ==========================================================================
   iNewvation — site styles
   Two-pillar brand (aviation + drones), bilingual PT/EN.
   ========================================================================== */

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a1220;
  --ink-soft: #16202f;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --line: #e0e6ee;
  --muted: #59636f;
  --aviation: #1668a8;
  --agri: #3c8b4a;
  --accent: var(--aviation);
  --font-display: "Raleway", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgb(10 18 32 / 35%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

section[id],
main[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - 3rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 8px 8px;
}

.skip:focus {
  top: 0;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--paper);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(6 12 22 / 55%), transparent);
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.scroll-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aviation), var(--agri));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled .scroll-progress {
  opacity: 1;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-name sup {
  font-size: 0.5em;
  vertical-align: super;
  letter-spacing: 0;
}

.brand-sep {
  width: 1px;
  height: 20px;
  background: currentColor;
  opacity: 0.35;
}

.brand-sub {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav ul {
  display: flex;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.nav ul a {
  position: relative;
  padding-block: 0.35rem;
}

.nav ul a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav ul a:hover::after,
.nav ul a:focus-visible::after,
.nav ul a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav ul a[aria-current="true"] {
  opacity: 1;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.lang a,
.lang span {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.lang .is-current {
  background: var(--paper);
  color: var(--ink);
}

.site-header.is-scrolled .lang .is-current {
  background: var(--ink);
  color: var(--paper);
}

.lang a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92svh, 820px);
  padding-block: 8rem 4.5rem;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.08);
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  animation: hero-zoom 18s var(--ease) both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(6 12 22 / 92%) 0%, rgb(6 12 22 / 45%) 45%, rgb(6 12 22 / 20%) 100%),
    linear-gradient(to right, rgb(6 12 22 / 72%), rgb(6 12 22 / 18%) 70%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.eyebrow,
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  opacity: 0.9;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: rgb(255 255 255 / 88%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn::after {
  content: "→";
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--paper);
  color: var(--ink);
}

.btn--solid:hover {
  background: var(--accent);
  color: var(--paper);
}

.btn--ghost {
  border-color: rgb(255 255 255 / 45%);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: rgb(255 255 255 / 10%);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--accent);
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 14px;
}

.hero-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--paper);
  animation: cue 1.9s var(--ease) infinite;
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------------------------------------------------------- quote band -- */

.quote-band {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--soft);
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.quote-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.9);
}

.quote-band blockquote {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  font-weight: 300;
  line-height: 1.45;
  text-wrap: pretty;
}

.quote-band blockquote::before {
  content: "“";
  display: block;
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--accent);
}

.quote-band figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: baseline;
  margin-top: 1.6rem;
  font-size: 0.9rem;
}

.quote-band figcaption strong {
  font-weight: 700;
}

.quote-band figcaption span {
  color: var(--muted);
}

/* -------------------------------------------------------------- pillars -- */

.pillar {
  --accent-text: #0f5488;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.pillar + .pillar {
  border-top: 1px solid var(--line);
}

.pillar--alt {
  --accent: var(--agri);
  --accent-text: #2f7039;
  background: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.section-head--stack {
  grid-template-columns: minmax(0, 1fr);
}

.section-id {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.section-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.9;
}

.section-head .kicker {
  color: var(--accent-text, var(--accent));
}

.section-head h2 {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-head .lead {
  max-width: 46rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cards--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media {
  transform: scale(1.035);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.4rem 1.5rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* -------------------------------------------------------- drone gallery -- */

.pillar--alt .gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(2.2rem, 4vw, 3rem);
}

.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.4rem 1rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(to top, rgb(6 12 22 / 80%), transparent);
}

.pull-quote {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 52rem;
}

/* --------------------------------------------------------------- work -- */

.work {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.work-grid figure {
  display: grid;
  gap: 0;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.work-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-grid figure:hover img {
  transform: scale(1.04);
}

.work-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.work-media::after {
  content: "⤢";
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(10 18 32 / 74%);
  color: var(--paper);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.work-media:hover::after,
.work-media:focus-visible::after {
  opacity: 1;
  transform: none;
}

.work-grid figure.is-document img {
  object-fit: contain;
  padding: 0.75rem;
  background: var(--soft);
}

.work-grid figcaption {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem 1rem;
}

.work-grid strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}

.work-grid span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ----------------------------------------------------------- principles -- */

.principles {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--ink);
  color: var(--paper);
}

.principles .kicker {
  color: rgb(255 255 255 / 60%);
}

.principles h2 {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 300;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.principles-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.3rem;
  align-items: start;
  padding: 1.6rem 1.4rem 1.7rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.principles-grid .principle-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-top: 0.1rem;
  margin-bottom: 0;
}

.principles-grid h3,
.principles-grid p {
  grid-column: 2;
}

.principles-grid li:nth-child(3n + 2),
.principles-grid li:nth-child(3n) {
  padding-left: 1.4rem;
  border-left: 1px solid rgb(255 255 255 / 14%);
}

.principles-grid h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.principle-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 0.9rem;
  color: #8fc0e4;
}

.principles-grid p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 68%);
}

/* ---------------------------------------------------------------- team -- */

.team {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.member {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.member:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.avatar {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: var(--soft);
}

.avatar--text {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.member .avatar {
  color: var(--paper);
}

.member strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.member span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.hiring {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.5rem 1.6rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.hiring h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.hiring p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ------------------------------------------------------------- contact -- */

.contact {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact h2 {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.015em;
}

.contact .lead {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

.contact-details li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-icon {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--aviation);
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details address {
  margin-top: 0.35rem;
  font-style: normal;
}

.contact-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.contact-link:hover {
  border-color: var(--accent);
}

.contact-map {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.contact-map::after {
  content: "↗";
  transition: transform 0.2s var(--ease);
}

.contact-map:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.contact-map:hover::after {
  transform: translate(2px, -2px);
}

.contact-departments {
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.departments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.departments a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.departments a:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.form-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field .req {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  background: var(--paper);
  border-color: var(--accent);
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.consent input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--agri);
}

.form-status:empty {
  display: none;
}

/* -------------------------------------------------------------- footer -- */

.site-footer {
  padding-block: 2.6rem;
  background: var(--ink);
  color: rgb(255 255 255 / 70%);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer strong {
  color: var(--paper);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-footer a {
  color: rgb(255 255 255 / 85%);
}

/* ------------------------------------------------------------- reveals -- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--accent);
}

.lightbox {
  width: fit-content;
  max-width: min(1100px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(6 12 22 / 90%);
  backdrop-filter: blur(6px);
}

.lightbox figure {
  margin: 0;
  text-align: center;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 80%);
}

.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
  justify-content: center;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.lightbox figcaption span {
  color: rgb(255 255 255 / 62%);
}

.lightbox-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 50%;
  background: rgb(10 18 32 / 70%);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox-button:hover {
  background: rgb(10 18 32 / 92%);
  border-color: rgb(255 255 255 / 70%);
}

.lightbox-close {
  top: 10px;
  right: 10px;
  z-index: 2;
}

.lightbox-prev {
  top: 50%;
  left: 10px;
  z-index: 2;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 10px;
  z-index: 2;
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media {
    transform: none;
  }
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1024px) {
  .cards,
  .cards--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid,
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles-grid li:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }

  .principles-grid li:nth-child(even) {
    padding-left: 1.4rem;
    border-left: 1px solid rgb(255 255 255 / 14%);
  }
}

@media (max-width: 1030px) {
  .nav {
    position: absolute;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.4rem 1.5rem 1.8rem;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.9rem;
  }

  .nav-toggle {
    display: block;
  }

  .quote-grid,
  .section-head,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-media {
    max-width: 220px;
  }

  .section-num {
    font-size: 2.6rem;
  }

  .pillar--alt .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar--alt .gallery figure:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(var(--wrap), 100% - 2rem);
  }

  .brand-sub,
  .brand-sep {
    display: none;
  }

  .hero {
    min-height: 88svh;
    padding-block: 7rem 3.5rem;
  }

  .hero-cue {
    display: none;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    z-index: 2;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-button {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }


  .cards,
  .cards--four,
  .team-grid,
  .principles-grid,
  .work-grid,
  .pillar--alt .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar--alt .gallery figure:first-child {
    grid-column: auto;
  }

  .principles-grid li:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .nav-toggle,
  .form-card {
    display: none;
  }

  body {
    color: #000;
  }
}
