/* =========================================================
   Futimis Systems — site styles
   Palette taken from the brand mark (#d44f27) and the existing
   site's warm near-black (#201a16).
   ========================================================= */

:root {
  --ink: #201a16;
  --ink-2: #29211c;
  --ink-3: #3a302a;
  --ember: #d44f27;
  --ember-hover: #e2602f;
  --ember-text: #ad3d18;          /* ember tuned for small text on light (AA) */
  --bone: #f2ede7;               /* primary text on dark */
  --bone-dim: #b9ada2;           /* secondary text on dark */
  --paper: #ffffff;
  --stone: #efebe6;              /* alternate light surface */
  --graphite: #4a423c;           /* body text on light */
  --slate: #7a6f66;              /* secondary text on light */
  --line: rgba(32, 26, 22, .12);
  --line-dark: rgba(242, 237, 231, .14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
  --fs-2xl: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);
  --fs-3xl: clamp(2.75rem, 1.2rem + 5.6vw, 6.25rem);

  --gutter: clamp(1.25rem, .6rem + 3vw, 3.5rem);
  --maxw: 1440px;
  --measure: 64ch;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* the angle of the panels in the Futimis mark */
  --slant: 18.8deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--ember); color: #fff; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ember); color: #fff; padding: .75rem 1rem; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Dark surfaces ---------- */
.dark { background: var(--ink); color: var(--bone-dim); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--bone); }
.stone { background: var(--stone); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  min-height: 52px; padding: .85rem 1.6rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-hover); }
.btn-ghost { border-color: rgba(242, 237, 231, .45); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(242, 237, 231, .08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); }
.btn svg { width: 16px; height: 16px; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; font-size: var(--fs-sm); text-decoration: none; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--ember);
}
.text-link svg { width: 16px; height: 16px; flex: none; }
.text-link:hover { color: var(--ember-text); }
.dark .text-link { color: var(--bone); }
.dark .text-link:hover { color: #fff; border-color: #fff; }

/* =========================================================
   Header & navigation
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--bone);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header::before { /* soft scrim for legibility over photography */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 16, 13, .55), rgba(20, 16, 13, 0));
  transition: opacity .35s var(--ease);
}
.site-header.is-solid { background: rgba(32, 26, 22, .97); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-solid::before { opacity: 0; }
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-solid { background: rgba(32, 26, 22, .88); backdrop-filter: saturate(140%) blur(14px); }
}
.header-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }

.main-nav { margin-left: auto; height: 100%; }
.main-nav > ul { list-style: none; display: flex; height: 100%; align-items: stretch; gap: .25rem; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem; height: 100%;
  padding: 0 .8rem; background: none; border: 0; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 450; letter-spacing: .005em;
  color: var(--bone); text-decoration: none; opacity: .86;
  transition: opacity .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"], .nav-link.is-current { opacity: 1; }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 22px; height: 2px; background: var(--ember);
}
.nav-link .chev { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% - 10px); left: 50%;
  min-width: 300px; padding: .75rem;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}
.has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.dropdown ul { list-style: none; }
.dropdown a {
  display: block; padding: .7rem .9rem; text-decoration: none; color: var(--bone);
  font-size: var(--fs-sm); line-height: 1.35;
}
.dropdown a span { display: block; color: var(--bone-dim); font-size: var(--fs-xs); margin-top: .15rem; }
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(242, 237, 231, .06); }
.dropdown a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--ember); }
.dropdown .dropdown-all { border-top: 1px solid var(--line-dark); margin-top: .5rem; padding-top: .5rem; }

.header-cta { flex: none; min-height: 44px; padding: .6rem 1.2rem; }

.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--bone); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  :root { --header-h: 72px; }
  .brand img { height: 40px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; height: auto;
    background: var(--ink); overflow-y: auto; padding: 1rem var(--gutter) 3rem;
    visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .main-nav { visibility: visible; opacity: 1; transition: opacity .25s var(--ease); }
  .main-nav > ul { flex-direction: column; height: auto; gap: 0; }
  .main-nav > ul > li { display: block; border-bottom: 1px solid var(--line-dark); }
  .nav-link { width: 100%; height: auto; padding: 1.1rem 0; font-size: 1.375rem; font-weight: 400; justify-content: space-between; opacity: 1; }
  .nav-link[aria-current="page"]::after, .nav-link.is-current::after { display: none; }
  .nav-link .chev { width: 14px; height: 14px; }
  .dropdown {
    position: static; transform: none; min-width: 0; padding: 0 0 1rem;
    background: none; border: 0; box-shadow: none; display: none;
    opacity: 1; visibility: visible;
  }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .dropdown a { padding: .6rem 0 .6rem 1rem; font-size: 1rem; }
  .dropdown a span { display: none; }
  .mobile-cta { display: flex !important; margin-top: 2rem; width: 100%; justify-content: center; }
  body.menu-open { overflow: hidden; }
  .menu-open .site-header { background: var(--ink); }
}
.mobile-cta { display: none !important; }

/* =========================================================
   Home hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--ink); color: var(--bone); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  animation: hero-settle 2.4s var(--ease) both;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(24, 19, 16, .92) 0%, rgba(24, 19, 16, .55) 38%, rgba(24, 19, 16, .08) 70%),
    linear-gradient(to right, rgba(24, 19, 16, .55), rgba(24, 19, 16, 0) 60%);
}
.hero-content { position: relative; width: 100%; padding-block: 0 clamp(2.5rem, 6vh, 5rem); }
.hero h1 {
  color: var(--bone); font-size: var(--fs-3xl); font-weight: 300;
  letter-spacing: -.045em; line-height: .98; max-width: 13ch;
  animation: rise 1.2s .25s var(--ease) both;
}
.hero-sub {
  max-width: 46ch; margin-top: 1.75rem; font-size: var(--fs-md); line-height: 1.55; color: rgba(242, 237, 231, .82);
  animation: rise 1.2s .45s var(--ease) both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; animation: rise 1.2s .6s var(--ease) both; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: clamp(2.5rem, 8vh, 5rem); padding-top: 1.25rem; border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs); color: var(--bone-dim);
  animation: fade 1.4s .9s var(--ease) both;
}
.hero-foot .sectors-inline { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.hero-foot .sectors-inline a { text-decoration: none; color: var(--bone); font-size: var(--fs-sm); }
.hero-foot .sectors-inline a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 6px; }

@keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Inner page hero
   ========================================================= */
.page-hero {
  position: relative; min-height: clamp(460px, 70vh, 760px);
  display: flex; align-items: flex-end; background: var(--ink); color: var(--bone); overflow: hidden;
}
.page-hero.is-short { min-height: clamp(380px, 52vh, 560px); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 19, 16, .9) 0%, rgba(24, 19, 16, .45) 45%, rgba(24, 19, 16, .15) 100%);
}
.page-hero-content { position: relative; width: 100%; padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 6vh, 4.5rem); }
.page-hero h1 { color: var(--bone); font-size: var(--fs-2xl); font-weight: 300; letter-spacing: -.04em; line-height: 1.02; max-width: 18ch; }
.page-hero .lede { margin-top: 1.25rem; max-width: 52ch; font-size: var(--fs-md); color: rgba(242, 237, 231, .82); line-height: 1.5; }
.page-hero.no-media { min-height: auto; }
.page-hero.no-media .page-hero-content { padding-top: calc(var(--header-h) + clamp(3rem, 10vh, 7rem)); }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; font-size: var(--fs-xs); color: var(--bone-dim); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--bone-dim); }
.crumbs a:hover { color: var(--bone); }

/* =========================================================
   Sections & typographic blocks
   ========================================================= */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.section-tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { font-size: var(--fs-xl); font-weight: 400; letter-spacing: -.03em; max-width: 22ch; }
.section-head p { max-width: 54ch; font-size: var(--fs-md); line-height: 1.55; color: var(--slate); }
.dark .section-head p { color: var(--bone-dim); }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head.split p { justify-self: end; }
}

.statement { display: grid; gap: 2.5rem; }
.statement h2 { font-size: var(--fs-xl); font-weight: 300; letter-spacing: -.03em; line-height: 1.18; color: var(--ink); max-width: 24ch; }
.statement .body { font-size: var(--fs-md); line-height: 1.6; max-width: 46ch; }
@media (min-width: 960px) {
  .statement { grid-template-columns: 7fr 5fr; gap: 6rem; align-items: start; }
  .statement .body { padding-top: .6rem; }
}

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-lg); font-weight: 500; margin: 2.5em 0 .75em; }
.prose h3 { font-size: var(--fs-md); font-weight: 600; margin: 2em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { list-style: none; margin: 0 0 1.25em; }
.prose li { position: relative; padding-left: 1.4em; margin-bottom: .55em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55em; height: 1.5px; background: var(--ember); }

/* ---------- Facts row ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: clamp(3rem, 5vw, 5rem); }
.fact { padding: 1.75rem 1.5rem 0 0; }
.fact dt { font-size: var(--fs-xl); font-weight: 300; letter-spacing: -.035em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.fact dd { margin: .75rem 0 0; font-size: var(--fs-sm); color: var(--slate); max-width: 22ch; line-height: 1.45; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact + .fact { padding-left: 1.75rem; border-left: 1px solid var(--line); }
}
@media (max-width: 899px) { .fact { padding-bottom: 1.5rem; } }

/* =========================================================
   Sector tiles (home + portfolio index)
   ========================================================= */
.sector-grid { display: grid; gap: clamp(.75rem, 1.2vw, 1.25rem); grid-template-columns: 1fr; }
.sector {
  position: relative; display: block; overflow: hidden; min-height: 360px;
  color: var(--bone); text-decoration: none; background: var(--ink-2);
}
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sector::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 19, 16, .88) 0%, rgba(24, 19, 16, .2) 55%, rgba(24, 19, 16, 0) 100%);
}
.sector-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.sector h3 { color: var(--bone); font-size: var(--fs-lg); font-weight: 500; }
.sector p { margin-top: .5rem; max-width: 40ch; font-size: var(--fs-sm); color: rgba(242, 237, 231, .78); line-height: 1.5; }
.sector .go {
  position: absolute; right: clamp(1.5rem, 2.5vw, 2.25rem); bottom: clamp(1.5rem, 2.5vw, 2.25rem);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(242, 237, 231, .4); transition: background-color .3s, border-color .3s;
}
.sector .go svg { width: 16px; height: 16px; }
.sector:hover img, .sector:focus-visible img { transform: scale(1.04); }
.sector:hover .go, .sector:focus-visible .go { background: var(--ember); border-color: var(--ember); }
.sector.is-mark { background: var(--ink-2); }
.sector.is-mark::after { background: linear-gradient(to top, rgba(24, 19, 16, .6), rgba(24, 19, 16, 0) 60%); }
.sector-mark { position: absolute; right: -6%; top: 50%; width: 62%; max-width: 420px; transform: translateY(-58%); transition: transform 1.2s var(--ease); }
.sector-mark polygon { fill: none; stroke: rgba(212, 79, 39, .7); stroke-width: .7; }
.sector.is-mark:hover .sector-mark { transform: translateY(-58%) scale(1.04); }
.sector-body { padding-right: calc(clamp(1.5rem, 2.5vw, 2.25rem) + 60px); }

@media (min-width: 900px) {
  .sector-grid { grid-template-columns: 7fr 5fr; grid-template-rows: repeat(3, minmax(250px, 30vh)); }
  .sector { min-height: 0; }
  .sector.is-lead { grid-row: span 3; }
  .sector-grid.is-four { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, minmax(340px, 46vh)); }
  .sector-grid.is-four .sector.is-lead { grid-row: auto; }
}

/* =========================================================
   Departures board — the airports Futimis has delivered in
   ========================================================= */
.board-section { background: var(--ink); color: var(--bone-dim); overflow: hidden; }
.board-intro { display: grid; gap: 2rem; margin-bottom: 3rem; }
.board-intro h2 { color: var(--bone); font-size: var(--fs-xl); font-weight: 400; letter-spacing: -.03em; max-width: 18ch; }
.board-intro p { max-width: 46ch; font-size: var(--fs-md); line-height: 1.55; }
@media (min-width: 960px) { .board-intro { grid-template-columns: 1fr 1fr; align-items: end; } .board-intro p { justify-self: end; } }

.board {
  background: #15110e; border: 1px solid rgba(242, 237, 231, .08);
  padding: clamp(1rem, 2vw, 1.75rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.board-head, .board-row {
  display: grid; grid-template-columns: 6.2em minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
}
.board-head {
  padding: 0 .25rem .9rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(242, 237, 231, .1);
  font-size: var(--fs-xs); color: #8f8378; letter-spacing: .02em;
}
.board-cols { display: grid; grid-template-columns: 1fr; column-gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 760px) { .board-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .board-cols { grid-template-columns: 1fr 1fr 1fr; } }
.board-cols .board-head:not(:first-child) { display: none; }
@media (min-width: 760px) { .board-cols .board-head:nth-child(2) { display: grid; } }
@media (min-width: 1200px) { .board-cols .board-head:nth-child(3) { display: grid; } }
.board-list { list-style: none; grid-column: 1 / -1; display: grid; grid-template-columns: inherit; column-gap: inherit; }
.board-row { padding: .45rem .25rem; border-bottom: 1px solid rgba(242, 237, 231, .05); }
.flap { display: inline-flex; gap: 3px; }
.flap b {
  position: relative; display: inline-grid; place-items: center;
  width: 1.55em; height: 1.95em; font-size: 1.05rem; font-weight: 600; color: #f6efe6;
  background: linear-gradient(#2b241f 0 49%, #231d19 51% 100%);
  border-radius: 3px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .5);
}
.flap b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.board-city { color: var(--bone); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-status { font-size: var(--fs-xs); color: #e9b49f; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.board-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px rgba(212, 79, 39, .18); }
.board-foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; margin-top: 2rem; }

/* =========================================================
   Services sequence (home)
   ========================================================= */
.sequence { list-style: none; border-top: 1px solid var(--line); counter-reset: step; }
.sequence li { border-bottom: 1px solid var(--line); }
.sequence a {
  position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1rem; align-items: baseline;
  padding: clamp(1.5rem, 2.4vw, 2.25rem) 0; text-decoration: none; color: var(--ink);
}
.sequence .num { font-size: var(--fs-sm); color: var(--slate); font-variant-numeric: tabular-nums; }
.sequence h3 { font-size: var(--fs-xl); font-weight: 300; letter-spacing: -.035em; transition: color .3s, transform .5s var(--ease); }
.sequence p { grid-column: 2; margin-top: .6rem; max-width: 52ch; color: var(--slate); font-size: var(--fs-sm); }
.sequence .arrow { display: none; }
.sequence-media { display: none; }
@media (min-width: 1000px) {
  .sequence-wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 5rem; align-items: start; }
  .sequence a { grid-template-columns: 4.5rem 1fr 2rem; }
  .sequence p { grid-column: 2; }
  .sequence .arrow { display: block; grid-column: 3; grid-row: 1; justify-self: end; width: 20px; height: 20px; color: var(--ember); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
  .sequence a:hover h3, .sequence a:focus-visible h3 { color: var(--ember-text); transform: translateX(6px); }
  .sequence a:hover .arrow, .sequence a:focus-visible .arrow { opacity: 1; transform: none; }
  .sequence-media { display: block; position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
  .sequence-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
  .sequence-media img.is-active { opacity: 1; }
  .sequence-media figcaption { position: absolute; left: 0; bottom: 0; padding: 1rem 1.25rem; font-size: var(--fs-xs); color: var(--bone); background: linear-gradient(to top, rgba(0,0,0,.6), transparent); right: 0; }
}

/* =========================================================
   Feature split (case study, about)
   ========================================================= */
.feature { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-media { position: relative; overflow: hidden; background: var(--stone); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature-body h2 { font-size: var(--fs-xl); font-weight: 400; letter-spacing: -.03em; margin-bottom: 1.25rem; max-width: 18ch; }
.feature-body .kicker { font-size: var(--fs-sm); color: var(--ember-text); font-weight: 500; margin-bottom: 1rem; }
.dark .feature-body .kicker { color: #ec8a63; }
.feature-body p { max-width: 50ch; }
.feature-body .text-link { margin-top: 1.5rem; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 7fr 5fr; }
  .feature.is-reversed { grid-template-columns: 5fr 7fr; }
  .feature.is-reversed .feature-media { order: 2; }
}

/* the slanted corner echoes the angle of the Futimis panels */
.cut { clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%, 0 calc(100% - 9% * .34)); }

/* ---------- Clients ---------- */
.clients { display: grid; gap: 2rem; align-items: center; padding-block: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients p { font-size: var(--fs-sm); color: var(--slate); max-width: 30ch; }
.client-names { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 3rem; }
.client-names li { font-size: var(--fs-lg); font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
@media (min-width: 900px) { .clients { grid-template-columns: 1fr 3fr; } }

/* ---------- Image strip ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30vw); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.strip a { scroll-snap-align: start; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip a:hover img { transform: scale(1.04); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--bone-dim); overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; gap: 2rem; padding-block: clamp(4.5rem, 8vw, 8rem); }
.cta-band h2 { color: var(--bone); font-size: var(--fs-2xl); font-weight: 300; letter-spacing: -.04em; max-width: 16ch; line-height: 1.04; }
.cta-band p { max-width: 44ch; font-size: var(--fs-md); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-mark { position: absolute; right: -4vw; top: 50%; width: min(46vw, 620px); transform: translateY(-50%); opacity: .9; pointer-events: none; }
.cta-mark polygon { fill: none; stroke: rgba(212, 79, 39, .55); stroke-width: .6; }
@media (min-width: 960px) { .cta-band .wrap { grid-template-columns: 1fr auto; align-items: end; } }
@media (max-width: 760px) { .cta-mark { opacity: .35; width: 90vw; right: -30vw; } }

/* =========================================================
   Service pages
   ========================================================= */
.service-layout { display: grid; gap: 3rem; }
.service-layout > * { min-width: 0; }
@media (min-width: 1040px) {
  .service-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 6rem; }
}
.side-nav { align-self: start; }
@media (min-width: 1040px) { .side-nav { position: sticky; top: calc(var(--header-h) + 2.5rem); } }
.side-nav h2 { font-size: var(--fs-xs); font-weight: 500; color: var(--slate); margin-bottom: 1rem; letter-spacing: .01em; }
.side-nav ul { list-style: none; border-left: 1px solid var(--line); }
.side-nav a { display: block; padding: .55rem 0 .55rem 1.1rem; margin-left: -1px; text-decoration: none; font-size: var(--fs-sm); color: var(--slate); border-left: 2px solid transparent; }
.side-nav a:hover { color: var(--ink); }
.side-nav a[aria-current="page"] { color: var(--ink); border-left-color: var(--ember); font-weight: 500; }
@media (max-width: 1039px) {
  .side-nav ul { display: flex; gap: .5rem; overflow-x: auto; border: 0; padding-bottom: .5rem; }
  .side-nav a { white-space: nowrap; border: 1px solid var(--line); padding: .55rem .9rem; margin: 0; }
  .side-nav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--bone); }
}

.service-intro h2 { font-size: var(--fs-xl); font-weight: 300; letter-spacing: -.03em; line-height: 1.15; max-width: 22ch; margin-bottom: 1.75rem; }
.service-intro p { font-size: var(--fs-md); line-height: 1.6; max-width: 58ch; }

.capabilities { display: grid; gap: 0; margin-top: clamp(3rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.capability { padding: 2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .75rem; }
.capability h3 { font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em; }
.capability p { max-width: 60ch; font-size: var(--fs-base); }
@media (min-width: 760px) { .capability { grid-template-columns: minmax(200px, 1fr) 2fr; gap: 2.5rem; } }

.steps { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; counter-reset: s; }
.steps li { background: var(--paper); padding: 2rem 1.75rem; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: var(--fs-sm); color: var(--ember-text); font-weight: 500; margin-bottom: 1.5rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--fs-md); font-weight: 600; margin-bottom: .6rem; }
.steps p { font-size: var(--fs-sm); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps.is-four { grid-template-columns: repeat(4, 1fr); } }

.checks { list-style: none; display: grid; gap: 0; margin-top: 1.5rem; }
.checks li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); color: var(--bone); }
.checks li:first-child { border-top: 1px solid var(--line-dark); }
.checks svg { width: 18px; height: 18px; color: var(--ember); margin-top: .25rem; }
.checks span small { display: block; color: var(--bone-dim); font-size: var(--fs-sm); margin-top: .2rem; }
@media (min-width: 900px) { .checks.two-col { grid-template-columns: 1fr 1fr; column-gap: 3rem; } .checks.two-col li:nth-child(2) { border-top: 1px solid var(--line-dark); } }

.why { display: grid; gap: 2.5rem; }
.why h2 { font-size: var(--fs-xl); font-weight: 400; letter-spacing: -.03em; max-width: 14ch; }
@media (min-width: 960px) { .why { grid-template-columns: 4fr 8fr; gap: 5rem; } }

.inline-media { margin-block: clamp(3rem, 5vw, 4.5rem); display: grid; gap: 1rem; }
.inline-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; background: var(--stone); }
@media (min-width: 760px) { .inline-media.two { grid-template-columns: 3fr 2fr; } .inline-media.two img:last-child { aspect-ratio: auto; } }

/* Service index cards */
.service-list { list-style: none; display: grid; gap: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 760px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .service-list { grid-template-columns: repeat(3, 1fr); } }
.service-card { display: block; text-decoration: none; color: inherit; }
.service-card .media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); margin-bottom: 1.5rem; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-card:hover img { transform: scale(1.04); }
.service-card h3 { font-size: var(--fs-lg); font-weight: 500; margin-bottom: .5rem; }
.service-card p { color: var(--slate); font-size: var(--fs-sm); max-width: 44ch; }
.service-card .text-link { margin-top: 1.1rem; }

/* =========================================================
   Galleries & lightbox
   ========================================================= */
.masonry { columns: 1; column-gap: clamp(.75rem, 1.2vw, 1.25rem); }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry figure { break-inside: avoid; margin: 0 0 clamp(.75rem, 1.2vw, 1.25rem); }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; }
.tile img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.tile:hover img { transform: scale(1.03); }
.tile-cap { display: block; padding-top: .65rem; font-size: var(--fs-xs); color: var(--slate); text-align: left; }
.dark .tile { background: var(--ink-2); }
.dark .tile-cap { color: var(--bone-dim); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters button {
  min-height: 42px; padding: .5rem 1.05rem; background: none; border: 1px solid var(--line); cursor: pointer;
  font-size: var(--fs-sm); color: var(--graphite); transition: all .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.filters .count { color: var(--slate); margin-left: .35rem; font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] .count { color: var(--bone-dim); }
.masonry figure[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(16, 13, 11, .97);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); color: var(--bone-dim); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(3.5rem, 7vw, 6rem); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100svh - 160px); width: auto; height: auto; object-fit: contain; }
.lb-cap { padding: 1rem var(--gutter) 1.5rem; text-align: center; color: var(--bone); font-size: var(--fs-sm); min-height: 3.5rem; }
.lb-btn { background: none; border: 1px solid rgba(242, 237, 231, .25); width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; color: var(--bone); transition: background .2s, border-color .2s; }
.lb-btn:hover { background: var(--ember); border-color: var(--ember); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); }
@media (max-width: 640px) { .lb-stage { padding: 0 .5rem; } .lb-prev, .lb-next { top: auto; bottom: -3.75rem; transform: none; } .lb-prev { left: var(--gutter); } .lb-next { right: var(--gutter); } }

/* ---------- Furniture product grid ---------- */
.products { list-style: none; display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product .tile { aspect-ratio: 4 / 5; background: #fff; border: 1px solid var(--line); }
.product .tile img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.product.is-photo .tile img { object-fit: cover; padding: 0; }
.product h3 { font-size: var(--fs-base); font-weight: 500; margin-top: .9rem; }
.product p { font-size: var(--fs-xs); color: var(--slate); margin-top: .2rem; }

.cat-grid { list-style: none; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; color: var(--bone); background: var(--ink-2); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat.is-product img { object-fit: contain; background: #fff; padding: 6% 6% 22%; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24, 19, 16, .85), rgba(24, 19, 16, 0) 55%); }
.cat .sector-body { z-index: 1; }
.cat h3 { color: var(--bone); font-size: var(--fs-lg); font-weight: 500; }
.cat p { color: rgba(242, 237, 231, .8); font-size: var(--fs-sm); margin-top: .35rem; }
.cat:hover img { transform: scale(1.04); }

/* ---------- Logos (stadium clients) ---------- */
.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
.logo-wall li { background: #fff; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 2rem 1.5rem 1.25rem; min-height: 220px; }
.logo-wall img { max-height: 110px; max-width: 70%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter .4s, opacity .4s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
.logo-wall span { font-size: var(--fs-xs); color: var(--slate); margin-top: 1rem; }

/* ---------- Case studies ---------- */
.case { padding-block: clamp(3.5rem, 6vw, 6rem); border-top: 1px solid var(--line); }
.case-index + .case { border-top: 0; padding-top: 0; }
.case .feature-media img { aspect-ratio: auto; max-height: 720px; object-fit: cover; }
.case .feature-media.is-contain { background: var(--stone); display: grid; place-items: center; padding: 6%; }
.case .feature-media.is-contain img { object-fit: contain; max-height: 620px; width: auto; }
.case-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tag { font-size: var(--fs-xs); border: 1px solid var(--line); padding: .3rem .65rem; color: var(--slate); }
.case-index { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.case-index a { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line); text-decoration: none; font-size: var(--fs-sm); }
.case-index a:hover { border-color: var(--ink); }

/* ---------- Community ---------- */
.events { list-style: none; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 760px) { .events { grid-template-columns: repeat(2, 1fr); } }
.event img { aspect-ratio: 870 / 230; width: 100%; object-fit: cover; background: var(--stone); }
.event h3 { font-size: var(--fs-md); font-weight: 600; margin: 1.25rem 0 .5rem; }
.event p { font-size: var(--fs-sm); color: var(--slate); }
.quote { font-size: var(--fs-xl); font-weight: 300; letter-spacing: -.03em; line-height: 1.25; color: var(--bone); max-width: 30ch; margin: 0; }
.quote-source { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--bone-dim); }
.portrait-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.portrait-row img { width: clamp(84px, 24vw, 120px); height: clamp(84px, 24vw, 120px); object-fit: cover; border-radius: 50%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-block { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.contact-block h3 { font-size: var(--fs-xs); font-weight: 500; color: var(--slate); margin-bottom: .6rem; letter-spacing: .01em; }
.contact-block p, .contact-block a { font-size: var(--fs-md); color: var(--ink); text-decoration: none; line-height: 1.5; }
.contact-block a:hover { color: var(--ember-text); text-decoration: underline; text-underline-offset: 4px; }
.contact-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: 0; }
.contact-dl dt { color: var(--slate); font-size: var(--fs-sm); padding-top: .2rem; }
.contact-dl dd { margin: 0; }
.map-frame { margin-top: 1.5rem; aspect-ratio: 4 / 3; width: 100%; border: 0; filter: grayscale(1) contrast(1.05); background: var(--stone); }

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); margin-bottom: .45rem; }
.field label .opt { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: #fff; border: 1px solid rgba(32, 26, 22, .22); border-radius: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23201a16' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 79, 39, .22); }
.field .error { display: none; color: #a32d0f; font-size: var(--fs-xs); margin-top: .4rem; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #a32d0f; }
.field.is-invalid .error { display: block; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: var(--fs-xs); color: var(--slate); }
.form-status { padding: 1rem 1.25rem; border-left: 3px solid var(--ember); background: var(--stone); color: var(--ink); }
.form-status[hidden] { display: none; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #17120f; color: var(--bone-dim); font-size: var(--fs-sm); }
.footer-top { display: grid; gap: 3rem; padding-block: clamp(4rem, 7vw, 6rem) 3rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 4fr 2fr 2fr 2fr 3fr; gap: 2.5rem; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-size: var(--fs-xs); font-weight: 500; color: var(--bone); margin-bottom: 1.1rem; letter-spacing: .01em; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: var(--bone-dim); text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.footer-contact address { font-style: normal; line-height: 1.7; }
.footer-contact a { color: var(--bone); }
.certs { display: flex; gap: 1rem; align-items: center; margin-top: 1.75rem; }
.certs img { height: 40px; width: auto; background: #fff; padding: 6px 10px; border-radius: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 1.75rem 2.25rem; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }

/* ---------- Reveal (single, quiet) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: left; }
.notfound h1 { color: var(--bone); font-size: var(--fs-3xl); font-weight: 300; letter-spacing: -.05em; }

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

@media print {
  .site-header, .site-footer, .cta-band, .lightbox { display: none !important; }
  .page-hero { min-height: 0; background: none; color: #000; }
  .page-hero-media { display: none; }
  .page-hero h1 { color: #000; }
}

@media (max-width: 559px) {
  .board-head, .board-row { grid-template-columns: 5.4em minmax(0, 1fr); gap: .9rem; }
  .board-head span:last-child, .board-status { display: none; }
  .flap b { width: 1.45em; height: 1.85em; font-size: 1rem; }
}
