:root {
  --ink: #15211e;
  --ink-soft: #24342f;
  --green: #536b48;
  --green-soft: #708166;
  --safety: #f2b705;
  --safety-deep: #dca500;
  --paper: #f3f5f1;
  --white: #ffffff;
  --border: rgba(21, 33, 30, 0.14);
  --shadow: 0 24px 70px rgba(21, 33, 30, 0.12);
  --shadow-soft: 0 14px 38px rgba(21, 33, 30, 0.09);
  --radius: 24px;
  --header-height: 94px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(242, 183, 5, 0.62);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 9px 13px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9000;
  min-height: var(--header-height);
  background: linear-gradient(180deg, rgba(12,22,19,.91) 0%, rgba(12,22,19,.55) 68%, rgba(12,22,19,0) 100%);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(15,25,22,.96);
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 35px rgba(0,0,0,.20);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1210px, calc(100% - 48px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-link img {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.24));
  transition: transform 180ms ease;
}
.brand-link:hover img { transform: translateY(-2px) scale(1.03); }
.desktop-nav { justify-self: end; }
.desktop-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.desktop-nav a {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 13px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 3px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--safety);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--safety); }
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.phone-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.phone-pill:hover { border-color: var(--safety); background: var(--safety); color: var(--ink); box-shadow: 0 10px 26px rgba(242,183,5,.24); transform: translateY(-1px); }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
}
.mobile-toggle span { width: 21px; height: 2px; border-radius: 99px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-panel {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 8990;
  display: grid;
  align-content: start;
  padding: 36px 24px;
  background: rgba(17,29,25,.985);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-panel nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-panel nav a {
  display: block;
  padding: 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.mobile-panel nav a[aria-current="page"] { color: var(--safety); }

/* Hero slideshow */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(510px, 61svh, 640px);
  overflow: hidden;
  padding: 126px 24px 44px;
  background: #25342f;
}
.hero.hero-home { min-height: clamp(670px, 80svh, 850px); }
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slides { z-index: -3; background: #26342f; }
.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; animation: hero-zoom 7s linear both; }
.hero-overlay {
  z-index: -2;
  background: linear-gradient(120deg, rgba(7,18,15,.84) 0%, rgba(16,30,25,.58) 48%, rgba(8,13,12,.49) 100%);
}
@keyframes hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.10); } }
.hero-card {
  width: min(1120px, 100%);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(10,22,18,.43), rgba(10,22,18,.23));
  box-shadow: 0 28px 80px rgba(0,0,0,.18);
  color: #fff;
  text-align: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 4px 22px rgba(0,0,0,.22);
}
.hero:not(.hero-home) .hero-card h1 { font-size: clamp(38px, 4vw, 58px); }
.hero-card .hero-subtitle {
  max-width: 980px;
  margin: 24px auto 0;
  padding-top: 22px;
  border-top: 3px solid var(--safety);
  color: rgba(255,255,255,.95);
  font-size: clamp(21px, 2.2vw, 32px);
  font-weight: 430;
  line-height: 1.32;
  letter-spacing: -.018em;
  text-wrap: balance;
  white-space: pre-line;
}

/* Main content */
.content-section {
  position: relative;
  padding: 88px 28px;
  background: radial-gradient(circle at 9% 12%, rgba(83,107,72,.08), transparent 28%), linear-gradient(180deg, #f5f7f3 0%, #eef2ec 100%);
}
.content-wrap { width: min(1120px, 100%); margin: 0 auto; }
.editorial-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-soft);
}
.editorial-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--safety), var(--green));
}
.editorial-card p { margin: 0; color: #5f7058; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.85; text-align: center; }
.editorial-card p + p { margin-top: 12px; }

/* Work cards */
.intro-card { margin-bottom: 34px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.work-card {
  position: relative;
  overflow: hidden;
  padding: 38px 32px 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,242,.96));
  box-shadow: var(--shadow-soft);
}
.work-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--safety), var(--green)); }
.work-card h2 { margin: 0 0 26px; color: var(--green); font-size: 30px; line-height: 1.18; }
.work-card p { margin: 0; color: #63715f; line-height: 1.72; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 24px; align-items: start; }
.contact-card, .form-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-soft);
}
.section-title { margin: 0 0 28px; color: var(--green); font-size: clamp(30px, 3vw, 42px); line-height: 1.15; text-align: center; }
.contact-items { display: grid; gap: 14px; }
.contact-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(83,107,72,.19);
  border-radius: 15px;
  background: #f7f9f6;
  color: var(--ink-soft);
  text-align: center;
  text-decoration: none;
}
.contact-item:hover { border-color: var(--safety-deep); background: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(21,33,30,.08); }
.contact-label { display: block; margin-bottom: 2px; color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.map-frame { margin-top: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 14px 34px rgba(21,33,30,.10); }
.map-frame iframe { display: block; width: 100%; min-height: 360px; border: 0; }

.contact-form { position: relative; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: var(--green); font-size: 13px; font-weight: 800; }
.required { color: #b54a36; }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(83,107,72,.25);
  border-radius: 12px;
  background: #f8faf7;
  color: var(--ink);
  box-shadow: none;
  transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}
.field textarea { min-height: 155px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(83,107,72,.10); outline: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b54a36; box-shadow: 0 0 0 4px rgba(181,74,54,.09); }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.form-status { margin: 2px 0 18px; padding: 13px 15px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.form-status[hidden] { display: none; }
.form-status.is-success { border-color: rgba(48,122,72,.28); background: rgba(48,122,72,.10); color: #225f37; }
.form-status.is-error { border-color: rgba(181,74,54,.30); background: rgba(181,74,54,.10); color: #7c2d20; }
.submit-row { display: flex; align-items: center; gap: 12px; }
.submit-button {
  min-height: 50px;
  padding: 12px 25px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .025em;
  box-shadow: 0 12px 28px rgba(83,107,72,.22);
}
.submit-button:hover { border-color: var(--safety-deep); background: var(--safety); color: var(--ink); transform: translateY(-2px); }
.submit-button:disabled { cursor: wait; opacity: .75; transform: none; }
.form-spinner { width: 24px; height: 24px; border: 3px solid rgba(83,107,72,.20); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.form-spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Articles opened from the Kuaby menu */
.article-shell { width: min(960px, calc(100% - 36px)); margin: 0 auto; padding: 150px 0 76px; }
.article-box { overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.article-heading { padding: clamp(30px,5vw,54px); background: linear-gradient(145deg,#16261f,#263b31); color: #fff; }
.article-heading h1 { margin: 0; color: #fff; font-size: clamp(34px,5vw,56px); line-height: 1.12; letter-spacing: -.03em; }
.article-meta { margin-top: 16px; color: rgba(255,255,255,.72); font-size: 14px; }
.article-image { background: #e7ebe5; }
.article-image img { width: 100%; max-height: 520px; object-fit: cover; }
.article-content { padding: clamp(30px,5vw,56px); color: #465544; }
.article-content h2, .article-content h3 { color: var(--green); line-height: 1.25; }
.article-content h2 { margin: 1.7em 0 .6em; font-size: 30px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 1.5em 0 .5em; font-size: 23px; }
.article-content p, .article-content ul { margin: 0 0 1em; }
.article-content a { color: #2d6040; font-weight: 700; }

/* Footer */
.contact-strip { padding: 34px 28px; background: linear-gradient(90deg,rgba(242,183,5,.08),transparent 35%), var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
.contact-strip-inner { width: min(1180px,100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.contact-strip a { color: #fff; font-size: clamp(17px,1.45vw,21px); font-weight: 700; text-decoration: none; }
.contact-strip a:first-child { justify-self: start; }
.contact-strip a:last-child { justify-self: end; }
.contact-strip a:hover { color: var(--safety); }
.footer-logo { width: 64px; height: 64px; opacity: .78; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.site-footer { padding: 26px 20px; background: #111c18; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.72); text-align: center; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.65; }
.site-footer a { color: var(--safety); font-weight: 750; text-decoration: none; }
.credit-footer { padding: 10px 16px; background: #0b1310; border-top: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.54); font-size: 10px; line-height: 1.5; text-align: center; }
.credit-footer a { color: rgba(242,183,5,.92); text-decoration: none; }

/* Cookie notice */
.cookie-notice {
  position: fixed;
  z-index: 9500;
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100% - 36px));
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(17,29,25,.97);
  color: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,.30);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.cookie-notice.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-notice p { margin: 0; font-size: 13px; line-height: 1.55; }
.cookie-button { min-width: 58px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--safety); color: var(--ink); font-weight: 800; }

/* Coordinate the external Kuaby menu with the site palette. */
#kuaby-editoriale-root {
  --kuaby-panel-bg: #17251f !important;
  --kuaby-panel-text: #ffffff !important;
  --kuaby-panel-muted: #dfe8e2 !important;
  --kuaby-card-bg: #263a31 !important;
  --kuaby-card-text: #ffffff !important;
  --kuaby-card-border: rgba(255,255,255,.14) !important;
  --kuaby-index-bg: #f2b705 !important;
  --kuaby-index-text: #15211e !important;
  --kuaby-close-bg: #ffffff !important;
  --kuaby-close-text: #15211e !important;
  --kuaby-toggle-bg: #f2b705 !important;
  --kuaby-toggle-text: #15211e !important;
  --kuaby-toggle-blend: normal !important;
}
#kuaby-editoriale-root .kuaby-editoriale-toggle { border: 1px solid rgba(21,33,30,.18) !important; border-radius: 999px !important; box-shadow: 0 12px 32px rgba(0,0,0,.24) !important; }

@media (max-width: 980px) {
  :root { --header-height: 88px; }
  .header-inner { width: calc(100% - 30px); grid-template-columns: auto auto 1fr; gap: 12px; }
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; justify-self: center; }
  .phone-pill { justify-self: end; padding: 8px 11px; font-size: 12px; }
  .brand-link img { width: 54px; height: 54px; }
  .hero { min-height: max(470px,61svh); padding: 112px 15px 32px; }
  .hero.hero-home { min-height: max(600px,76svh); }
  .hero-card { padding: 28px 22px; border-radius: 22px; }
  .hero-card h1, .hero:not(.hero-home) .hero-card h1 { font-size: clamp(31px,9vw,45px); }
  .hero-card .hero-subtitle { margin-top: 18px; padding-top: 18px; font-size: clamp(18px,5.7vw,26px); }
  .content-section { padding: 58px 18px; }
  .work-grid, .contact-layout { grid-template-columns: 1fr; }
  .work-card { padding: 34px 25px 30px; }
  .contact-strip-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .contact-strip a:first-child, .contact-strip a:last-child { justify-self: center; }
}
@media (max-width: 560px) {
  :root { --header-height: 82px; }
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .brand-link img { width: 48px; height: 48px; }
  .mobile-toggle { width: 40px; height: 40px; }
  .phone-pill { padding: 8px 9px; font-size: 11px; }
  .hero-slide { background-position: 58% center; }
  .hero { min-height: 500px; padding: 102px 12px 26px; }
  .hero.hero-home { min-height: 650px; }
  .hero-card { padding: 25px 17px; border-radius: 18px; }
  .hero-card h1, .hero:not(.hero-home) .hero-card h1 { font-size: clamp(29px,8.6vw,39px); line-height: 1.12; }
  .hero-card .hero-subtitle { font-size: clamp(17px,5.25vw,23px); line-height: 1.38; }
  .content-section { padding: 48px 14px; }
  .editorial-card, .contact-card, .form-card { padding: 28px 22px; border-radius: 20px; }
  .editorial-card p { font-size: 15px; line-height: 1.72; }
  .work-card h2 { font-size: 27px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .map-frame iframe { min-height: 280px; }
  .cookie-notice { grid-template-columns: 1fr; }
  .cookie-button { justify-self: start; }
  .article-shell { padding-top: 116px; }
  .article-content h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-slide.is-active { animation: none; transform: scale(1.04); }
}
