@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700;900&family=Red+Hat+Text:wght@400;500;600&display=swap');

/* =========================================================
   Tokens
   ========================================================= */
:root {
    --color-primary: #CD5700;
    --color-primary-light: #E86A12;
    --color-primary-dark: #8B3B00;
    --color-primary-deep: #BF5100;   /* brand orange dark enough for white text */
    --color-primary-soft: #FF9A52;   /* brand orange light enough for dark panels */
    --color-primary-tint: #FBEBDD;
    --color-text-main: #2F4F4F;
    --color-text-muted: #5B7575;
    --color-tone: #7A9191;           /* first half of two-tone headings */
    --color-ink: #1E3434;
    --color-bg-warm: #FFFFFF;
    --color-bg-white: #FFFFFF;
    --color-line: rgba(47, 79, 79, 0.1);
    --color-line-strong: rgba(47, 79, 79, 0.22);
    --color-success: #1E7B4D;
    --color-error: #B42318;

    --shadow-soft: 0 12px 40px rgba(47, 79, 79, 0.07);
    --shadow-strong: 0 24px 60px rgba(47, 79, 79, 0.14);
    --radius-xl: 40px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --radius-full: 999px;

    --font-display: 'Red Hat Display', sans-serif;
    --font-text: 'Red Hat Text', sans-serif;
    --header-h: 88px;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    position: relative;
    background-color: var(--color-bg-warm);
    color: var(--color-text-main);
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

/* The soft orange aurora and paper grain from the original design */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(205, 87, 0, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.015;
    z-index: 1000;
    pointer-events: none;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-ink);
}

p { color: var(--color-text-muted); }
a { color: inherit; }
ul, ol.process-steps-preview, ol.timeline, ol.next-steps { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--color-primary); }

/* Two-tone headings: a quiet lead-in, then the point */
.tone { display: block; color: var(--color-tone); }

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section { padding: 96px 0; }

/* White panel floating on the cream page */
.section-alt {
    margin: 0 16px;
    border-radius: var(--radius-xl);
    background: var(--color-bg-white);
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 16px; }
.section-head p { font-size: 1.1rem; }

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 52px;
}

.section-head-row .section-head { margin-bottom: 0; }
.section-foot { margin-top: 32px; font-size: 1.05rem; color: var(--color-text-main); }
.section-foot a { color: var(--color-primary); font-weight: 600; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 3px;
}

/* =========================================================
   Buttons & links
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary { background: var(--color-primary); color: #FFFFFF; box-shadow: 0 10px 25px rgba(205, 87, 0, 0.2); }
.btn-primary:hover { transform: translateY(-2px); background: var(--color-primary-deep); box-shadow: 0 15px 30px rgba(205, 87, 0, 0.3); }
.btn-secondary { background: var(--color-bg-white); color: var(--color-ink); border-color: var(--color-line-strong); }
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-light { background: #FFFFFF; color: var(--color-ink); }
.btn-light:hover { background: var(--color-primary-tint); }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.link-arrow::after { content: '→'; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Header: original full-width bar, frosted glass
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-main);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
}

.logo-mark { height: 1.8rem; width: auto; }

.main-nav { display: flex; gap: 32px; }

.main-nav a {
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-line-strong);
    border-radius: 50%;
    background: var(--color-bg-white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 72px 0 88px; }

.hero-inner {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: center;
}

.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.4rem); line-height: 1.04; margin-bottom: 24px; }
.hero-lead { max-width: 560px; margin-bottom: 34px; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }

.hero-visual { position: relative; }

.hero-image-container {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary-tint), #F3E3D3);
    box-shadow: var(--shadow-strong);
}

.hero-image-container img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.floating-card {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
    animation: float 4s ease-in-out infinite;
}

.card-1 { top: 15%; left: -10%; }
.card-2 { bottom: 10%; right: -5%; animation-delay: 2s; }

.card-text { display: flex; flex-direction: column; line-height: 1.3; }
.card-text strong { color: var(--color-ink); font-family: var(--font-display); }
.card-text span { color: var(--color-text-muted); font-size: 0.85rem; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================================
   Inner page hero
   ========================================================= */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { max-width: 860px; margin-bottom: 20px; font-size: clamp(2.5rem, 5vw, 3.9rem); line-height: 1.05; }
.page-hero p { max-width: 680px; font-size: 1.2rem; }

.page-hero-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.breadcrumb { display: flex; gap: 8px; margin-bottom: 22px; color: var(--color-text-muted); font-size: 0.9rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

.page-hero-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-full);
    background: var(--color-bg-white);
    color: var(--color-text-main);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

a.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* =========================================================
   Shared cards and grids
   ========================================================= */
.grid-2, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-white);
}

.section-alt .card { background: var(--color-bg-warm); }
.card h3 { font-size: 1.35rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
    padding: 5px 11px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-full);
    background: var(--color-bg-warm);
    color: var(--color-text-main);
    font-size: 0.8rem;
    font-weight: 600;
}

.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--color-text-main); }

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CD5700' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Typewriter effect, driven by main.js */
.check-list li.tw-pending { color: transparent; }
.check-list li.tw-pending::before { opacity: 0; transform: scale(0.4); }
.check-list li.tw-active::before { opacity: 1; transform: none; }
.check-list li.tw-active .tw-text { color: transparent; }

.tw-typed { position: absolute; top: 0; left: 28px; right: 0; color: var(--color-text-main); pointer-events: none; }

.tw-typed::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: -0.15em;
    background: var(--color-primary);
    animation: tw-caret 0.7s steps(1) infinite;
}

@keyframes tw-caret { 50% { opacity: 0; } }

.tag.tag-pending { opacity: 0; transform: translateY(6px) scale(0.92); transition: opacity 0.3s ease, transform 0.3s ease; }
.tag.tag-pending.tag-in { opacity: 1; transform: none; }

/* =========================================================
   Technology arc
   ========================================================= */
.stack-strip {
    position: relative;
    z-index: 5;
    margin: 0 16px;
    padding: 52px 0 92px;
    border-radius: var(--radius-xl);
    background: var(--color-bg-white);
}

.stack-strip-label {
    margin-bottom: 38px;
    color: var(--color-text-muted);
    font-family: var(--font-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.tech-arc { --card: clamp(68px, 7.6vw, 100px); display: flex; justify-content: center; }
.tech { position: relative; margin: 0 calc(var(--card) * -0.07); }
.tech:hover, .tech:focus-within { z-index: 10; }

.tech-card {
    display: grid;
    place-items: center;
    width: var(--card);
    height: var(--card);
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 22%;
    background: #FFFFFF;
    box-shadow: 0 8px 22px rgba(47, 79, 79, 0.12);
    cursor: pointer;
    transform: translateY(var(--y)) rotate(var(--r));
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.tech-card img { width: 50%; height: 50%; object-fit: contain; }

.tech:hover .tech-card, .tech-card:focus {
    transform: translateY(calc(var(--y) - 8px)) rotate(0deg) scale(1.3);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-strong);
    outline: none;
}

.tech-tip {
    position: absolute;
    top: calc(100% + var(--y) + 22px);
    left: 50%;
    z-index: 11;
    width: 250px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: left;
    box-shadow: var(--shadow-strong);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.tech-tip strong { color: #FFFFFF; font-family: var(--font-display); font-size: 1rem; }

.tech-tip em {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary-soft);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tech-left .tech-tip { left: 0; transform: translate(0, 6px); }
.tech-right .tech-tip { left: auto; right: 0; transform: translate(0, 6px); }
.tech:hover .tech-tip, .tech-card:focus + .tech-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tech-left:hover .tech-tip, .tech-left .tech-card:focus + .tech-tip,
.tech-right:hover .tech-tip, .tech-right .tech-card:focus + .tech-tip { transform: translate(0, 0); }

/* =========================================================
   Home: service list, split, process preview, values
   ========================================================= */
.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    padding: 12px 36px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-white);
    list-style: none;
}

.service-list li { border-bottom: 1px solid var(--color-line); }
.service-list li:nth-last-child(-n+2) { border-bottom: none; }

.service-list a {
    display: grid;
    grid-template-columns: 44px 1fr 38px;
    grid-template-areas: "num title arrow" "num desc arrow";
    column-gap: 14px;
    row-gap: 4px;
    padding: 26px 0;
    text-decoration: none;
}

.service-list a::after {
    content: '→';
    grid-area: arrow;
    align-self: center;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary-tint);
    color: var(--color-primary-deep);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-list a:hover::after { background: var(--color-primary); color: #FFFFFF; transform: translateX(3px); }
.service-list a:hover .sl-title { color: var(--color-primary); }

.sl-num { grid-area: num; padding-top: 3px; color: var(--color-primary); font-family: var(--font-display); font-weight: 700; }
.sl-title { grid-area: title; color: var(--color-ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; transition: color 0.2s ease; }
.sl-desc { grid-area: desc; color: var(--color-text-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { overflow: hidden; border-radius: var(--radius-lg); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.8vw, 2.8rem); }
.split p { margin-bottom: 20px; font-size: 1.05rem; }





.value { padding: 28px; border-radius: var(--radius-lg); background: var(--color-bg-white); }
.value h3 { margin-bottom: 8px; font-size: 1.2rem; }

/* =========================================================
   Home: industries
   ========================================================= */
.ind-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.ind-col { display: grid; gap: 20px; }
.ind-col-low { margin-top: 72px; }

.ind-head { padding: 8px 8px 16px 0; }
.ind-head h2 { margin-bottom: 14px; font-size: clamp(2.1rem, 4vw, 3rem); }
.ind-head h2 span { display: block; color: var(--color-tone); }
.ind-head p { margin-bottom: 14px; }

.ind-card {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 28px 0 28px 28px;
    border-radius: var(--radius-lg);
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }

.ind-pill {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 20px 9px 9px;
    border-radius: 999px 0 0 999px;
    background: #FFFFFF;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
}

.ind-arrow {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    transition: transform 0.25s ease;
}

.ind-card:hover .ind-arrow { transform: translateX(3px); }

.ind-card p {
    position: relative;
    z-index: 2;
    margin: 18px 28px 0 0;
    color: inherit;
    font-size: 1.05rem;
    line-height: 1.5;
}

.ind-orange { background: var(--color-primary-deep); }
.ind-dark { background: var(--color-ink); }
.ind-slate { background: var(--color-text-muted); }
.ind-tint { background: var(--color-primary-tint); color: var(--color-ink); }

.ind-inset { width: calc(100% - 28px); aspect-ratio: 16 / 10; margin-top: 20px; border-radius: var(--radius-md); object-fit: cover; }

.ind-photo { display: flex; flex-direction: column; min-height: 340px; background: var(--color-ink); }
.ind-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ind-photo:hover > img { transform: scale(1.04); }
.ind-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 36, 36, 0.88), rgba(20, 36, 36, 0.05) 65%); }
.ind-photo p { margin-top: auto; padding-top: 120px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }

/* =========================================================
   Services page
   ========================================================= */
.service-detail {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    margin-bottom: 20px;
    padding: 44px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-white);
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.service-detail:last-child { margin-bottom: 0; }

.service-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--color-primary-tint);
    color: var(--color-primary-deep);
    font-family: var(--font-display);
    font-weight: 900;
}

.service-detail-head h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.service-detail-head p { margin-bottom: 20px; font-size: 1.05rem; }
.service-detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-content: start; }

.service-detail-body h3,
.phase-cols h3,
.industry-body h3 {
    margin-bottom: 14px;
    color: var(--color-text-muted);
    font-family: var(--font-text);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-detail-body .full { grid-column: 1 / -1; }

.ideal-for {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--color-bg-warm);
    color: var(--color-text-main);
    font-size: 0.97rem;
}

.ideal-for strong { color: var(--color-ink); }

.model-card .model-meta { color: var(--color-primary-deep); font-size: 0.9rem; font-weight: 600; }

.model-owner {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--color-line);
    color: var(--color-text-main);
    font-size: 0.93rem;
}

.model-owner strong { color: var(--color-ink); }

.ownership-table { margin-top: 20px; padding: 32px; border-radius: var(--radius-lg); background: var(--color-bg-warm); }
.ownership-table h3 { margin-bottom: 16px; font-size: 1.3rem; }
.ownership-table table { width: 100%; border-collapse: collapse; }
.ownership-table th, .ownership-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.ownership-table thead th { color: var(--color-text-muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ownership-table tbody th { width: 38%; color: var(--color-ink); font-family: var(--font-display); }
.ownership-table td { color: var(--color-text-main); }
.ownership-table > p { margin-top: 16px; font-size: 0.93rem; }

.stack-table { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stack-col { padding: 26px 22px; border-radius: var(--radius-md); background: var(--color-bg-white); }
.stack-col h3 { margin-bottom: 14px; color: var(--color-primary-deep); font-size: 1rem; }
.stack-col li { padding: 4px 0; color: var(--color-text-main); }

/* =========================================================
   Solutions page
   ========================================================= */
.industry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-white);
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.industry + .industry { margin-top: 20px; }
.industry-media { position: relative; min-height: 340px; overflow: hidden; border-radius: var(--radius-md); }
.industry-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.industry-body { display: flex; flex-direction: column; gap: 16px; padding: 30px 32px; }
.industry-body .section-label { margin-bottom: 0; }
.industry-body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.industry-body h3 { margin: 8px 0 0; }
.industry:nth-child(even) .industry-media { order: 2; }

.problem-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ps-box { padding: 16px 18px; border-radius: var(--radius-md); font-size: 0.95rem; }
.ps-box strong { display: block; margin-bottom: 6px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ps-box.problem { background: var(--color-bg-warm); color: var(--color-text-main); }
.ps-box.solution { background: var(--color-primary-tint); color: var(--color-primary-dark); }

.industry-other {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-top: 20px;
    padding: 40px 44px;
    border-radius: var(--radius-lg);
    background: var(--color-primary-tint);
}

.industry-other h2 { margin-bottom: 8px; font-size: 1.7rem; }
.industry-other p { max-width: 640px; color: var(--color-text-main); }

.systems-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; }

.systems-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: var(--color-bg-warm);
}

.systems-list strong { color: var(--color-ink); font-family: var(--font-display); font-size: 1.08rem; }
.systems-list span { color: var(--color-text-muted); font-size: 0.95rem; text-align: right; }

/* =========================================================
   Process page
   ========================================================= */
.timeline { position: relative; display: grid; gap: 20px; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--color-line-strong); }

.phase { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }

.phase-num {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 900;
}

.phase-body { padding: 32px 36px; border-radius: var(--radius-lg); background: var(--color-bg-white); }
.phase-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; }
.phase-top h2 { font-size: 1.7rem; }

.duration {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--color-primary-tint);
    color: var(--color-primary-deep);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.phase-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }

.timeline-example { padding: 32px; overflow-x: auto; border-radius: var(--radius-lg); background: var(--color-bg-warm); }
.gantt { display: grid; gap: 10px; min-width: 640px; }
.gantt-row { display: grid; grid-template-columns: 150px repeat(12, 1fr); align-items: center; font-size: 0.9rem; }
.gantt-row span:first-child { padding-right: 12px; color: var(--color-text-main); font-weight: 600; }
.gantt-head { color: var(--color-text-muted); font-size: 0.78rem; }
.gantt-head span:not(:first-child) { text-align: center; }
.gantt-bar { height: 22px; border-radius: 999px; background: var(--color-primary); }
.gantt-bar.light { background: #F0B98A; }
.gantt-bar.dark { background: var(--color-ink); }

/* =========================================================
   FAQ panel
   ========================================================= */
.faq-panel {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
    overflow: hidden;
    padding: 72px 64px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 100% 0%, rgba(205, 87, 0, 0.32), transparent 45%), var(--color-ink);
}

.faq-intro h2 { margin-bottom: 22px; color: #FFFFFF; font-size: clamp(2.2rem, 3.5vw, 2.9rem); }
.faq-intro h2 span { display: block; color: var(--color-primary-soft); }
.faq-intro p { max-width: 420px; color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; }
.faq-more { display: flex; align-items: flex-start; gap: 16px; margin-top: 48px; color: rgba(255, 255, 255, 0.78); font-size: 1.15rem; }
.faq-squiggle { flex-shrink: 0; width: 110px; color: rgba(255, 255, 255, 0.55); }
.faq-contact { margin-top: 16px; background: transparent; border-color: var(--color-primary-soft); color: #FFFFFF; }
.faq-contact:hover { background: var(--color-primary); border-color: var(--color-primary); }

.faq-list { display: grid; gap: 14px; }
.faq-list details { border-radius: 20px; background: #FFFFFF; }
.faq-list details:nth-child(odd) { margin-left: 72px; }
.faq-list details:nth-child(4n) { margin-left: 36px; }

.faq-list summary {
    display: grid;
    grid-template-columns: auto 1fr 38px;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 20px 24px;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-num { color: var(--color-primary); }
.faq-list summary:hover .faq-q { color: var(--color-primary); }

.faq-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    color: var(--color-text-muted);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-list details[open] .faq-arrow { border-color: var(--color-primary); color: var(--color-primary); transform: rotate(180deg); }
.faq-list details p { padding: 0 72px 24px 24px; color: var(--color-text-muted); font-size: 0.98rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 64px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 0% 100%, rgba(255, 154, 82, 0.35), transparent 50%), var(--color-primary-deep);
    color: #FFFFFF;
}

.cta-band h2 { margin-bottom: 12px; color: #FFFFFF; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.cta-band p { max-width: 560px; color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 12px; }
.cta-band .btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.65); color: #FFFFFF; }
.cta-band .btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #FFFFFF; }

/* =========================================================
   Forms
   ========================================================= */
.form-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 24px; align-items: start; }
.form-card { padding: 44px; border-radius: var(--radius-lg); background: var(--color-bg-white); }
.form-card fieldset { margin: 0 0 40px; padding: 0; border: none; }
.form-card fieldset:last-of-type { margin-bottom: 28px; }

.form-card legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.legend-num {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.9rem;
}

.fieldset-hint { margin-bottom: 20px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }

.form-group label, .group-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-ink);
    font-size: 0.97rem;
    font-weight: 600;
}

.optional { color: var(--color-text-muted); font-size: 0.88rem; font-weight: 400; }

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    color: var(--color-ink);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea { resize: vertical; }

.form-group select {
    appearance: none;
    padding-right: 44px;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4F4F' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(205, 87, 0, 0.12);
}

[aria-invalid="true"] { border-color: var(--color-error) !important; }
.field-error { display: block; margin-top: 6px; color: var(--color-error); font-size: 0.87rem; }

.choice-grid { display: grid; gap: 12px; }
.choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.choice-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.choice-grid .choice-wide { grid-column: 1 / -1; }

.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.choice-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 16px 18px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    background: #FFFFFF;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choice-box strong { color: var(--color-ink); font-size: 1rem; }
.choice-box small { color: var(--color-text-muted); font-size: 0.87rem; line-height: 1.4; }
.choice:hover .choice-box { border-color: var(--color-primary); }

.choice input:checked + .choice-box {
    border-color: var(--color-primary);
    background: var(--color-primary-tint);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

.choice input:focus-visible + .choice-box { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
.choice-sm .choice-box { flex-direction: row; justify-content: center; align-items: center; padding: 12px 14px; text-align: center; }
.choice-sm .choice-box strong { font-size: 0.95rem; font-weight: 600; }
.choice-group.has-error .choice-box { border-color: var(--color-error); }
.company-fields[hidden] { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-footer small { color: var(--color-text-muted); }
.form-footer small a { color: var(--color-primary); }

.form-status { min-height: 1.6em; margin-top: 16px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--color-success); }
.form-status.is-error { color: var(--color-error); }
.form-status a { color: var(--color-primary); font-weight: 600; }

.form-success { padding: 40px 12px; text-align: center; }

.form-success .icon-box {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #E3F3EA;
    color: var(--color-success);
}

.form-success .icon-box svg { width: 28px; height: 28px; }
.form-success h2 { margin-bottom: 12px; font-size: 1.8rem; }
.form-success p { max-width: 460px; margin: 0 auto 24px; }

.aside-card {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.8);
}

.aside-card h2 { margin-bottom: 18px; color: #FFFFFF; font-size: 1.4rem; }
.aside-card p { color: rgba(255, 255, 255, 0.7); }

.next-steps { display: grid; gap: 18px; margin-bottom: 28px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 0.95rem; counter-increment: ns; }

.next-steps li::before {
    content: counter(ns);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
}

.next-steps strong { display: block; color: #FFFFFF; }

.aside-contact { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.95rem; }
.aside-contact a { justify-self: start; border-bottom: 1px solid rgba(255, 255, 255, 0.3); color: #FFFFFF; text-decoration: none; }
.aside-contact a:hover { border-color: #FFFFFF; }

/* =========================================================
   Contact card (original design)
   ========================================================= */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px;
    border-radius: 32px;
    background: var(--color-text-main);
    color: #FFFFFF;
}

.contact-info h2 { margin-bottom: 24px; color: #FFFFFF; font-size: 3rem; }
.contact-info p { color: rgba(255, 255, 255, 0.7); }
.contact-details { display: grid; gap: 8px; margin-top: 40px; }
.contact-details strong { color: #FFFFFF; }

.contact-details a, .contact-brief-note a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    text-decoration: none;
}

.contact-details a:hover, .contact-brief-note a:hover { border-color: currentColor; color: var(--color-primary-light); }
.contact-brief-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.contact-brief-note a { color: #FFFFFF; font-weight: 600; }

.contact-form { align-self: start; padding: 40px; border-radius: 20px; background: var(--color-bg-white); color: var(--color-text-main); }
.contact-form .form-group { margin-bottom: 24px; }
.contact-form .form-group label { color: var(--color-text-main); font-weight: 600; }
.contact-form .btn-primary:hover { background: #FF6A00; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    margin: 0 16px 16px;
    padding: 72px 0 32px;
    border-radius: var(--radius-xl);
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
}

.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 56px; margin-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-logo { color: #FFFFFF; }
.footer-logo .logo-mark { filter: invert(1); }
.footer-logo .text-accent { color: var(--color-primary-soft); }
.brand-bio { max-width: 320px; color: rgba(255, 255, 255, 0.62); }

.footer-column { display: flex; flex-direction: column; gap: 14px; }
.footer-column h4 { margin-bottom: 6px; color: #FFFFFF; font-size: 1.05rem; }
.footer-column a, .footer-legal a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.footer-column a:hover, .footer-legal a:hover { color: #FFFFFF; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p { color: inherit; }
.footer-legal { display: flex; gap: 28px; }

/* Floating contact widget */
.contact-float { position: fixed; right: 30px; bottom: 30px; z-index: 1100; display: flex; flex-direction: column; gap: 12px; }

.float-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(47, 79, 79, 0.08);
    border-radius: 50%;
    background: var(--color-bg-white);
    box-shadow: var(--shadow-soft);
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.float-btn:hover { transform: scale(1.1); background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; }
.float-btn.whatsapp { background: #25D366; border: none; color: #FFFFFF; }

/* =========================================================
   Legal pages
   ========================================================= */
.legal-page { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.legal-page h1 { margin-bottom: 8px; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.legal-page h2 { margin: 40px 0 12px; font-size: 1.45rem; }
.legal-page ul { display: grid; gap: 8px; padding-left: 20px; color: var(--color-text-muted); list-style: disc; }
.legal-page a:not(.btn) { color: var(--color-primary); }
.legal-updated { font-size: 0.9rem; }
.legal-back { margin-top: 48px; }

/* =========================================================
   Reveal on scroll (only once JS has marked the page)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .stack-table { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .hero-inner, .split, .service-detail, .industry, .form-layout, .contact-card, .page-hero-split { grid-template-columns: 1fr; }
    .hero-inner, .split, .page-hero-split { gap: 48px; }
    .service-detail { gap: 32px; padding: 36px; }
    .industry:nth-child(even) .industry-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 48px 40px; }
    .aside-card { position: static; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .choice-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .choice-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .card-1 { left: -12px; }
    .card-2 { right: -12px; }
    .contact-card { gap: 40px; padding: 56px 40px; }
    .faq-panel { grid-template-columns: 1fr; gap: 40px; padding: 52px 36px; }
    .faq-more { margin-top: 28px; }
    .ind-bento { grid-template-columns: repeat(2, 1fr); }
    .ind-col { display: contents; }
    .ind-head { grid-column: 1 / -1; }
    .ind-col-low { margin-top: 0; }
}

@media (max-width: 860px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 16px;
        border-bottom: 1px solid var(--color-line);
        background: var(--color-bg-white);
        box-shadow: var(--shadow-soft);
    }

    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--color-line); font-size: 1.05rem; }
    .main-nav a:last-child { border-bottom: none; }
    .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
    .stack-strip { padding: 40px 0 48px; }
    .tech-arc { --card: 72px; position: relative; flex-wrap: wrap; gap: 14px 10px; }
    .tech { position: static; margin: 0; }
    .tech-card { transform: rotate(var(--r)); }
    .tech:hover .tech-card, .tech-card:focus { transform: rotate(0deg) scale(1.15); }

    .tech-tip, .tech-left .tech-tip, .tech-right .tech-tip {
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        width: auto;
        transform: translate(0, 6px);
    }

    .tech:hover .tech-tip, .tech-card:focus + .tech-tip { transform: translate(0, 0); }
    .service-list { grid-template-columns: 1fr; padding: 8px 22px; }
    .service-list li:nth-last-child(2) { border-bottom: 1px solid var(--color-line); }
    .systems-list { grid-template-columns: 1fr; }
    .systems-list li { flex-direction: column; gap: 2px; }
    .systems-list span { text-align: left; }
    .industry-other { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

@media (max-width: 640px) {
    :root { --header-h: 69px; }
    .site-header { padding: 12px 0; }
    .section { padding: 64px 0; }
    .section-alt, .stack-strip { margin: 0 8px; border-radius: var(--radius-lg); }
    .hero { padding: 44px 0 64px; }
    .hero-lead, .page-hero p { font-size: 1.08rem; }
    .hero-image-container { border-radius: var(--radius-lg); }
    .card-1 { left: 10px; top: 10px; }
    .card-2 { right: 10px; bottom: 10px; }
    .floating-card { gap: 10px; padding: 10px 14px 10px 10px; }
    .page-hero { padding: 40px 0 24px; }
    .grid-2, .grid-4, .service-detail-body, .phase-cols, .problem-solution, .form-row { grid-template-columns: 1fr; }
    .stack-table { grid-template-columns: 1fr 1fr; }
    .service-detail { padding: 28px 22px; }
    .industry-body { padding: 24px 12px 12px; }
    .industry-media { min-height: 220px; }
    .ownership-table { padding: 22px 18px; }
    .ownership-table thead { display: none; }
    .ownership-table tr, .ownership-table th, .ownership-table td { display: block; width: auto; }
    .ownership-table tbody th { padding-bottom: 2px; border-bottom: none; }
    .timeline::before { left: 21px; }
    .phase { grid-template-columns: 44px 1fr; gap: 12px; }
    .phase-num { width: 44px; height: 44px; font-size: 0.95rem; }
    .phase-body { padding: 24px 20px; }
    .form-card { padding: 28px 20px; }
    .choice-grid.cols-2, .choice-grid.cols-3 { grid-template-columns: 1fr; }
    .choice-grid.cols-4, .choice-grid.cols-5 { grid-template-columns: 1fr 1fr; }
    .cta-band { padding: 40px 24px; border-radius: var(--radius-lg); }
    .contact-card { padding: 32px 20px; }
    .contact-info h2 { font-size: 2.25rem; }
    .contact-form { padding: 24px; }
    .faq-panel { padding: 36px 16px 20px; border-radius: var(--radius-lg); }
    .faq-intro { padding: 0 8px; }
    .faq-list details:nth-child(odd), .faq-list details:nth-child(4n) { margin-left: 0; }
    .faq-squiggle { width: 80px; }
    .faq-list summary { gap: 10px; padding: 16px 14px 16px 16px; font-size: 1rem; }
    .faq-list details p { padding: 0 16px 20px; }
    .ind-bento { grid-template-columns: 1fr; }
    .ind-photo { min-height: 300px; }
    .site-footer { margin: 0 8px 8px; border-radius: var(--radius-lg); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .header-actions .btn { padding: 9px 14px; font-size: 0.88rem; }
    .logo { font-size: 1.2rem; }
    .logo-mark { height: 1.6rem; }
    .contact-float { right: 16px; bottom: 16px; }
    .float-btn { width: 52px; height: 52px; }
}

/* =========================================================
   Photos and animation
   ========================================================= */
.service-media, .wide-media { overflow: hidden; }
.service-media { margin-top: 26px; border-radius: var(--radius-md); }
.service-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wide-media { margin-bottom: 20px; border-radius: var(--radius-lg); }
.wide-media img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.service-detail-head { display: flex; flex-direction: column; align-items: flex-start; }
.service-media { width: 100%; }

/* Page-load entrance */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-content > *,
.page-hero .container:not(.page-hero-split) > *,
.page-hero-split > div:first-child > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

.hero-content > :nth-child(2), .page-hero .container > :nth-child(2), .page-hero-split > div:first-child > :nth-child(2) { animation-delay: 0.1s; }
.hero-content > :nth-child(3), .page-hero .container > :nth-child(3), .page-hero-split > div:first-child > :nth-child(3) { animation-delay: 0.2s; }
.hero-content > :nth-child(4), .page-hero .container > :nth-child(4), .page-hero-split > div:first-child > :nth-child(4) { animation-delay: 0.3s; }
.hero-content > :nth-child(5), .page-hero-split > div:first-child > :nth-child(5) { animation-delay: 0.4s; }
.hero-visual { animation: rise 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

/* Cards arrive one after another (classes added by main.js) */
.js .stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.is-visible .stagger > *, .js .reveal.is-visible.stagger > * { opacity: 1; transform: none; }

/* Photos settle into place, then drift gently on scroll */
.img-reveal img {
    scale: 1.24;
    translate: 0 var(--py, 0px);
    transition: scale 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.img-reveal.is-shown img { scale: 1.1; }
.service-detail:hover .img-reveal.is-shown img, .wide-media.is-shown:hover img { scale: 1.16; }

/* Hover lift */
.value, .card, .stack-col, .process-steps-preview li, .systems-list li { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.value:hover, .card:hover, .stack-col:hover, .process-steps-preview li:hover, .systems-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

/* Technology cards ripple */
@keyframes tech-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (min-width: 761px) {
    .tech { animation: tech-bob 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.35s); }
    .tech:hover, .tech:focus-within { animation-play-state: paused; }
}

/* Slow-moving glow on dark and orange panels */
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-90px, 50px) scale(1.25); } }

.cta-band { position: relative; overflow: hidden; }
.cta-band > *, .faq-panel > * { position: relative; z-index: 1; }

.cta-band::before, .faq-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 154, 82, 0.4), transparent 70%);
    animation: drift 11s ease-in-out infinite;
    pointer-events: none;
}

/* Process line fills as you scroll */
.timeline::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 10px;
    width: 2px;
    height: calc((100% - 20px) * var(--progress, 0));
    background: var(--color-primary);
}

/* Example schedule bars grow in order */
.js .gantt-bar { transform: scaleX(0); transform-origin: left; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .is-visible .gantt-bar { transform: none; }
.gantt-row:nth-child(3) .gantt-bar { transition-delay: 0.1s; }
.gantt-row:nth-child(4) .gantt-bar { transition-delay: 0.2s; }
.gantt-row:nth-child(5) .gantt-bar { transition-delay: 0.3s; }
.gantt-row:nth-child(6) .gantt-bar { transition-delay: 0.4s; }
.gantt-row:nth-child(7) .gantt-bar { transition-delay: 0.5s; }

@media (max-width: 640px) {
    .timeline::after { left: 21px; }
    .wide-media img { aspect-ratio: 16 / 10; }
}

/* =========================================================
   Visual-first layouts
   ========================================================= */

.mini-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--color-primary-tint);
    color: var(--color-primary-deep);
}

.mini-icon svg { width: 24px; height: 24px; }
.value h3, .process-steps-preview h3 { margin-bottom: 0; }

.service-detail { grid-template-columns: 1fr 1fr; align-items: center; padding: 20px 20px 20px 44px; }
.service-detail .service-media { margin: 0; height: 100%; min-height: 320px; }
.service-detail .service-media img { height: 100%; aspect-ratio: auto; }
.service-detail:nth-child(even) { padding: 20px 44px 20px 20px; }
.service-detail:nth-child(even) .service-media { order: -1; }
.service-detail-head p { margin-bottom: 18px; }
.service-detail-head .check-list { width: 100%; margin-bottom: 20px; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }

.logo-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 12px;
    border-radius: var(--radius-md);
    background: var(--color-bg-white);
    color: var(--color-text-main);
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.logo-grid img { width: 44px; height: 44px; object-fit: contain; }

.systems-list { display: flex; flex-wrap: wrap; gap: 10px; }
.systems-list li { display: block; padding: 12px 20px; border-radius: var(--radius-full); }
.systems-list strong { font-size: 1rem; }

.receive { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.receive li { padding: 6px 14px; border-radius: var(--radius-full); background: var(--color-bg-warm); color: var(--color-text-main); font-size: 0.9rem; font-weight: 500; }

@media (max-width: 960px) {
    .service-detail, .service-detail:nth-child(even) { grid-template-columns: 1fr; padding: 16px 16px 28px; }
    .service-detail .service-media, .service-detail:nth-child(even) .service-media { order: -1; min-height: 220px; }
    .service-detail-head { padding: 0 12px; }
}

@media (max-width: 640px) {
}

/* =========================================================
   Own product showcase (home)
   ========================================================= */
.product {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 20px 20px 20px 56px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 0% 100%, rgba(205, 87, 0, 0.3), transparent 50%), var(--color-ink);
    color: #FFFFFF;
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.product-copy { align-self: center; padding: 36px 0; }

.product-status {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 154, 82, 0.16);
    color: var(--color-primary-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.product h2 { margin-bottom: 14px; color: #FFFFFF; font-size: clamp(2.1rem, 4vw, 3rem); }
.product-copy > p { max-width: 480px; color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; }

.product-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin: 28px 0 32px; }
.product-features li { display: flex; align-items: center; gap: 12px; color: #FFFFFF; font-weight: 600; }
.product-features .mini-icon { width: 38px; height: 38px; margin: 0; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: var(--color-primary-soft); }
.product-features .mini-icon svg { width: 19px; height: 19px; }

.product-media { min-height: 420px; overflow: hidden; border-radius: var(--radius-lg); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
    .product { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .product-copy { padding: 20px 12px; }
    .product-media { min-height: 260px; order: -1; }
}

/* =========================================================
   Full-picture heroes: the photo fills the width and runs
   under the glass navigation bar
   ========================================================= */
.hero, .page-hero-photo {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    margin-top: calc(var(--header-h) * -1);
    overflow: hidden;
    background: var(--color-ink);
}

.hero { min-height: min(100vh, 900px); padding: calc(var(--header-h) + 64px) 0 72px; }
.page-hero-photo { min-height: 620px; padding: calc(var(--header-h) + 56px) 0 64px; }

.hero .container, .page-hero-photo .container { width: 100%; }
.hero-inner, .page-hero-split { display: block; }

/* Take the photo out of the column and stretch it over the whole section */
.hero .hero-visual, .page-hero-photo .hero-visual { position: static; animation: none; }

.hero .hero-image-container, .page-hero-photo .hero-image-container {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 0;
    box-shadow: none;
    background: var(--color-ink);
}

.hero .hero-image-container img, .page-hero-photo .hero-image-container img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

/* Brand-coloured shading keeps the words readable */
.hero .hero-image-container::after, .page-hero-photo .hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 36, 36, 0.93) 0%, rgba(20, 36, 36, 0.78) 42%, rgba(20, 36, 36, 0.22) 76%, rgba(20, 36, 36, 0.12) 100%),
        linear-gradient(0deg, rgba(139, 59, 0, 0.3), transparent 45%);
}

.hero-content, .page-hero-split > div:first-child { position: relative; max-width: 700px; }
.hero h1, .page-hero-photo h1 { color: #FFFFFF; }
.hero .tone, .page-hero-photo .tone { color: rgba(255, 255, 255, 0.72); }
.hero .section-label { color: var(--color-primary-soft); }
.hero-lead, .page-hero-photo p { color: rgba(255, 255, 255, 0.86); }
.hero-points { color: rgba(255, 255, 255, 0.9); }
.hero-points li::before { background: var(--color-primary-soft); }
.page-hero-photo .breadcrumb, .page-hero-photo .breadcrumb a { color: rgba(255, 255, 255, 0.78); }
.page-hero-photo .breadcrumb a:hover { color: #FFFFFF; }

.page-hero-photo .chip { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
.page-hero-photo a.chip:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--color-ink); }

/* Floating cards sit on the photo, clear of the WhatsApp and email buttons */
.hero .floating-card, .page-hero-photo .floating-card { right: max(120px, calc((100vw - 1152px) / 2)); left: auto; top: auto; }
.hero .card-1, .page-hero-photo .card-1 { bottom: 168px; }
.hero .card-2, .page-hero-photo .card-2 { bottom: 72px; right: max(200px, calc((100vw - 1152px) / 2 + 80px)); }

.hero + .stack-strip { margin-top: 16px; }

@media (max-width: 1180px) {
    .hero .floating-card, .page-hero-photo .floating-card { display: none; }
}

@media (max-width: 760px) {
    .hero .hero-image-container::after, .page-hero-photo .hero-image-container::after {
        background: linear-gradient(0deg, rgba(20, 36, 36, 0.92) 0%, rgba(20, 36, 36, 0.72) 100%);
    }

    .hero { min-height: 640px; padding: calc(var(--header-h) + 44px) 0 48px; }
    .page-hero-photo { min-height: 480px; padding: calc(var(--header-h) + 36px) 0 44px; }
}

.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-values .value { background: var(--color-bg-warm); }
.about-values h3 { margin-bottom: 6px; }

@media (max-width: 760px) {
    .about-values { grid-template-columns: 1fr; }
}

.intro { padding: 72px 0; text-align: center; }
.intro h2 { margin-bottom: 18px; font-size: clamp(2.1rem, 4vw, 3rem); }
.intro p { max-width: 760px; margin: 0 auto 18px; font-size: 1.15rem; }

@media (max-width: 640px) {
    .intro { padding: 52px 0; }
    .intro p { font-size: 1.05rem; }
}

.floating-card { padding: 14px 22px; }

/* =========================================================
   Services row: a picture widens and reveals its details
   ========================================================= */
.svc-row { display: flex; gap: 12px; height: 480px; }

.svc-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-ink);
    color: #FFFFFF;
    text-decoration: none;
    transition: flex-grow 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.svc-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.svc-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 36, 36, 0.92), rgba(20, 36, 36, 0.12) 62%); }
.svc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: block; padding: 18px 14px; }
.svc-title { display: block; font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; line-height: 1.2; transition: font-size 0.3s ease; }

.svc-info {
    display: block;
    width: 340px;
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.25s ease, margin 0.3s ease;
}

.svc-more { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; }

/* Open: the picture under the cursor, or the first one while nothing is hovered */
.svc-panel:hover, .svc-panel:focus-visible, .svc-row:not(:hover):not(:focus-within) .svc-panel:first-child { flex-grow: 4.2; box-shadow: var(--shadow-strong); }
.svc-panel:hover img, .svc-panel:focus-visible img, .svc-row:not(:hover):not(:focus-within) .svc-panel:first-child img { transform: scale(1.05); }

.svc-panel:hover .svc-title, .svc-panel:focus-visible .svc-title, .svc-row:not(:hover):not(:focus-within) .svc-panel:first-child .svc-title { font-size: 1.7rem; }
.svc-panel:hover .svc-info, .svc-panel:focus-visible .svc-info, .svc-row:not(:hover):not(:focus-within) .svc-panel:first-child .svc-info { max-height: 200px; margin-top: 10px; opacity: 1; transition-delay: 0.12s; }

/* Touch screens have no cursor: stack the pictures with details always visible */
@media (max-width: 860px), (hover: none) {
    .svc-row { flex-direction: column; height: auto; }
    .svc-panel { flex: none; height: 250px; }
    .svc-title { font-size: 1.4rem !important; }
    .svc-info { width: auto; max-height: 200px; margin-top: 8px; opacity: 1; }
}

/* =========================================================
   Plain white layout: content sits directly on the page
   ========================================================= */
body::before, body::after { display: none; }

.section-alt, .stack-strip { margin: 0; border-radius: 0; background: transparent; }
.section { padding: 88px 0; }

.section-head { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.ind-head { text-align: left; }

/* No boxes around text */
.card, .section-alt .card, .value, .about-values .value, .phase-body, .service-detail, .industry,
.form-card, .ownership-table, .timeline-example, .service-list, .process-steps-preview li { background: transparent; }

.value, .about-values .value { padding: 0; text-align: center; }
.value .mini-icon { margin-left: auto; margin-right: auto; }
.value:hover, .card:hover, .process-steps-preview li:hover { transform: none; box-shadow: none; }

.card { padding: 0; }
.grid-2 { gap: 48px; }


.service-detail, .service-detail:nth-child(even) { gap: 64px; margin-bottom: 72px; padding: 0; }
.service-detail-head { padding: 0; }
.industry { gap: 56px; padding: 0; }
.industry + .industry { margin-top: 72px; }
.industry-body { padding: 0; align-self: center; }
.phase-body { padding: 8px 0 28px; }
.form-card { padding: 0; }
.timeline-example { padding: 0; border-radius: 0; }

/* Pictures stand alone on the white page */
.service-media, .split-media, .industry-media, .wide-media, .logo-grid li {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

.logo-grid li { box-shadow: 0 8px 22px rgba(47, 79, 79, 0.12); border: 1px solid var(--color-line); }

.ps-box.problem, .receive li, .systems-list li { background: #FFFFFF; border: 1px solid var(--color-line-strong); }
.choice-box { background: #FFFFFF; }

@media (max-width: 960px) {
    .service-detail, .service-detail:nth-child(even), .industry { gap: 28px; }
    .industry + .industry { margin-top: 56px; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
}

/* Navigation bar takes the footer colour over white sections */
.site-header { transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.logo, .logo .text-accent, .logo-mark, .main-nav a { transition: color 0.3s ease, filter 0.3s ease; }

.site-header.is-dark {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: var(--color-ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.site-header.is-dark .logo { color: #FFFFFF; }
.site-header.is-dark .logo .text-accent { color: var(--color-primary-soft); }
.site-header.is-dark .logo-mark { filter: invert(1); }

@media (min-width: 861px) {
    .site-header.is-dark .main-nav a { color: rgba(255, 255, 255, 0.85); }
    .site-header.is-dark .main-nav a:hover, .site-header.is-dark .main-nav a[aria-current="page"] { color: var(--color-primary-soft); }
}

/* Enlarge from the left edge so the person sits to the right of the headline */
@media (min-width: 761px) {
    .page-hero-photo .photo-subject-right img { width: 150%; max-width: none; object-position: 50% 22%; }
}

.media-pill { position: absolute; top: 24px; right: 0; width: fit-content; max-width: calc(100% - 24px); padding-right: 24px; border-radius: 999px 0 0 999px; text-decoration: none; transition: background 0.2s ease; }
.media-pill-low { top: auto; bottom: 24px; }
.media-pill:hover .ind-arrow { transform: translateX(3px); }

/* Process page: plain white footer, because the dark FAQ panel sits right above it */
.page-process .site-footer { margin: 0; border-top: 1px solid var(--color-line); border-radius: 0; background: #FFFFFF; color: var(--color-text-muted); }
.page-process .footer-logo { color: var(--color-ink); }
.page-process .footer-logo .logo-mark { filter: none; }
.page-process .footer-logo .text-accent { color: var(--color-primary); }
.page-process .brand-bio { color: var(--color-text-muted); }
.page-process .footer-column h4 { color: var(--color-ink); }
.page-process .footer-column a:hover, .page-process .footer-legal a:hover { color: var(--color-primary); }
.page-process .footer-bottom { border-top-color: var(--color-line); }

/* =========================================================
   How a project runs: dark panel over a full-width photo
   ========================================================= */
.steps-band { position: relative; overflow: hidden; padding: 270px 24px 24px; border-radius: var(--radius-xl); }
.steps-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

.process-band {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 154, 82, 0.35);
    border-radius: var(--radius-lg);
    background: rgba(20, 36, 36, 0.94);
    list-style: none;
}

.process-band li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: -1px 0 0 -1px;
    padding: 30px 28px;
    border-top: 1px solid rgba(255, 154, 82, 0.28);
    border-left: 1px solid rgba(255, 154, 82, 0.28);
}

.band-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border: 1px solid var(--color-primary-soft);
    border-radius: 50%;
    color: var(--color-primary-soft);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.band-icon svg { width: 25px; height: 25px; }
.process-band li:hover .band-icon { background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; }
.band-text { display: block; }
.process-band h3 { margin-bottom: 6px; color: #FFFFFF; font-size: 1.2rem; }
.process-band p { color: rgba(255, 255, 255, 0.75); font-size: 0.97rem; line-height: 1.5; }

@media (max-width: 960px) {
    .process-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .steps-band { padding: 130px 12px 12px; border-radius: var(--radius-lg); }
    .process-band { grid-template-columns: 1fr; }
    .process-band li { padding: 22px 18px; }
}

.product + .product { margin-top: 20px; }
.product-note { color: var(--color-text-main); font-size: 0.97rem; }
.product-note a { color: var(--color-primary); font-weight: 600; }

@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;
    }

    .js .reveal { opacity: 1; transform: none; }
    *, *::before, *::after { animation-delay: 0s !important; }
    .js .gantt-bar { transform: none; }
    .cta-band::before, .faq-panel::before, .tech { animation: none !important; }
}
