:root {
  --color-accent: #ffd600;
  --color-accent-soft: #ffe765;
  --color-bg-dark: #11100f;
  --color-bg-dark-soft: #23211e;
  --color-bg-light: #f4f2ec;
  --color-surface: #fff;
  --color-text-main: #11100f;
  --color-text-muted: #716e67;
  --color-text-muted-strong: #45423d;
  --ink: var(--color-text-main);
  --ink-soft: var(--color-bg-dark-soft);
  --paper: var(--color-bg-light);
  --white: var(--color-surface);
  --yellow: var(--color-accent);
  --yellow-soft: var(--color-accent-soft);
  --muted: var(--color-text-muted);
  --line: rgba(17, 16, 15, 0.15);
  --radius: 1.5rem;
  --container: 76rem;
  --shadow: 0 1.5rem 4rem rgba(17, 16, 15, 0.13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #2d6cff; outline-offset: 4px; }
.container { width: min(calc(100% - 2.5rem), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 0.75rem; left: 0.75rem; transform: translateY(-150%); padding: 0.75rem 1rem; background: var(--white); border-radius: 0.5rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(244, 242, 236, 0.86); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: border-color 0.25s ease; }
.site-header.scrolled { border-color: var(--line); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.brand-avatar { width: 2.75rem; aspect-ratio: 1; object-fit: cover; background: var(--ink); border-radius: 50%; box-shadow: 0 .25rem .8rem rgba(17,16,15,.16); }
.brand small { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 2rem; margin-left: auto; }
.desktop-nav a { position: relative; font-size: 0.93rem; font-weight: 650; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: -0.35rem; left: 0; height: 2px; transform: scaleX(0); background: var(--ink); transform-origin: right; transition: transform 0.25s ease; }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.button { min-height: 3.5rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0.9rem 1.15rem; color: var(--ink); background: var(--yellow); border: 1px solid var(--yellow); border-radius: 0.75rem; font-weight: 800; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.button:hover { transform: translateY(-3px); background: var(--yellow-soft); border-color: var(--yellow-soft); }
.button-small { min-height: 2.8rem; padding: 0.65rem 0.9rem; border-radius: 0.65rem; }
.button-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: var(--white); }
.button-ghost:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.menu-button, .mobile-nav { display: none; }

.hero { min-height: calc(100vh - 5.25rem); display: grid; align-items: center; color: var(--white); background: var(--ink); padding: 6rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.section-number { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 12ch; margin-bottom: 1.5rem; font-size: clamp(3.2rem, 6.2vw, 6.8rem); line-height: 0.93; letter-spacing: -0.065em; }
h1 em { color: var(--yellow); font-style: normal; }
.hero-lead { max-width: 38rem; margin-bottom: 2.25rem; color: rgba(255,255,255,0.72); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual { position: relative; min-height: 32rem; overflow: hidden; padding: 1.25rem; color: var(--ink); background: var(--yellow); border-radius: 2rem; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.hero-visual::before { content: ""; position: absolute; inset: 0; opacity: 0.18; background-image: linear-gradient(rgba(17,16,15,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(17,16,15,.4) 1px, transparent 1px); background-size: 3.5rem 3.5rem; }
.visual-topline, .visual-bottom { position: relative; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.metric-main { position: relative; display: flex; align-items: end; justify-content: space-between; margin-top: 6.5rem; border-bottom: 2px solid var(--ink); }
.metric-main strong { font-size: clamp(5rem, 10vw, 9rem); line-height: 0.9; letter-spacing: -0.08em; }
.metric-main strong span { font-size: 0.45em; }
.metric-label { max-width: 8rem; margin-bottom: 0.8rem; font-weight: 800; line-height: 1.2; }
.bars { position: relative; height: 9rem; display: flex; align-items: end; gap: .6rem; margin-top: 2rem; }
.bars span { width: 100%; height: var(--bar); background: var(--ink); border-radius: .25rem .25rem 0 0; }
.visual-bottom { margin-top: 1.4rem; flex-wrap: wrap; }
.visual-bottom span { padding: 0.4rem 0.55rem; border: 1px solid rgba(17,16,15,.4); border-radius: 99px; }

.trust-strip { padding: 1.25rem 0; background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: 0.8fr 1.6fr 1fr 1fr; gap: 1rem; }
.trust-grid article { min-height: 10rem; display: flex; flex-direction: column; justify-content: flex-start; padding: calc(2rem - 3px) 1.5rem 1.5rem; color: var(--ink); background: var(--white); border: 1px solid rgba(17,16,15,.08); border-top: 4px solid var(--yellow); border-radius: var(--radius); box-shadow: 0 .55rem 1.5rem rgba(17,16,15,.06); }
.trust-grid strong { min-height: 1.25em; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.04em; }
.trust-grid span { max-width: 15rem; color: var(--color-text-muted-strong); font-size: 0.9rem; font-weight: 600; }

.section { padding: clamp(5.5rem, 10vw, 9rem) 0; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.section-heading h2 { max-width: 13ch; margin: 0; font-size: clamp(2.5rem, 5vw, 4.9rem); line-height: 0.98; letter-spacing: -0.06em; }
.section-heading h2 span { color: var(--muted); }
.about { background: var(--white); }
.about .split-layout { gap: clamp(2.5rem, 6vw, 6rem); padding: clamp(2rem, 5vw, 4rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.about .section-number { color: var(--color-text-muted-strong); }
.about .section-heading h2 { color: var(--ink); }
.about .section-heading h2 span { color: var(--ink); box-shadow: inset 0 -.18em 0 var(--yellow); }
.about-copy { padding-left: clamp(2rem, 4vw, 4rem); border-left: 1px solid rgba(17,16,15,.12); }
.about-copy p { max-width: 36rem; color: var(--color-text-muted-strong); }
.about-copy .large-copy { color: var(--ink); font-size: clamp(1.35rem, 2.1vw, 1.85rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; }

.services { background: var(--white); }
.services .section-heading h2 span { color: var(--ink); font-size: inherit; font-weight: inherit; box-shadow: inset 0 -.22em 0 var(--yellow-soft); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3.5rem; }
.section-heading-row > p { max-width: 27rem; margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.service-card { min-height: 38rem; display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); border-radius: var(--radius); }
.service-card-accent { background: var(--yellow); }
.service-index { margin-left: auto; color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.service-card h3 { margin: 2rem 0 1rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.055em; }
.service-card p { max-width: 31rem; color: var(--muted); }
.service-card ul { display: grid; gap: 0.55rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.service-card li { display: flex; gap: 0.8rem; }
.service-card li::before { content: "—"; }
.service-card > a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); font-weight: 800; }

.cases { color: var(--white); background: var(--ink); }
.cases .section-number { color: rgba(255,255,255,.55); }
.cases .section-heading h2 span { color: var(--yellow); }
.case-list { display: grid; gap: 1.25rem; }
.case-study { min-width: 0; display: grid; grid-template-columns: minmax(18rem, .78fr) minmax(0, 1.22fr); overflow: hidden; background: var(--ink-soft); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.case-study:nth-child(even) { grid-template-columns: minmax(0, 1.22fr) minmax(18rem, .78fr); }
.case-study:nth-child(even) .case-study-media { order: -1; }
.case-study-content { min-width: 0; display: flex; flex-direction: column; padding: clamp(1.6rem, 4vw, 3.2rem); }
.case-period { margin-bottom: 2rem; color: var(--yellow); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-study h3 { max-width: 13ch; margin-bottom: 1rem; font-size: clamp(2rem, 3.7vw, 3.9rem); line-height: .98; letter-spacing: -.055em; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: auto 0 2rem; padding-top: 3rem; }
.case-metric { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); }
.case-metric strong { display: block; color: var(--yellow); font-size: clamp(1.15rem, 1.65vw, 1.8rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.case-metric span { min-height: 2.5em; display: block; margin-top: .45rem; color: rgba(255,255,255,.68); font-size: .78rem; line-height: 1.25; }
.case-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1rem 0; color: var(--white); background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.18); cursor: pointer; font-weight: 800; text-align: left; }
.case-action span { color: var(--yellow); font-size: 1.3rem; transition: transform .2s ease; }
.case-action:hover span { transform: translateX(.3rem); }
.case-study-media { min-width: 0; display: grid; place-items: center; padding: clamp(.75rem, 2vw, 1.5rem); background: var(--paper); }
.case-study-media img { width: 100%; height: auto; object-fit: contain; border-radius: .8rem; box-shadow: 0 1rem 3rem rgba(17,16,15,.15); }

.reviews { background: var(--yellow); }
.reviews .section-heading h2 span { color: rgba(17,16,15,.52); box-shadow: none; }
.reviews .section-heading-row > p, .reviews .section-number { color: rgba(17,16,15,.62); }
.review-track { display: flex; align-items: flex-start; gap: 1rem; overflow-x: auto; padding: 0 0 1rem; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.review-track button { width: min(47rem, 82vw); min-width: min(47rem, 82vw); overflow: hidden; padding: 0; background: var(--white); border: 0; border-radius: 1rem; box-shadow: 0 1rem 2.5rem rgba(74,47,0,.12); cursor: zoom-in; scroll-snap-align: start; }
.review-track img { width: 100%; height: auto; object-fit: contain; }
.swipe-hint { margin: 1.5rem 0 0; font-size: 0.85rem; font-weight: 700; }


.process { background: var(--white); }
.process .section-heading h2 span { color: var(--ink); box-shadow: inset 0 -.18em 0 var(--yellow); }
.process-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.process-grid > * { min-width: 0; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.process-list li > div { min-width: 0; }
.process-list li > span { align-self: start; width: fit-content; min-width: 3.5rem; padding: .22em .28em .26em; color: var(--ink); background: var(--yellow); border-radius: .5rem; font-size: clamp(1.9rem, 3vw, 2.65rem); font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.process-list h3 { margin-bottom: 0.45rem; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.process-list p { margin-bottom: 0; color: var(--color-text-muted-strong); font-size: 1.03rem; }

.cta { padding: 1rem; color: var(--white); background: var(--white); }
.cta-inner { width: min(100%, 90rem); padding: clamp(4rem, 9vw, 8rem); background: var(--ink); border-radius: 2rem; }
.cta h2 { margin-bottom: 1.5rem; font-size: clamp(3rem, 6.5vw, 6.5rem); line-height: 0.94; letter-spacing: -0.065em; }
.cta h2 span { color: var(--yellow); }
.cta p:not(.section-number) { max-width: 35rem; margin-bottom: 2rem; color: rgba(255,255,255,.65); font-size: 1.1rem; }
.button-outline-light { color: var(--white); background: transparent; border-color: rgba(255,255,255,.3); }
.button-outline-light:hover { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.footer { padding: 5rem 0 2rem; color: var(--white); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.brand-light small { color: rgba(255,255,255,.55); }
.footer-grid p { max-width: 20rem; margin: 1.3rem 0 0; color: rgba(255,255,255,.55); }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; }
.footer-grid > div > span { margin-bottom: 0.45rem; color: rgba(255,255,255,.45); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 4rem; padding-top: 1.5rem; color: rgba(255,255,255,.48); border-top: 1px solid rgba(255,255,255,.12); font-size: 0.8rem; }

.lightbox { width: min(94vw, 85rem); max-width: none; padding: 0; background: transparent; border: 0; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.lightbox img { max-height: 88vh; margin: auto; object-fit: contain; border-radius: 0.75rem; }
.lightbox-close { position: fixed; z-index: 2; top: 1rem; right: 1rem; width: 3rem; aspect-ratio: 1; color: var(--ink); background: var(--white); border: 0; border-radius: 50%; cursor: pointer; font-size: 2rem; line-height: 1; }
.modal-open { overflow: hidden; }
.case-dialog { width: min(94vw, 78rem); max-width: none; max-height: 92vh; overflow: auto; padding: 0; color: var(--ink); background: var(--paper); border: 0; border-radius: 1.25rem; box-shadow: var(--shadow); }
.case-dialog::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(6px); }
.case-dialog-close { position: sticky; z-index: 3; top: 1rem; float: right; width: 3rem; aspect-ratio: 1; margin: 1rem 1rem -4rem 0; color: var(--white); background: var(--ink); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; cursor: pointer; font-size: 1.8rem; line-height: 1; }
.case-dialog-inner { padding: clamp(1.25rem, 4vw, 3rem); }
.case-dialog-header { padding-right: 4rem; }
.case-dialog-kicker { margin-bottom: .6rem; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-dialog-header h2 { margin-bottom: 2rem; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.case-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.case-tab { padding: .7rem 1rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 750; }
.case-tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); }
.case-dialog-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.case-dialog-metric { padding: 1.15rem; background: var(--white); border-radius: .9rem; }
.case-dialog-metric span { display: block; color: var(--muted); font-size: .8rem; }
.case-dialog-metric strong { display: block; margin-top: .2rem; font-size: clamp(1.5rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.case-dialog-metric:last-child strong { font-size: clamp(1.3rem, 2.6vw, 2.2rem); }
.case-dialog-metric strong.is-positive { color: #2c7350; }
.case-dialog-metric strong.is-negative { color: var(--ink); }
.case-dialog-figure { margin: 0; padding: .75rem; background: var(--paper); border-radius: 1rem; }
.case-dialog-figure img { width: 100%; height: auto; max-height: 62vh; object-fit: contain; border-radius: .65rem; }
.case-dialog-figure figcaption { padding: .75rem .25rem .1rem; color: var(--muted); font-size: .84rem; }

.reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-button { width: 2.8rem; height: 2.8rem; display: grid; place-content: center; gap: 0.4rem; margin-left: auto; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
  .menu-button span { width: 1.1rem; height: 2px; background: var(--ink); transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; gap: 0; padding: 0.5rem 1.25rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-weight: 750; }
  .hero { min-height: auto; }
  .hero-grid, .split-layout, .process-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 27rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .section-heading-row { display: grid; }
  .about-copy { padding: 2rem 0 0; border-top: 1px solid rgba(17,16,15,.12); border-left: 0; }
  .case-study, .case-study:nth-child(even) { grid-template-columns: minmax(15rem, .78fr) minmax(0, 1.22fr); }
}

@media (max-width: 760px) {
  .case-study, .case-study:nth-child(even) { display: flex; flex-direction: column; }
  .case-study-content { display: contents; }
  .case-study h3 { order: 1; max-width: 18ch; margin: 0 0 .7rem; padding: 1.4rem 1.4rem 0; }
  .case-period { order: 2; margin: 0 0 1rem; padding: 0 1.4rem; }
  .case-metrics { order: 4; margin: 0 1.4rem 1.5rem; padding-top: 1.5rem; }
  .case-study .case-study-media, .case-study:nth-child(even) .case-study-media { order: 5; }
  .case-action { order: 6; width: auto; margin: 0 1.4rem; padding: 1.25rem 0 1.4rem; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 1.5rem), var(--container)); }
  .header-inner { min-height: 4.5rem; }
  .hero { padding: 4rem 0 1rem; }
  .hero-grid { gap: 3.5rem; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 25rem; padding: 1rem; border-radius: 1.25rem; }
  .metric-main { margin-top: 4rem; }
  .visual-bottom { justify-content: flex-start; }
  .trust-strip { padding: .75rem 0; }
  .trust-grid { width: 100%; grid-template-columns: 1fr; gap: .75rem; }
  .trust-grid article { min-height: 7.5rem; padding: 1.25rem; }
  .trust-grid strong { font-size: 1.5rem; }
  .trust-grid span { font-size: 0.78rem; }
  .section { padding: 5rem 0; }
  .section-heading-row { margin-bottom: 2rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 34rem; }
  .case-metric strong { font-size: clamp(1.05rem, 4.8vw, 1.55rem); }
  .case-dialog { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); border-radius: 1rem; }
  .case-dialog-inner { padding: 1rem; }
  .case-dialog-metrics { gap: .5rem; }
  .case-dialog-metric { padding: .85rem; }
  .case-dialog-metric strong { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .case-dialog-metric:last-child strong { font-size: clamp(1rem, 4.8vw, 1.4rem); }
  .case-dialog-metric span { min-height: 2.5em; line-height: 1.2; }
  .review-track { margin-right: -0.75rem; }
  .review-track button { width: 92vw; min-width: 92vw; }
  .cta { padding: 0.5rem; }
  .cta-inner { width: 100%; padding: 4rem 1.25rem; border-radius: 1.25rem; }
  .cta h2 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { gap: 1rem; flex-direction: column; }
}

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