/* =========================================================
   LABBY / CALCOW — SHARED STYLES
   ========================================================= */
:root {
  --color-black: #07141b;
  --color-text: #273943;
  --color-muted: #667984;
  --color-white: #ffffff;
  --color-soft: #f4fafc;
  --color-soft-blue: #eaf5f8;
  --color-line: rgba(7, 93, 127, 0.14);
  --color-primary: #08749a;
  --color-primary-2: #3c94b1;
  --color-light: #a8cedb;
  --color-deep: #064660;
  --color-deeper: #032f43;
  --color-success: #2f9c83;
  --calcow: #2f6f62;
  --calcow-2: #4d8c76;
  --calcow-soft: #edf6f1;
  --calcow-pale: #dcece5;
  --font-heading: "Montserrat", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --container: 1320px;
  --header-height: 76px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --shadow-sm: 0 10px 30px rgba(4, 58, 80, 0.08);
  --shadow-md: 0 24px 60px rgba(4, 58, 80, 0.13);
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--color-white); background: var(--color-primary); }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-black);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 44px), var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 8vh, 92px) 0; }
.section-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-kicker.light { color: var(--color-light); }
.calcow-kicker { color: var(--calcow); }

h1, h2, h3 {
  margin: 0;
  color: var(--color-black);
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(3rem, 5.2vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2.25rem, 3.9vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1.16rem; font-weight: 700; }
p { margin: 0; }
.large-copy { font-size: clamp(1.16rem, 1.7vw, 1.42rem); line-height: 1.55; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform var(--transition); }
.button:hover { transform: translateY(-2px); }
.button:hover svg { transform: translateX(3px); }
.button-primary { color: var(--color-white); background: linear-gradient(135deg, var(--color-primary), var(--color-deep)); box-shadow: 0 14px 30px rgba(6, 95, 133, 0.22); }
.button-primary:hover { box-shadow: 0 18px 38px rgba(6, 95, 133, 0.28); }
.button-secondary { color: var(--color-deep); background: rgba(255,255,255,0.84); border-color: rgba(6,95,133,0.17); }
.button-secondary:hover { border-color: rgba(6,95,133,0.42); box-shadow: var(--shadow-sm); }
.button-light { color: var(--color-deep); background: var(--color-white); box-shadow: 0 14px 35px rgba(0,0,0,0.18); }
.button-calcow { color: var(--color-white); background: linear-gradient(135deg, var(--calcow-2), var(--calcow)); box-shadow: 0 14px 32px rgba(47,111,98,0.22); }
.button-calcow:hover { box-shadow: 0 18px 40px rgba(47,111,98,0.3); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(143,188,205,0.65); outline-offset: 3px; }

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(7,93,127,0.08);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { background: rgba(255,255,255,0.96); box-shadow: 0 8px 30px rgba(3,71,107,0.07); }
.header-inner { display: flex; height: var(--header-height); align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-deep); font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; letter-spacing: 0.12em; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; font-weight: 650; }
.main-nav > a:not(.nav-cta) { position: relative; color: var(--color-text); }
.main-nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--color-primary); content: ""; transform: scaleX(0); transform-origin: right; transition: transform var(--transition); }
.main-nav > a:not(.nav-cta):hover::after, .main-nav > a.active-link::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 10px 18px; color: var(--color-white); background: var(--color-deep); border-radius: 999px; transition: transform var(--transition), background var(--transition); }
.nav-cta:hover { background: var(--color-primary); transform: translateY(-1px); }
.calcow-nav-cta { background: var(--calcow); }
.calcow-nav-cta:hover { background: var(--calcow-2); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--color-deep); border-radius: 99px; transition: transform var(--transition), opacity var(--transition); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-height) + clamp(32px, 5vh, 54px)) 0 clamp(24px, 4vh, 38px);
  background:
    linear-gradient(rgba(7,93,127,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,93,127,0.035) 1px, transparent 1px),
    linear-gradient(140deg, #ffffff 0%, #f5fbfd 62%, #edf7fa 100%);
  background-size: 56px 56px, 56px 56px, auto;
}
.hero::before { position: absolute; inset: auto auto -180px -190px; width: 420px; height: 420px; border-radius: 50%; background: rgba(125,188,207,0.15); content: ""; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.hero-glow-one { top: 60px; right: 2%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(104,179,204,0.20), rgba(104,179,204,0)); }
.hero-glow-two { right: 26%; bottom: 5%; width: 240px; height: 240px; background: radial-gradient(circle, rgba(6,95,133,0.09), rgba(6,95,133,0)); }
.hero-grid { position: relative; z-index: 2; display: grid; min-height: min(610px, calc(100svh - 225px)); align-items: center; grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr); gap: clamp(48px, 7vw, 92px); }
.hero-copy { padding: 8px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px; color: var(--color-primary); background: rgba(255,255,255,0.75); border: 1px solid rgba(6,95,133,0.15); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 0.79rem; font-weight: 700; }
.eyebrow-dot { width: 8px; height: 8px; background: var(--color-primary); border-radius: 50%; box-shadow: 0 0 0 6px rgba(6,95,133,0.10); }
.hero h1 { margin-top: clamp(24px, 4vh, 38px); font-size: clamp(3.6rem, 5.4vw, 5.15rem); line-height: 1.02; }
.hero-title-line { display: block; }
.hero-title-line-dark { white-space: nowrap; }
.hero-title-line-gradient { margin-top: 5px; color: transparent; background: linear-gradient(90deg, var(--color-primary), #76b7cc); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 680px; margin-top: 28px; color: #49616d; font-size: clamp(1.04rem, 1.4vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.availability-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--color-muted); font-size: 0.83rem; }
.availability-note span { width: 8px; height: 8px; background: var(--color-success); border-radius: 50%; box-shadow: 0 0 0 5px rgba(47,156,131,0.11); }
.hero-visual { position: relative; }
.hero-system-card { position: relative; padding: clamp(28px, 3vw, 42px); overflow: hidden; color: var(--color-white); background: linear-gradient(145deg, rgba(8,116,154,0.96), rgba(3,58,82,0.99)); border: 1px solid rgba(255,255,255,0.18); border-radius: 34px; box-shadow: 0 36px 75px rgba(4,70,96,0.25); }
.hero-system-card::before { position: absolute; top: -100px; right: -90px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,0.16); border-radius: 50%; content: ""; }
.hero-system-card::after { position: absolute; right: 38px; bottom: -70px; width: 170px; height: 170px; background: rgba(166,213,225,0.08); border-radius: 50%; content: ""; }
.hero-system-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 15px; }
.hero-system-brand img { width: 48px; height: 48px; filter: brightness(0) invert(1); opacity: 0.95; }
.hero-system-brand div { display: grid; gap: 3px; }
.hero-system-brand span { color: #b8d9e3; font-family: var(--font-heading); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.14em; }
.hero-system-brand strong { max-width: 390px; font-family: var(--font-heading); font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.25; }
.hero-flow { position: relative; z-index: 2; display: grid; align-items: center; margin: 36px 0 30px; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; }
.flow-node { min-height: 150px; padding: 20px 13px; text-align: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; }
.flow-node-highlight { background: rgba(255,255,255,0.15); }
.flow-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 14px; place-items: center; color: #d8edf2; background: rgba(255,255,255,0.11); border-radius: 15px; }
.flow-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.flow-node strong, .flow-node small { display: block; }
.flow-node strong { font-family: var(--font-heading); font-size: 0.94rem; }
.flow-node small { margin-top: 5px; color: #b9d5de; font-size: 0.72rem; line-height: 1.4; }
.flow-arrow { color: #9bc7d5; font-size: 1.45rem; }
.hero-system-note { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding-top: 20px; color: #c7e0e7; border-top: 1px solid rgba(255,255,255,0.13); font-size: 0.82rem; }
.hero-system-note span { flex: 0 0 auto; width: 9px; height: 9px; background: #7bc1b0; border-radius: 50%; box-shadow: 0 0 0 5px rgba(123,193,176,0.12); }
.feature-band { position: relative; z-index: 2; display: grid; margin-top: 16px; background: rgba(255,255,255,0.82); border: 1px solid rgba(7,93,127,0.12); border-radius: 22px; box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); grid-template-columns: repeat(4, 1fr); }
.feature-band article { display: flex; min-height: 104px; align-items: center; gap: 14px; padding: 18px 22px; }
.feature-band article + article { border-left: 1px solid var(--color-line); }
.feature-icon { display: grid; flex: 0 0 auto; width: 44px; height: 44px; color: var(--color-primary); background: var(--color-soft-blue); border-radius: 13px; place-items: center; }
.feature-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.feature-band strong, .feature-band small { display: block; }
.feature-band strong { color: var(--color-deep); font-family: var(--font-heading); font-size: 1.02rem; }
.feature-band small { margin-top: 3px; color: var(--color-muted); font-size: 0.78rem; line-height: 1.42; }

/* About / vision */
.about-section { background: var(--color-white); }
.about-section > .container > .section-kicker { margin-bottom: 24px; }
.about-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(60px, 8vw, 120px); }
.section-heading h2 { max-width: 650px; }
.about-copy { padding-top: 4px; }
.about-copy .large-copy { color: var(--color-black); }
.about-copy > p + p { margin-top: 24px; color: var(--color-muted); font-size: 1rem; }
.platform-grid { display: grid; margin-top: clamp(44px, 6vh, 68px); grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card { min-height: 245px; padding: 30px; background: linear-gradient(145deg, #ffffff, #f1fafc); border: 1px solid var(--color-line); border-radius: 24px; box-shadow: 0 16px 42px rgba(4,70,96,0.06); transition: transform var(--transition), box-shadow var(--transition); }
.platform-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.icon-box { display: grid; width: 54px; height: 54px; color: var(--color-primary); background: var(--color-soft-blue); border-radius: 16px; place-items: center; }
.icon-box svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.platform-card h3 { margin-top: 34px; }
.platform-card p { margin-top: 13px; color: var(--color-muted); }

/* CalCow teaser */
.product-section { position: relative; overflow: hidden; color: var(--color-white); background: linear-gradient(135deg, #07516d 0%, #03364d 58%, #032f43 100%); }
.product-section::after { position: absolute; top: -140px; right: -120px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,0.10); border-radius: 50%; content: ""; }
.product-grid { position: relative; z-index: 2; display: grid; align-items: center; grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr); gap: clamp(52px, 7vw, 94px); }
.product-visual { position: relative; min-height: 470px; padding: 28px; background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)); border: 1px solid rgba(255,255,255,0.15); border-radius: 28px; }
.product-visual-label { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 8px 12px; color: var(--color-deep); background: rgba(255,255,255,0.92); border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.product-visual img { width: 100%; height: 414px; object-fit: contain; background: #f4f7f7; border-radius: 20px; }
.product-copy h2 { max-width: 720px; color: var(--color-white); font-size: clamp(2.45rem, 4.1vw, 4rem); }
.product-lead { margin-top: 22px; color: #e5f1f4; font-size: clamp(1.05rem, 1.35vw, 1.23rem); line-height: 1.62; }
.product-copy > p:not(.product-lead) { margin-top: 16px; color: #bdd5de; }
.project-status { display: flex; align-items: flex-start; gap: 13px; margin-top: 24px; padding: 17px 19px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.13); border-radius: 17px; }
.status-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 7px; background: #71c2a9; border-radius: 50%; box-shadow: 0 0 0 6px rgba(113,194,169,0.13); }
.project-status strong { font-family: var(--font-heading); }
.project-status p { margin-top: 4px; color: #bcd3dc; font-size: 0.86rem; line-height: 1.5; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.text-link { position: relative; font-weight: 700; }
.text-link::after { position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: currentColor; content: ""; opacity: 0.5; }
.light-link { color: #d5e8ed; }

/* Workflow */
.workflow-section { background: linear-gradient(180deg, #eff9fb, #f8fcfd); }
.workflow-heading { max-width: 970px; text-align: center; }
.workflow-heading h2 { max-width: 950px; margin-inline: auto; }
.workflow-heading > p { margin-top: 17px; color: var(--color-muted); }
.workflow-grid { display: grid; align-items: center; margin-top: clamp(36px, 5vh, 52px); grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; }
.workflow-card { position: relative; min-height: 270px; padding: 28px 30px; background: var(--color-white); border: 1px solid var(--color-line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.workflow-number { position: absolute; top: 20px; right: 22px; color: rgba(7,93,127,0.12); font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }
.workflow-card h3 { margin-top: 30px; }
.workflow-card p { margin-top: 12px; color: var(--color-muted); }
.workflow-arrow { color: #83b5c6; font-size: 2rem; }

/* Sectors */
.sectors-section { background: var(--color-white); }
.sectors-heading { display: grid; align-items: end; grid-template-columns: 1fr 0.9fr; gap: clamp(60px, 8vw, 120px); }
.sectors-heading > p { padding-bottom: 5px; color: var(--color-muted); font-size: 1.04rem; }
.sectors-grid { display: grid; margin-top: clamp(36px, 5vh, 52px); grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector-card { display: flex; min-height: 300px; flex-direction: column; padding: 24px; background: #ffffff; border: 1px solid var(--color-line); border-radius: 22px; }
.sector-card-active { color: var(--color-white); background: linear-gradient(155deg, var(--color-primary), var(--color-deep)); border-color: transparent; box-shadow: var(--shadow-md); }
.sector-top { display: flex; align-items: center; justify-content: space-between; }
.sector-icon { display: grid; width: 48px; height: 48px; color: var(--color-primary); background: var(--color-soft-blue); border-radius: 15px; place-items: center; }
.sector-card-active .sector-icon { color: var(--color-white); background: rgba(255,255,255,0.13); }
.sector-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.status-pill { padding: 6px 10px; color: var(--color-white); background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.status-pill.neutral { color: var(--color-muted); background: var(--color-soft); border-color: var(--color-line); }
.sector-card h3 { margin-top: 70px; color: inherit; font-size: 1.18rem; }
.sector-card p { margin-top: 13px; color: var(--color-muted); font-size: 0.92rem; }
.sector-card-active p { color: #c9e0e7; }
.sector-card small { margin-top: auto; padding-top: 20px; color: var(--color-primary); font-weight: 700; }
.sector-card-active small { color: #d9eef3; }

/* Team */
.team-section { background: linear-gradient(180deg, #f7fbfc, #eef7f9); }
.team-heading { display: grid; grid-template-columns: 0.85fr 1fr; align-items: end; column-gap: clamp(50px, 8vw, 110px); }
.team-heading .section-kicker { grid-column: 1 / -1; }
.team-heading p { color: var(--color-muted); font-size: 1.02rem; }
.team-grid { display: grid; margin-top: clamp(36px, 5vh, 52px); grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-card { min-height: 260px; padding: 25px; background: rgba(255,255,255,0.92); border: 1px solid var(--color-line); border-radius: 22px; box-shadow: 0 14px 34px rgba(4,70,96,0.05); }
.team-initials { display: grid; width: 54px; height: 54px; color: var(--color-white); background: linear-gradient(135deg, var(--color-primary-2), var(--color-deep)); border-radius: 16px; place-items: center; font-family: var(--font-heading); font-weight: 800; }
.team-card h3 { margin-top: 28px; }
.team-card > strong { display: block; margin-top: 7px; color: var(--color-primary); font-size: 0.83rem; }
.team-card p { margin-top: 14px; color: var(--color-muted); font-size: 0.88rem; }

/* Contact */
.contact-section, .calcow-contact-section { padding: clamp(58px, 7vh, 78px) 0; }
.contact-shell { display: grid; padding: clamp(34px, 4vw, 52px); color: var(--color-white); background: linear-gradient(135deg, #07516d, #032f43); border-radius: 32px; box-shadow: 0 28px 70px rgba(3,47,67,0.18); grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr); gap: clamp(45px, 6vw, 86px); }
.contact-copy { padding: 4px 0; }
.contact-copy h2 { max-width: 560px; color: var(--color-white); font-size: clamp(2.35rem, 3.8vw, 3.65rem); }
.contact-copy > p { max-width: 560px; margin-top: 20px; color: #c6dce4; font-size: 0.98rem; }
.contact-options { display: grid; margin-top: 30px; gap: 14px; }
.contact-options > div { display: flex; align-items: center; gap: 13px; }
.contact-option-icon { display: grid; width: 44px; height: 44px; color: #d8edf2; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.10); border-radius: 13px; place-items: center; }
.contact-option-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.contact-options div > div { display: grid; }
.contact-options small { color: #94bac7; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-options a, .contact-options span { font-weight: 650; }
.contact-form { padding: 27px 30px 24px; color: var(--color-text); background: var(--color-white); border-radius: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.contact-form label { color: var(--color-black); font-size: 0.76rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 6px; color: var(--color-text); background: #f5f9fa; border: 1px solid rgba(7,93,127,0.13); border-radius: 12px; outline: none; transition: border var(--transition), box-shadow var(--transition); }
.contact-form input, .contact-form select { height: 44px; padding: 0 13px; }
.contact-form textarea { min-height: 88px; padding: 11px 13px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(8,116,154,0.10); }
.contact-form .invalid { border-color: #c44b4b; }
.form-full { grid-column: 1 / -1; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; color: var(--color-muted) !important; font-size: 0.69rem !important; font-weight: 500 !important; line-height: 1.45; }
.consent-field input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--color-primary); }
.consent-field.invalid { color: #aa3636 !important; }
.form-submit { width: 100%; margin-top: 15px; }
.form-note { margin-top: 8px; color: var(--color-muted); text-align: center; font-size: 0.66rem; }
.form-status { min-height: 18px; margin-top: 4px; color: #aa3636; text-align: center; font-size: 0.72rem; }
.form-status.success { color: var(--color-success); }

/* Footer */
.site-footer { padding: 58px 0 24px; background: var(--color-white); }
.footer-main { display: grid; grid-template-columns: 1.4fr 0.6fr 0.7fr; gap: 70px; }
.footer-brand p { max-width: 340px; margin-top: 16px; color: var(--color-muted); font-size: 1rem; }
.footer-main > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; color: var(--color-muted); }
.footer-main > div > strong { margin-bottom: 4px; color: var(--color-black); font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-main a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 42px; padding-top: 21px; color: var(--color-muted); border-top: 1px solid var(--color-line); font-size: 0.72rem; }

/* CalCow page */
.calcow-page { --color-primary: var(--calcow); --color-primary-2: var(--calcow-2); }
.calcow-page ::selection { background: var(--calcow); }
.calcow-page .main-nav > a:not(.nav-cta)::after { background: var(--calcow); }
.calcow-hero { position: relative; min-height: 100svh; overflow: hidden; padding: calc(var(--header-height) + clamp(42px, 6vh, 70px)) 0 clamp(48px, 7vh, 74px); background: linear-gradient(135deg, #f9fcfa 0%, var(--calcow-soft) 62%, #e5f1eb 100%); }
.calcow-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.calcow-orb-one { top: 8%; right: 3%; width: 430px; height: 430px; border: 1px solid rgba(47,111,98,0.13); }
.calcow-orb-two { bottom: -160px; left: -130px; width: 400px; height: 400px; background: rgba(77,140,118,0.08); }
.calcow-hero-grid { position: relative; z-index: 2; display: grid; min-height: calc(100svh - var(--header-height) - 120px); align-items: center; grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr); gap: clamp(50px, 7vw, 100px); }
.calcow-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px; color: var(--calcow); background: rgba(255,255,255,0.78); border: 1px solid rgba(47,111,98,0.15); border-radius: 999px; font-size: 0.76rem; font-weight: 750; }
.calcow-eyebrow span { width: 8px; height: 8px; background: var(--calcow-2); border-radius: 50%; box-shadow: 0 0 0 5px rgba(77,140,118,0.12); }
.calcow-hero h1 { max-width: 700px; margin-top: 28px; font-size: clamp(3.4rem, 5.2vw, 5rem); }
.calcow-hero-copy > p { max-width: 660px; margin-top: 24px; color: #526d64; font-size: clamp(1.03rem, 1.35vw, 1.2rem); }
.calcow-status-inline { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 15px 17px; background: rgba(255,255,255,0.68); border: 1px solid rgba(47,111,98,0.14); border-radius: 16px; }
.calcow-status-inline > span { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 7px; background: var(--calcow-2); border-radius: 50%; box-shadow: 0 0 0 5px rgba(77,140,118,0.12); }
.calcow-status-inline p { color: #527067; font-size: 0.84rem; line-height: 1.5; }
.calcow-status-inline strong { color: var(--color-black); }
.calcow-photo-card { position: relative; padding: 26px; background: rgba(255,255,255,0.78); border: 1px solid rgba(47,111,98,0.13); border-radius: 30px; box-shadow: 0 30px 75px rgba(47,111,98,0.15); }
.calcow-photo-card > span { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 7px 11px; color: var(--calcow); background: rgba(255,255,255,0.93); border: 1px solid rgba(47,111,98,0.12); border-radius: 999px; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.calcow-photo-card img { width: 100%; height: min(58vh, 520px); object-fit: contain; background: #f8faf9; border-radius: 20px; }
.calcow-overview-section { background: var(--color-white); }
.calcow-overview-grid { display: grid; align-items: start; grid-template-columns: 0.9fr 1.1fr; gap: clamp(60px, 8vw, 120px); }
.calcow-overview-copy > p + p { margin-top: 22px; color: var(--color-muted); }
.calcow-benefit-grid { display: grid; margin-top: 52px; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.calcow-benefit { padding: 26px; background: var(--calcow-soft); border: 1px solid rgba(47,111,98,0.13); border-radius: 22px; }
.calcow-benefit-icon { display: grid; width: 50px; height: 50px; color: var(--calcow); background: var(--color-white); border-radius: 15px; place-items: center; }
.calcow-benefit-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.calcow-benefit h3 { margin-top: 26px; }
.calcow-benefit p { margin-top: 11px; color: #5e746c; }
.calcow-process-section { background: linear-gradient(180deg, #f5faf7, var(--calcow-soft)); }
.calcow-workflow-grid .icon-box { color: var(--calcow); background: var(--calcow-soft); }
.calcow-workflow-grid .workflow-number { color: rgba(47,111,98,0.12); }
.calcow-audience-section { background: var(--color-white); }
.calcow-audience-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(60px, 8vw, 110px); }
.calcow-audience-grid > div:first-child > p { margin-top: 22px; color: var(--color-muted); }
.calcow-audience-list { display: grid; gap: 14px; }
.calcow-audience-card { display: grid; padding: 24px; background: #f7fbf9; border: 1px solid rgba(47,111,98,0.13); border-radius: 20px; grid-template-columns: auto 1fr; gap: 20px; }
.calcow-audience-card > span { display: grid; width: 44px; height: 44px; color: var(--calcow); background: var(--color-white); border: 1px solid rgba(47,111,98,0.13); border-radius: 13px; place-items: center; font-size: 0.75rem; font-weight: 800; }
.calcow-audience-card p { margin-top: 8px; color: #60766e; }
.calcow-contact-shell { background: linear-gradient(135deg, #3c7e6b, #214f44); }
.calcow-contact-shell .contact-option-icon { color: #e3f1eb; }
.calcow-contact-shell .contact-copy > p { color: #d4e7df; }
.calcow-page .contact-form input:focus, .calcow-page .contact-form select:focus, .calcow-page .contact-form textarea:focus { border-color: var(--calcow); box-shadow: 0 0 0 3px rgba(47,111,98,0.10); }
.calcow-page .consent-field input { accent-color: var(--calcow); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1180px) {
  :root { --container: 1100px; }
  .hero-grid { grid-template-columns: 1fr 0.9fr; gap: 42px; }
  .hero h1 { font-size: clamp(3.3rem, 5.8vw, 4.6rem); }
  .hero-flow { gap: 6px; }
  .flow-node { min-height: 140px; padding-inline: 9px; }
  .main-nav { gap: 22px; }
  .contact-shell { grid-template-columns: 0.85fr 1.15fr; }
}

@media (max-width: 980px) {
  :root { --header-height: 70px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--color-line);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 7px; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: auto; }
  .hero-grid, .calcow-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 720px; }
  .feature-band { grid-template-columns: 1fr 1fr; }
  .feature-band article:nth-child(3) { border-left: 0; border-top: 1px solid var(--color-line); }
  .feature-band article:nth-child(4) { border-top: 1px solid var(--color-line); }
  .about-grid, .product-grid, .sectors-heading, .team-heading, .calcow-overview-grid, .calcow-audience-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-heading p { max-width: 760px; }
  .platform-grid, .calcow-benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .product-visual { min-height: 420px; }
  .product-visual img { height: 365px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-arrow { display: none; }
  .workflow-card { min-height: 220px; }
  .sectors-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .sector-card { min-height: 270px; }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-copy { max-width: 700px; }
  .calcow-hero-media { max-width: 760px; }
  .calcow-photo-card img { height: 480px; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.35rem; }
  .hero { padding-top: calc(var(--header-height) + 34px); }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-title-line-dark { white-space: normal; }
  .hero-actions, .product-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button, .product-actions .button { width: 100%; }
  .availability-note { align-items: flex-start; }
  .hero-system-card { padding: 24px 18px; border-radius: 25px; }
  .hero-system-brand img { width: 40px; height: 40px; }
  .hero-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .flow-node { min-height: 126px; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band article + article { border-top: 1px solid var(--color-line); border-left: 0; }
  .feature-band article { min-height: 92px; }
  .platform-grid, .calcow-benefit-grid, .sectors-grid, .team-grid { grid-template-columns: 1fr; }
  .platform-card, .team-card { min-height: auto; }
  .product-grid { gap: 38px; }
  .product-visual { min-height: 340px; padding: 18px; }
  .product-visual img { height: 305px; }
  .product-copy h2 { font-size: 2.45rem; }
  .workflow-card { min-height: 0; }
  .sectors-heading > p { padding-bottom: 0; }
  .sector-card { min-height: 250px; }
  .team-heading { display: block; }
  .team-heading p { margin-top: 18px; }
  .contact-section, .calcow-contact-section { padding: 0; }
  .contact-section .container, .calcow-contact-section .container { width: 100%; }
  .contact-shell { padding: 50px 20px; border-radius: 0; }
  .contact-form { padding: 23px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .calcow-hero { min-height: auto; padding-top: calc(var(--header-height) + 38px); }
  .calcow-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .calcow-photo-card { padding: 17px; }
  .calcow-photo-card img { height: 330px; }
}

@media (max-height: 820px) and (min-width: 981px) {
  .hero { padding-top: calc(var(--header-height) + 24px); padding-bottom: 20px; }
  .hero-grid { min-height: 520px; }
  .hero h1 { margin-top: 20px; font-size: clamp(3.35rem, 5vw, 4.6rem); }
  .hero-lead { margin-top: 20px; line-height: 1.55; }
  .hero-actions { margin-top: 20px; }
  .availability-note { margin-top: 14px; }
  .hero-flow { margin: 28px 0 22px; }
  .feature-band article { min-height: 88px; padding-block: 13px; }
  .section { padding: 64px 0; }
  .platform-grid, .workflow-grid, .sectors-grid, .team-grid { margin-top: 36px; }
  .platform-card { min-height: 220px; padding: 25px; }
  .platform-card h3 { margin-top: 24px; }
  .product-visual { min-height: 410px; }
  .product-visual img { height: 355px; }
  .workflow-card { min-height: 235px; padding: 24px 26px; }
  .sector-card { min-height: 270px; }
  .sector-card h3 { margin-top: 52px; }
  .team-card { min-height: 230px; }
  .contact-shell { padding: 34px 40px; }
  .contact-copy h2 { font-size: 3rem; }
  .contact-form { padding: 22px 26px 20px; }
  .contact-form input, .contact-form select { height: 40px; }
  .contact-form textarea { min-height: 72px; }
  .calcow-hero { padding-top: calc(var(--header-height) + 28px); padding-bottom: 34px; }
  .calcow-hero-grid { min-height: calc(100svh - var(--header-height) - 62px); }
  .calcow-photo-card img { height: min(54vh, 450px); }
}

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

/* =========================================================
   LABBY V6 — TEAM, PARTNER, LEGAL FOOTER, CALCOW CONTENT
   ========================================================= */

/* Team with real portraits */
.team-grid-photo { align-items: stretch; }
.team-card-photo { padding: 0; overflow: hidden; }
.team-card-photo > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 24%;
  border-bottom: 1px solid var(--color-line);
}
.team-card-body { padding: 22px 24px 25px; }
.team-card-photo h3 { margin-top: 0; }
.team-card-photo .team-card-body > strong { display: block; margin-top: 7px; color: var(--color-primary); font-size: 0.83rem; }
.team-card-photo .team-card-body > p { margin-top: 13px; color: var(--color-muted); font-size: 0.88rem; }

/* Partners */
.partners-section { background: var(--color-white); }
.partners-heading .section-kicker { margin-bottom: 20px; }
.partners-heading-row { display: grid; align-items: end; grid-template-columns: 0.9fr 1.1fr; gap: clamp(54px, 8vw, 110px); }
.partners-heading-row p { max-width: 700px; color: var(--color-muted); font-size: 1.02rem; }
.partners-strip { display: grid; margin-top: clamp(34px, 5vh, 50px); grid-template-columns: 1fr 1fr; gap: 18px; }
.partner-logo-card {
  display: grid;
  min-height: 230px;
  padding: 28px;
  place-items: center;
  text-align: center;
  background: linear-gradient(145deg, #ffffff, #f5f9fa);
  border: 1px solid var(--color-line);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(4,70,96,0.05);
}
.partner-logo-card img {
  width: auto;
  max-width: min(76%, 330px);
  max-height: 105px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.12);
  opacity: 0.76;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}
.partner-logo-card:hover img { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }
.partner-logo-card span { align-self: end; margin-top: 18px; color: var(--color-muted); font-size: 0.78rem; font-weight: 650; }

/* Footer and legal information */
.footer-main-extended { grid-template-columns: 1.15fr 0.58fr 0.86fr 0.95fr; gap: clamp(34px, 5vw, 68px); }
.footer-main-extended > div:not(.footer-brand) span { line-height: 1.55; }
.footer-legal-links { display: flex; gap: 18px; margin-top: 32px; color: var(--color-muted); font-size: 0.76rem; }
.footer-legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.consent-field a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.calcow-page .consent-field a { color: var(--calcow); }

/* Shared CalCow alignment */
.section-label-block .section-kicker { margin-bottom: 22px; }
.calcow-measurement-section { background: var(--color-white); }
.calcow-measurement-grid,
.calcow-hypocalcemia-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(58px, 8vw, 118px);
  align-items: start;
}
.calcow-measurement-grid h2,
.calcow-hypocalcemia-grid h2 { max-width: 690px; }
.calcow-measurement-copy,
.calcow-hypocalcemia-copy { max-width: 720px; }
.calcow-measurement-copy > p + p,
.calcow-hypocalcemia-copy > p + p { margin-top: 18px; color: var(--color-muted); }

/* Il bisogno: section name breathes, title and adjacent copy share the same baseline */
.calcow-overview-aligned { align-items: end; }
.calcow-overview-aligned > div:first-child h2 { max-width: 690px; }

/* Technical specifications */
.calcow-technical-section { background: linear-gradient(180deg, #f8fcfa, var(--calcow-soft)); }
.calcow-technical-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(450px, 0.98fr);
  gap: clamp(36px, 6vw, 74px);
}
.calcow-field-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(47,111,98,0.14);
  border-radius: 28px;
  box-shadow: 0 24px 62px rgba(47,111,98,0.12);
}
.calcow-field-photo img {
  width: 100%;
  height: clamp(350px, 39vw, 500px);
  object-fit: cover;
  object-position: center;
}
.calcow-specification-panel h2 { max-width: 680px; font-size: clamp(2.15rem, 3.45vw, 3.35rem); }
.calcow-specification-grid { display: grid; margin-top: 30px; grid-template-columns: 1fr 1fr; gap: 13px; }
.calcow-specification-grid article {
  min-height: 116px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(47,111,98,0.14);
  border-radius: 18px;
}
.calcow-specification-grid span { display: block; color: #647970; font-size: 0.75rem; font-weight: 700; }
.calcow-specification-grid strong { display: block; margin-top: 9px; color: var(--color-black); font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.35; }

/* Hypocalcemia */
.calcow-hypocalcemia-section { background: var(--color-white); }
.calcow-hypocalcemia-grid { align-items: end; }
.hypocalcemia-cards { display: grid; margin-top: clamp(36px, 5vh, 52px); grid-template-columns: 1fr 1fr; gap: 18px; }
.hypocalcemia-card {
  display: grid;
  min-height: 220px;
  padding: 27px;
  background: #f7fbf9;
  border: 1px solid rgba(47,111,98,0.14);
  border-radius: 23px;
  grid-template-columns: auto 1fr;
  gap: 23px;
}
.hypocalcemia-value {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--color-white);
  background: linear-gradient(145deg, var(--calcow-2), var(--calcow));
  border-radius: 22px;
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 800;
}
.hypocalcemia-card h3 { margin-top: 4px; }
.hypocalcemia-card p { margin-top: 11px; color: #60766e; }

/* Legal content pages */
.legal-page-main { padding: calc(var(--header-height) + 58px) 0 80px; background: linear-gradient(180deg, #f7fbfc, #ffffff); }
.legal-page-shell { max-width: 920px; }
.legal-page-shell h1 { font-size: clamp(2.7rem, 5vw, 4.5rem); }
.legal-page-shell > p { margin-top: 22px; color: var(--color-muted); font-size: 1.04rem; }
.legal-content { margin-top: 42px; padding: clamp(28px, 4vw, 48px); background: var(--color-white); border: 1px solid var(--color-line); border-radius: 26px; box-shadow: var(--shadow-sm); }
.legal-content section + section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--color-line); }
.legal-content h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.legal-content p, .legal-content li { color: var(--color-muted); }
.legal-content p { margin-top: 11px; }
.legal-content ul { margin: 12px 0 0; padding-left: 20px; }
.legal-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1080px) {
  .footer-main-extended { grid-template-columns: 1.2fr 0.7fr 1fr; }
  .footer-main-extended > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 980px) {
  .partners-heading-row,
  .calcow-measurement-grid,
  .calcow-hypocalcemia-grid,
  .calcow-technical-grid { grid-template-columns: 1fr; gap: 28px; }
  .partners-heading-row p,
  .calcow-measurement-copy,
  .calcow-hypocalcemia-copy { max-width: 760px; }
  .calcow-overview-aligned { align-items: start; }
  .calcow-technical-grid { align-items: start; }
}

@media (max-width: 680px) {
  .partners-strip,
  .hypocalcemia-cards,
  .calcow-specification-grid { grid-template-columns: 1fr; }
  .partner-logo-card { min-height: 190px; }
  .hypocalcemia-card { grid-template-columns: 1fr; }
  .calcow-field-photo img { height: 280px; }
  .footer-main-extended { grid-template-columns: 1fr; }
  .footer-main-extended > div:last-child { grid-column: auto; }
}


/* =========================================================
   LABBY V7 — carousel, smaller team photos, 3D render, footer updates
   ========================================================= */

.hero-product-card img,
.calcow-photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Ambiti carousel */
.sectors-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: clamp(36px, 5vh, 52px);
}
.sectors-viewport {
  overflow: hidden;
}
.sectors-track {
  display: flex;
  gap: 16px;
  transition: transform 420ms ease;
  will-change: transform;
}
.sectors-track .sector-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
}
.carousel-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  place-items: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.carousel-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: rgba(7,93,127,0.2); }
.carousel-button svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.carousel-button[disabled] { opacity: 0.45; cursor: default; transform: none; box-shadow: var(--shadow-sm); }

/* Team portraits more compact and close to square */
.team-grid-photo {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.team-card-photo > img {
  aspect-ratio: 1 / 1;
  object-position: center 18%;
}
.team-card-body { padding: 18px 20px 22px; }
.team-card-photo .team-card-body > p { font-size: 0.84rem; }

/* CalCow page adjustments */
.calcow-photo-card img {
  max-height: min(56vh, 430px);
}
.calcow-overview-grid {
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(54px, 7vw, 92px);
}
.calcow-technical-grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 54px);
}
.calcow-field-photo img {
  height: clamp(300px, 31vw, 380px);
  object-position: center;
}
.calcow-specification-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calcow-specification-panel h2 { font-size: clamp(1.95rem, 3vw, 2.7rem); }
.calcow-specification-grid article { min-height: 98px; }
.calcow-specification-grid strong { font-size: 0.96rem; }

@media (max-width: 1180px) {
  .sectors-track .sector-card { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 980px) {
  .sectors-carousel {
    grid-template-columns: 1fr;
  }
  .sectors-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .sectors-track .sector-card {
    flex-basis: calc((100% - 16px) / 2);
    scroll-snap-align: start;
  }
  .carousel-button {
    display: none;
  }
  .team-grid-photo {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .sectors-track .sector-card { flex-basis: 82%; }
  .team-grid-photo { grid-template-columns: 1fr 1fr; }
  .team-card-body { padding: 16px 16px 18px; }
}


/* =========================================================
   LABBY V10 — smaller team portraits + interactive 3D viewer
   ========================================================= */
.device-model-viewer {
  display: block;
  width: 100%;
  height: min(54vh, 430px);
  background: transparent;
  --poster-color: transparent;
}
.hero-product-card .device-model-viewer {
  height: min(52vh, 390px);
}
.calcow-photo-card .device-model-viewer {
  height: min(56vh, 440px);
}
.hero-product-card,
.calcow-photo-card {
  overflow: hidden;
}
.team-card-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card-photo > img {
  width: 72%;
  max-width: 168px;
  margin: 18px auto 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--color-line);
  border-radius: 18px;
}
.team-card-body {
  width: 100%;
  padding: 16px 18px 20px;
}
.team-card-photo .team-card-body > p {
  font-size: 0.82rem;
  line-height: 1.58;
}
@media (max-width: 980px) {
  .team-card-photo > img {
    width: 68%;
    max-width: 160px;
  }
}
@media (max-width: 680px) {
  .device-model-viewer,
  .hero-product-card .device-model-viewer,
  .calcow-photo-card .device-model-viewer {
    height: 300px;
  }
  .team-card-photo > img {
    width: 78%;
    max-width: 150px;
  }
}


/* =========================================================
   LABBY V11 — fix hero gradient, compact square team photos, model fallback
   ========================================================= */
.hero-copy h1 .hero-title-gradient {
  background: linear-gradient(90deg, #0b5f86 0%, #3f8fb0 54%, #91bcd0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.device-model-shell {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 18%, rgba(236,243,247,0.95), rgba(248,251,252,0.92) 54%, rgba(255,255,255,0.98) 100%);
}
.device-model-viewer {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: min(54vh, 430px);
  background: transparent;
  --poster-color: transparent;
}
.hero-product-card .device-model-viewer { height: min(50vh, 380px); }
.calcow-photo-card .device-model-viewer { height: min(54vh, 430px); }
.device-model-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}
.device-model-shell.show-fallback .device-model-fallback { display: block; }
.device-model-shell.show-fallback .device-model-viewer { display: none; }

.team-card-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card-photo > img {
  width: 112px;
  height: 112px;
  margin: 18px auto 0;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(8, 36, 52, 0.06);
}
.team-card-body {
  width: 100%;
  padding: 14px 18px 20px;
  text-align: left;
}
.team-card-body h3 { margin-top: 0; }
.team-card-photo .team-card-body > p { font-size: 0.81rem; line-height: 1.58; }
@media (max-width: 680px) {
  .team-card-photo > img { width: 96px; height: 96px; }
  .device-model-shell { min-height: 280px; }
  .device-model-viewer,
  .hero-product-card .device-model-viewer,
  .calcow-photo-card .device-model-viewer { height: 280px; }
}


/* =========================================================
   LABBY V12 — embedded GLB source and truly small square team portraits
   ========================================================= */
.team-card-photo > img {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px;
  min-height: 88px;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(8, 36, 52, 0.05);
}
.team-card-body {
  padding-top: 12px !important;
}
.device-model-shell {
  min-height: 340px;
}
.device-model-viewer {
  height: min(56vh, 440px);
}
.hero-product-card .device-model-viewer {
  height: min(52vh, 390px);
}
.calcow-photo-card .device-model-viewer {
  height: min(56vh, 440px);
}
.device-model-fallback {
  display: block;
  opacity: 0;
  transition: opacity 240ms ease;
}
.device-model-shell.show-fallback .device-model-fallback {
  opacity: 1;
}
@media (max-width: 680px) {
  .team-card-photo > img {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px;
    min-height: 78px;
  }
}


/* =========================================================
   LABBY FINAL — reliable static render and compact team portraits
   ========================================================= */
.calcow-static-render {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  background: radial-gradient(circle at 50% 28%, rgba(239,246,248,0.98), rgba(255,255,255,0.98) 72%);
  border-radius: 20px;
}
.hero-product-card .calcow-static-render {
  max-height: 380px;
}
.calcow-photo-card .calcow-static-render {
  max-height: 430px;
}
.team-card-photo > img {
  width: 82px !important;
  height: 82px !important;
  min-width: 82px !important;
  min-height: 82px !important;
  max-width: 82px !important;
  max-height: 82px !important;
  margin: 16px auto 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  aspect-ratio: 1 / 1 !important;
  background: transparent !important;
  border: 1px solid var(--color-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.team-card-body {
  padding-top: 12px !important;
}
@media (max-width: 680px) {
  .team-card-photo > img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
  }
}
