/* ===== Tokens ===== */
:root {
  /* Brand — sampled from the logo (KINISI steel blue · OSTÓ green) */
  --brand: #34618a;        /* steel blue */
  --brand-dark: #234a6c;
  --brand-deep: #13314a;   /* deep petrol navy for rich gradients */
  --brand-tint: #e8f0f7;   /* pale blue wash */
  --brand-2: #57a268;      /* fresh green */
  --green-dark: #3e8050;
  --green-tint: #e8f4ec;   /* pale green wash */
  --accent: #57a268;

  /* Neutrals — soft, faintly cool clinical palette */
  --bg: #ffffff;
  --bg-soft: #eef4f4;      /* blue-green mist */
  --bg-tint: #f4f9f8;
  --paper: #fbfdfc;
  --ink: #16303d;
  --ink-soft: #4d606c;
  --ink-faint: #80909a;

  --line: rgba(20, 49, 63, 0.09);
  --line-strong: rgba(20, 49, 63, 0.15);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #234a6c 0%, #34618a 50%, #57a268 122%);
  --grad-brand-soft: linear-gradient(135deg, #34618a, #57a268);
  --grad-deep: linear-gradient(135deg, #11304a 0%, #21496c 46%, #3f8050 116%);

  /* Shadows — layered, soft, premium */
  --shadow-sm: 0 4px 16px -8px rgba(20, 49, 63, 0.26);
  --shadow: 0 18px 44px -22px rgba(20, 49, 63, 0.32), 0 6px 16px -12px rgba(20, 49, 63, 0.16);
  --shadow-lg: 0 44px 90px -36px rgba(20, 49, 63, 0.42), 0 12px 30px -18px rgba(20, 49, 63, 0.18);
  --shadow-brand: 0 20px 40px -18px rgba(52, 97, 138, 0.5);
  --shadow-green: 0 20px 40px -18px rgba(87, 162, 104, 0.42);

  --radius: 18px;
  --radius-sm: 13px;
  --radius-lg: 30px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-feature-settings: "cv05", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--ink);
}
em {
  font-style: italic;
  background: var(--grad-brand-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
a { color: inherit; text-decoration: none; }

::selection { background: rgba(87, 162, 104, 0.24); color: var(--brand-deep); }

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

/* Custom scrollbar (cosmetic, non-essential) */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: rgba(52,97,138,0.35) transparent; }
  *::-webkit-scrollbar { width: 11px; height: 11px; }
  *::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--brand), var(--brand-2));
    border-radius: 100px; border: 3px solid var(--bg);
  }
  *::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--brand-dark), var(--green-dark)); }
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Reusable brand eyebrow with spine-dot marker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  text-transform: uppercase; letter-spacing: 0.19em; font-size: 0.74rem; font-weight: 700;
  color: var(--green-dark); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 8px; border-radius: 8px;
  background:
    radial-gradient(circle at 4px 4px, var(--brand) 2px, transparent 2.4px),
    radial-gradient(circle at 13px 4px, var(--brand-2) 2px, transparent 2.4px),
    radial-gradient(circle at 22px 4px, var(--green-dark) 2px, transparent 2.4px);
}

/* ===== Buttons ===== */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; font-weight: 600; font-size: 0.95rem;
  padding: 15px 30px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-brand-soft); color: #fff; box-shadow: var(--shadow-brand); }
/* soft sheen overlay */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover { box-shadow: 0 26px 50px -18px rgba(52, 97, 138, 0.62); }
.btn-primary:hover::after { opacity: 1; }
.btn-ghost { color: var(--brand-dark); border-color: var(--line-strong); background: rgba(255,255,255,0.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.btn-pill { background: var(--grad-brand-soft); color: #fff; padding: 12px 24px; box-shadow: var(--shadow-brand); }
.btn-pill:hover { box-shadow: 0 22px 40px -16px rgba(52, 97, 138, 0.6); }
.btn-full { width: 100%; }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-brand-soft);
  z-index: 1000; transition: width .1s linear;
}

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px; transition: padding .4s var(--ease), background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  padding: 11px 36px; background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 var(--line), 0 14px 34px -24px rgba(20,49,63,0.5);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 48px; width: auto; display: block; transition: height .35s var(--ease); }
.nav.scrolled .brand-logo { height: 38px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; position: relative; white-space: nowrap; transition: color .3s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--grad-brand-soft); border-radius: 2px; transition: width .35s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--brand); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .35s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; display: flex; align-items: center;
  padding: 176px 24px 104px; overflow: hidden;
  background:
    radial-gradient(58% 60% at 84% -6%, rgba(87,162,104,0.20), transparent 62%),
    radial-gradient(56% 66% at -6% 110%, rgba(52,97,138,0.20), transparent 60%),
    radial-gradient(46% 50% at 50% -4%, rgba(52,97,138,0.06), transparent 70%),
    var(--paper);
}
/* slow drifting aurora blobs */
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -14vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(87,162,104,0.22), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(52,97,138,0.20), transparent 62%);
  filter: blur(20px);
  animation: heroFloat 16s var(--ease) infinite alternate;
}
@keyframes heroFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-40px,30px,0) scale(1.08); }
}
/* faint dotted "spine" texture */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(52,97,138,0.06) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 75%);
}
/* floating soft orbs for depth */
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orbs span { position: absolute; border-radius: 50%; filter: blur(46px); }
.hero-orbs span:nth-child(1) {
  width: 340px; height: 340px; left: -90px; top: 32%;
  background: radial-gradient(circle, rgba(52,97,138,0.22), transparent 70%);
  animation: orbFloat 19s var(--ease) infinite alternate;
}
.hero-orbs span:nth-child(2) {
  width: 280px; height: 280px; right: 6%; bottom: -60px;
  background: radial-gradient(circle, rgba(87,162,104,0.22), transparent 70%);
  animation: orbFloat 23s var(--ease) infinite alternate-reverse;
}
.hero-orbs span:nth-child(3) {
  width: 200px; height: 200px; left: 44%; top: -40px;
  background: radial-gradient(circle, rgba(87,162,104,0.16), transparent 70%);
  animation: orbFloat 27s var(--ease) infinite alternate;
}
@keyframes orbFloat {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(34px,-28px,0); }
}

/* decorative vertebrae "spine" — the brand signature */
.hero-spine {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 78%; width: auto; opacity: 0.5;
  animation: spineDrift 9s ease-in-out infinite alternate;
}
@keyframes spineDrift {
  from { transform: translate(-50%, -50%) rotate(-1.5deg); }
  to   { transform: translate(-50%, calc(-50% - 10px)) rotate(1.5deg); }
}

.hero-inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-title { font-size: clamp(2.7rem, 5.8vw, 4.6rem); margin-bottom: 24px; font-weight: 500; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); margin-bottom: 38px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }

.hero-media { position: relative; }
/* rotating conic halo behind the photo */
.hero-glow {
  position: absolute; inset: -26px; z-index: 0; border-radius: calc(var(--radius-lg) + 20px);
  background: conic-gradient(from 0deg,
    rgba(52,97,138,0) 0%, rgba(87,162,104,0.40) 22%, rgba(52,97,138,0.42) 48%,
    rgba(87,162,104,0.36) 70%, rgba(52,97,138,0) 100%);
  filter: blur(28px); opacity: 0.75;
  animation: haloSpin 20s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(1turn); } }
/* sede chip */
.hero-chip {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8); border-radius: 100px;
  padding: 8px 15px 8px 12px; box-shadow: var(--shadow);
  font-size: 0.78rem; font-weight: 600; color: var(--brand-dark); letter-spacing: 0.01em;
}
.hero-chip svg { width: 15px; height: 15px; color: var(--brand-2); flex: 0 0 auto; }
.hero-media img {
  width: 100%; height: 100%; max-height: 568px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block;
  position: relative; z-index: 1;
}
/* layered offset frame echoing the logo arcs */
.hero-media::before {
  content: ""; position: absolute; left: -20px; top: -20px; width: 66%; height: 62%;
  background: var(--grad-brand-soft); opacity: 0.16; border-radius: var(--radius-lg); z-index: 0;
}
.hero-media::after {
  content: ""; position: absolute; right: -16px; bottom: -16px; width: 60%; height: 60%;
  border: 2px solid var(--brand-2); border-radius: var(--radius-lg); z-index: 0; opacity: 0.5;
}

.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.hero-stats strong { font-family: "Fraunces", serif; font-size: 2.4rem; font-weight: 600; color: var(--brand); display: block; }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-highlights { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-highlights > div {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.66); border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-sm); padding: 17px 21px; min-width: 140px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.hero-highlights > div:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255,255,255,0.9); }
.hero-highlights .hl-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: var(--grad-brand-soft); margin-bottom: 8px;
  box-shadow: var(--shadow-brand);
}
.hero-highlights .hl-icon svg { width: 20px; height: 20px; display: block; }
.hero-highlights strong { font-family: "Fraunces", serif; font-size: 1.12rem; color: var(--brand-dark); }
.hero-highlights span:last-child { font-size: 0.8rem; color: var(--ink-soft); }

/* ===== Hero floating badge ===== */
.hero-badge {
  position: absolute; left: -18px; bottom: 30px; z-index: 2;
  display: flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.8); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); max-width: 290px;
  backdrop-filter: blur(12px);
}
.hb-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--grad-brand-soft);
  box-shadow: var(--shadow-green);
}
.hb-icon svg { width: 20px; height: 20px; }
.hb-text { display: flex; flex-direction: column; line-height: 1.28; }
.hb-text strong { font-size: 0.9rem; color: var(--ink); }
.hb-text span { font-size: 0.77rem; color: var(--ink-soft); }

/* ===== Stats band ===== */
.stats-band {
  position: relative; overflow: hidden;
  background: var(--grad-deep); color: #fff; padding: 60px 24px;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.4px, transparent 1.4px);
  background-size: 24px 24px; opacity: 0.6;
}
.stats-grid { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { position: relative; display: flex; flex-direction: column; gap: 6px; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 50px; background: rgba(255,255,255,0.18);
}
.stat strong {
  font-family: "Fraunces", serif; font-size: clamp(2.3rem, 4vw, 3.1rem); font-weight: 600; line-height: 1;
  background: linear-gradient(180deg, #ffffff, #c2e4c8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 0.86rem; opacity: 0.86; }

/* ===== Sections ===== */
.section { padding: 120px 0; }
.section-head { max-width: 680px; margin: 0 auto 66px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2, .method-text h2, .contact-info h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin: 6px 0 18px; }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-4 .card { padding: 34px 28px; }
.card {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--grad-brand-soft); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
/* soft brand glow rising on hover */
.card::after {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 70%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(87,162,104,0.12), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card-icon {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  color: var(--brand); background: var(--brand-tint); margin-bottom: 22px;
  transition: color .4s, background .4s, transform .4s var(--ease), box-shadow .4s;
}
.card:hover .card-icon { color: #fff; background: var(--grad-brand-soft); transform: scale(1.06) rotate(-3deg); box-shadow: var(--shadow-brand); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.42rem; margin-bottom: 10px; position: relative; z-index: 1; }
.card p { color: var(--ink-soft); font-size: 0.99rem; position: relative; z-index: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 0.9rem;
  color: var(--brand); transition: gap .3s var(--ease), color .3s; position: relative; z-index: 1;
}
.card-link:hover { color: var(--green-dark); gap: 11px; }

.section-cta { text-align: center; margin-top: 56px; }

/* ===== Method / Chi siamo ===== */
.method { position: relative; background: var(--bg-soft); overflow: hidden; }
.method::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(87,162,104,0.16), transparent 70%); border-radius: 50%;
}
.method::after {
  content: ""; position: absolute; bottom: -140px; left: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(52,97,138,0.14), transparent 70%); border-radius: 50%;
}
.method-grid { position: relative; display: grid; grid-template-columns: 1fr 0.9fr; gap: 66px; align-items: center; }
.steps { list-style: none; margin-top: 38px; display: grid; gap: 26px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 19px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--brand), var(--brand-2)); opacity: 0.3;
}
.steps li { display: flex; gap: 22px; align-items: flex-start; position: relative; }
.step-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  font-family: "Fraunces", serif; font-size: 1rem; font-weight: 600; color: #fff;
  background: var(--grad-brand-soft); box-shadow: 0 8px 18px -8px rgba(52,97,138,0.6);
}
.steps h4 { font-size: 1.2rem; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 0.99rem; }

.method-visual { display: grid; place-items: center; }

/* ===== Director card (Chi siamo) — real photo ===== */
.director-card {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 0; text-align: center; box-shadow: var(--shadow); max-width: 380px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.director-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.director-photo { position: relative; width: 100%; aspect-ratio: 4 / 3.4; overflow: hidden; }
.director-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; transition: transform .6s var(--ease); }
.director-card:hover .director-photo img { transform: scale(1.04); }
.director-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19,49,74,0.34), transparent 45%);
}
.director-body { padding: 26px 30px 34px; }
.director-card h3 { font-size: 1.42rem; margin-bottom: 4px; }
.director-card .role {
  display: inline-block; color: var(--green-dark); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em; margin-bottom: 14px;
}
.director-bio { color: var(--ink-soft); font-size: 0.97rem; }
/* legacy initials avatar (fallback) */
.director-avatar {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; background: var(--grad-brand-soft);
}
.director-avatar span { font-family: "Fraunces", serif; font-size: 2.4rem; color: rgba(255,255,255,0.95); }

/* ===== Quote ===== */
.quote-section {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-deep);
}
.quote-section::before {
  content: "\201C"; position: absolute; top: -0.16em; left: 50%; transform: translateX(-50%);
  font-family: "Fraunces", serif; font-size: 17rem; line-height: 1; color: rgba(255,255,255,0.10);
  pointer-events: none;
}
.quote-section::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.3px, transparent 1.3px);
  background-size: 26px 26px; opacity: 0.5; pointer-events: none;
}
.quote-section blockquote { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.quote-section p { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(1.65rem, 3.8vw, 2.65rem); line-height: 1.32; margin-bottom: 24px; }
.quote-section footer { opacity: 0.82; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.contact-list li {
  display: grid; gap: 2px; padding: 15px 20px;
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.contact-list li:hover { border-color: var(--brand); transform: translateX(5px); box-shadow: var(--shadow-sm); }
.contact-list strong { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); }
.contact-list a:hover { color: var(--brand); }

.socials { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.socials a {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--brand);
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg);
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.socials a svg { width: 21px; height: 21px; display: block; }
.socials a:hover { background: var(--grad-brand-soft); color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-brand); }

.contact-form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { position: relative; margin-bottom: 20px; }
.field input, .field textarea {
  width: 100%; padding: 20px 16px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); font: inherit; color: var(--ink); resize: vertical; transition: border-color .3s, box-shadow .3s;
}
.field textarea { padding-top: 24px; }
.field label {
  position: absolute; left: 16px; top: 16px; color: var(--ink-soft); font-size: 0.95rem;
  pointer-events: none; transition: .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(52,97,138,0.16); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 7px; font-size: 0.72rem; color: var(--brand); font-weight: 600;
}
.form-feedback { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--brand); min-height: 1.2em; }

/* ===== Booking iframe ===== */
.booking { width: 100%; }
.booking-frame {
  width: 100%; height: 660px; border: none; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--bg-soft); display: block;
}
.booking-privacy { margin-top: 14px; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.booking-privacy a { color: var(--brand); font-weight: 600; }
.booking-privacy a:hover { text-decoration: underline; }
@media (max-width: 640px) { .booking-frame { height: 560px; } }

/* ===== Instagram feed box ===== */
.insta-embed {
  position: relative; max-width: 680px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--bg);
}
.insta-embed::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; z-index: 2;
  background: var(--grad-brand-soft);
}
.insta-frame { width: 100%; min-height: 560px; border: 0; display: block; background: var(--bg-soft); }
.insta-placeholder {
  min-height: 400px; display: grid; place-content: center; justify-items: center; gap: 12px;
  text-align: center; padding: 56px 28px;
  background:
    radial-gradient(64% 60% at 50% 4%, rgba(87,162,104,0.12), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(52,97,138,0.10), transparent 70%),
    var(--bg-soft);
}
.insta-glyph {
  width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #34618a, #57a268); box-shadow: var(--shadow-brand);
}
.insta-glyph svg { width: 36px; height: 36px; }
.insta-handle { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--brand-dark); }
.insta-note { color: var(--ink-soft); font-size: 0.95rem; max-width: 360px; }

/* ===== Footer ===== */
.footer { position: relative; background: var(--bg-soft); color: var(--ink); padding: 64px 0; text-align: center; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.footer-inner { display: grid; gap: 14px; place-items: center; }
.footer .brand-logo { height: 56px; width: auto; }
.footer-tag { color: var(--ink-soft); font-weight: 500; }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; transition: color .3s; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { font-size: 0.82rem; color: var(--ink-faint); }

/* ===== Active nav link ===== */
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after { width: 100%; }

/* ===== Sub-page hero ===== */
.page-hero {
  position: relative; overflow: hidden;
  padding: 180px 24px 88px; text-align: center;
  background:
    radial-gradient(60% 60% at 82% -16%, rgba(87,162,104,0.20), transparent 60%),
    radial-gradient(56% 70% at -8% 120%, rgba(52,97,138,0.20), transparent 60%),
    var(--paper);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(52,97,138,0.06) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero .eyebrow { justify-content: center; }
.crumbs { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 20px; letter-spacing: 0.02em; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: 0.55; }
.page-title { font-size: clamp(2.8rem, 6.5vw, 4.7rem); margin-bottom: 22px; }
.page-sub { color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 620px; margin: 0 auto; }

/* ===== Category chip nav (sticky) ===== */
.cat-nav {
  position: sticky; top: 0; z-index: 800;
  background: rgba(238, 244, 245, 0.82); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cat-nav-inner { display: flex; gap: 10px; overflow-x: auto; padding: 14px 24px; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-inner a {
  flex: 0 0 auto; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  padding: 9px 20px; border-radius: 100px; border: 1px solid var(--line-strong);
  transition: color .3s, background .3s, border-color .3s, box-shadow .3s;
}
.cat-nav-inner a:hover { color: #fff; border-color: transparent; background: var(--grad-brand-soft); box-shadow: var(--shadow-brand); }

/* ===== Service categories ===== */
.svc-cat { padding: 98px 0; scroll-margin-top: 70px; }
.svc-cat.alt { background: var(--bg-soft); }
.cat-head { max-width: 660px; margin: 0 auto 58px; text-align: center; }
.cat-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 14px;
  background: var(--green-tint); padding: 6px 16px; border-radius: 100px;
}
.cat-head h2 { font-size: clamp(1.95rem, 4vw, 2.85rem); margin-bottom: 16px; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 30px; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.svc-cat.alt .svc-card { background: var(--bg); }
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: var(--grad-brand-soft); transform: scaleY(0);
  transform-origin: top; transition: transform .45s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc-card p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 18px; }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li {
  font-size: 0.76rem; font-weight: 600; color: var(--green-dark);
  background: var(--green-tint); padding: 6px 13px; border-radius: 100px;
}

/* ===== CTA band ===== */
.cta-band { position: relative; overflow: hidden; background: var(--grad-deep); color: #fff; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.3px, transparent 1.3px);
  background-size: 26px 26px; opacity: 0.5;
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.cta-band p { opacity: 0.9; margin-bottom: 32px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 16px 36px -14px rgba(0,0,0,0.4); }
.cta-band .btn-primary:hover { background: var(--green-tint); color: var(--brand-dark); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); background: transparent; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* ===== Tech page ===== */
.tech-page .container { display: grid; gap: 28px; }
.tech-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.tech-row:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.tech-media { position: relative; display: grid; place-items: center; min-height: 110px; }
.tech-index {
  position: absolute; top: -30px; left: 0; line-height: 1;
  font-family: "Fraunces", serif; font-size: 5.2rem; font-weight: 600; color: rgba(52,97,138,0.10);
}
.tech-icon {
  position: relative; width: 96px; height: 96px; border-radius: 24px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-brand-soft); box-shadow: var(--shadow-brand);
  transition: transform .4s var(--ease);
}
.tech-row:hover .tech-icon { transform: scale(1.06) rotate(-3deg); }
.tech-icon svg { width: 44px; height: 44px; }
.tech-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 4px; }
.tech-kicker { color: var(--green-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
.tech-body > p { color: var(--ink-soft); margin-bottom: 20px; }
.tech-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-specs li { font-size: 0.82rem; color: var(--ink-soft); background: var(--bg-tint); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; }
.tech-specs strong { color: var(--brand); font-weight: 600; }

/* ===== Legal page ===== */
.legal-section { padding-top: 60px; }
.legal { max-width: 820px; margin: 0 auto; }
.legal-updated { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.45rem; margin: 36px 0 12px; }
.legal p { color: var(--ink-soft); margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 1.1rem; color: var(--ink-soft); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal-note {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand-2);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 28px 0;
}
.legal-note p { margin: 0; }
.legal-back { margin-top: 32px; }

/* ===== Team (legacy) ===== */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { text-align: center; }
.member-photo {
  width: 100%; aspect-ratio: 1 / 1.1; border-radius: var(--radius); background: var(--grad-brand-soft);
  display: grid; place-items: center; margin-bottom: 18px; transition: transform .45s var(--ease);
}
.member-photo span { font-family: "Fraunces", serif; font-size: 2.6rem; color: rgba(255,255,255,0.92); }
.member:hover .member-photo { transform: translateY(-6px) scale(1.01); }
.member h3 { font-size: 1.25rem; }
.role { color: var(--ink-soft); font-size: 0.92rem; }

/* ===== Consent banner ===== */
.btn-sm { padding: 11px 20px; font-size: 0.88rem; }
.consent {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%);
  z-index: 1100; width: min(680px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.consent[hidden] { display: none; }
.consent.show { transform: translate(-50%, 0); opacity: 1; }
.consent-text { flex: 1 1 320px; margin: 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.consent-text a { color: var(--brand); font-weight: 600; }
.consent-text a:hover { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .cards-4, .team, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .method-visual { order: -1; }
  .director-card { margin: 0 auto; }
  .hero { padding-top: 132px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; }
  .hero-media { order: -1; max-width: 580px; }
  .hero-media::before, .hero-media::after { display: none; }
  .hero-spine { display: none; }
  .hero-orbs span:nth-child(3) { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stat::after { display: none; }
  .tech-row { grid-template-columns: 1fr; gap: 22px; text-align: center; padding: 32px 28px; }
  .tech-media { min-height: auto; }
  .tech-index { position: static; font-size: 2.6rem; margin-bottom: 4px; }
  .tech-icon { margin: 0 auto; }
  .tech-specs { justify-content: center; }
}
/* Nav collapses to a mobile drawer before the horizontal links get cramped */
@media (max-width: 860px) {
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 12px 20px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; z-index: 940;
    width: min(80vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 96px 40px 40px;
    background: var(--bg-soft); box-shadow: -16px 0 44px -22px rgba(20,49,63,0.5);
    transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; position: relative; z-index: 950; }
}

@media (max-width: 640px) {
  .cards, .cards-4, .team, .svc-grid { grid-template-columns: 1fr; }
  .svc-cat { padding: 68px 0; }
  .hero-stats { gap: 30px; }
  .section { padding: 84px 0; }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .consent { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; padding: 18px 20px; }
  .consent-actions { justify-content: flex-end; }
}
