:root {
    --bg: #f7f4ee;
    --bg-2: #efeae0;
    --card: #ffffff;
    --ink: #14213d;
    --text: #2a3142;
    --muted: #5d6576;
    --line: rgba(20, 33, 61, 0.1);
    --gold: #c8962e;
    --gold-2: #e0b04a;
    --radius: 16px;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --head: 'Fraunces', Georgia, serif;
    --body: 'Inter', system-ui, sans-serif;
    --shadow: 0 1px 2px rgba(20,33,61,.05), 0 12px 32px -12px rgba(20,33,61,.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); }
h2 { font-size: clamp(30px, 4vw, 46px); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- progress bar ---------- */
.progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    transform-origin: 0 50%; transform: scaleX(0); z-index: 200;
}

/* ---------- header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .4s, box-shadow .4s, color .4s;
    color: #fff;
}
.site-header.scrolled {
    background: rgba(247, 244, 238, 0.9);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 var(--line);
    color: var(--ink);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--head); font-size: 23px; font-weight: 500; text-decoration: none;
}
.logo b { font-weight: 600; color: var(--gold-2); }
.scrolled .logo b { color: var(--gold); }
.logo-mark {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(140deg, var(--gold-2), var(--gold));
    color: #fff; font-family: var(--head); font-size: 18px; font-weight: 600;
    box-shadow: 0 6px 16px -6px rgba(200,150,46,.7);
    transition: transform .5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; opacity: .9; transition: opacity .3s; }
.nav-links a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
    background: var(--gold-2); transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
    padding: 9px 22px; border-radius: 999px; background: var(--gold); color: #fff !important; opacity: 1 !important;
    transition: background .3s, transform .3s var(--ease) !important;
}
.nav-cta:hover { background: var(--ink); transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 34px; position: relative; color: inherit; }
.nav-toggle span {
    position: absolute; left: 5px; right: 5px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .35s var(--ease), opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-open .nav-toggle { color: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 30px; border-radius: 999px;
    font-family: var(--body); font-weight: 600; font-size: 16px;
    text-decoration: none; cursor: pointer; border: 0;
    transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
    position: relative; overflow: hidden;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 10px 26px -10px rgba(200,150,46,.8); }
.btn-primary::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); background: #b8862a; box-shadow: 0 16px 34px -10px rgba(200,150,46,.9); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }

/* ---------- hero ---------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; overflow: hidden; isolation: isolate; color: #fff;
}
.hero-slides, .slide, .hero-shade { position: absolute; inset: 0; }
.hero-slides { z-index: -2; background: var(--ink); }
.slide {
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.16);
    transition: opacity 1.8s ease, transform 9s linear;
}
.slide.is-active { opacity: 1; transform: scale(1.02); }
.hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(14,24,46,.9) 0%, rgba(14,24,46,.72) 45%, rgba(14,24,46,.3) 100%),
        linear-gradient(0deg, rgba(14,24,46,.55) 0%, transparent 35%);
}
.hero-inner {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
    padding-top: 120px; padding-bottom: 110px; width: 100%;
}
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { color: #fff; font-size: clamp(44px, 6.8vw, 84px); margin-bottom: 26px; }
.hero h1 em {
    font-style: italic; font-weight: 500;
    background: linear-gradient(90deg, #f3cf7a, var(--gold-2) 50%, #f7e2ad);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.86); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* task card */
.taskcard {
    background: rgba(255,255,255,.96); color: var(--text);
    border-radius: 18px; padding: 26px 26px 16px;
    box-shadow: 0 40px 80px -24px rgba(0,0,0,.55);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.task-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.task-date { font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--ink); }
.task-count { font-size: 13px; color: var(--muted); background: var(--bg); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.task-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.task-bar { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; margin-bottom: 8px; }
.task-bar span {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    transition: width .6s var(--ease);
}
.task-list { list-style: none; }
.task-list li {
    display: flex; align-items: center; gap: 14px; padding: 13px 0;
    border-bottom: 1px solid var(--line); font-size: 15px; transition: color .4s;
}
.task-list li:last-child { border-bottom: 0; }
.task-list i {
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid rgba(20,33,61,.22); position: relative;
    transition: background .35s, border-color .35s, transform .35s var(--ease);
}
.task-list i::after {
    content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
    transition: transform .3s var(--ease) .1s;
}
.task-list span { position: relative; }
.task-list span::after {
    content: ""; position: absolute; left: 0; top: 52%; height: 1.5px; width: 100%;
    background: var(--muted); transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease) .15s;
}
.task-list li.done { color: var(--muted); }
.task-list li.done i { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.task-list li.done i::after { transform: rotate(45deg) scale(1); }
.task-list li.done span::after { transform: scaleX(1); }

.hero-dots { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button {
    width: 34px; height: 4px; border: 0; border-radius: 4px; cursor: pointer;
    background: rgba(255,255,255,.3); position: relative; overflow: hidden;
}
.hero-dots button::after {
    content: ""; position: absolute; inset: 0; background: var(--gold-2);
    transform: scaleX(0); transform-origin: left;
}
.hero-dots button.is-active::after { animation: fill var(--slide-ms, 7000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.scroll-cue {
    position: absolute; right: 40px; bottom: 30px; width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.scroll-cue span {
    position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
    background: #fff; border-radius: 2px; animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease); }
.flip .reveal-img { clip-path: inset(0 0 0 100% round var(--radius)); }
.reveal-img.in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* ---------- sections ---------- */
section { position: relative; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.sub { margin: 20px 0 36px; }
.section-head.sub h3 { font-size: clamp(24px, 2.6vw, 32px); }
.section-sub { color: var(--muted); font-size: 18px; margin-top: 18px; }

.services { padding: 130px 0 120px; }
.feature-row {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center;
    margin-bottom: 120px;
}
.feature-row.flip .feature-media { order: 2; }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.feature-media img {
    position: absolute; left: 0; top: -7.5%; width: 100%; height: 115%; object-fit: cover;
    transform: translateY(var(--py, 0px)) scale(1.05);
    transition: transform .2s linear;
    will-change: transform;
}
.feature-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(14,24,46,.55));
}
.feature-media figcaption {
    position: absolute; left: 20px; bottom: 16px; z-index: 1;
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.feature-text .num {
    font-family: var(--head); font-size: 96px; font-weight: 500; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.2px var(--gold);
    display: block; margin-bottom: 8px; opacity: .7;
}
.feature-text h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.feature-text p { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text); font-weight: 500; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(200,150,46,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8962e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* more-services cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    --mx: 50%; --my: 50%;
    position: relative; padding: 34px 30px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); overflow: hidden;
    box-shadow: 0 1px 2px rgba(20,33,61,.04);
    transition: transform .5s var(--ease), box-shadow .5s, border-color .4s, opacity 1s var(--ease);
}
.card::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
    background: radial-gradient(360px circle at var(--mx) var(--my), rgba(200,150,46,.12), transparent 45%);
}
.card:hover { border-color: rgba(200,150,46,.4); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card.in:hover { transform: translateY(-6px); }
.card svg {
    position: relative; width: 48px; height: 48px; padding: 11px; border-radius: 12px; margin-bottom: 20px;
    fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    background: rgba(200,150,46,.1);
}
.card h3 { position: relative; font-size: 21px; margin-bottom: 10px; }
.card p { position: relative; color: var(--muted); font-size: 15.5px; }

/* products */
.products { padding: 120px 0; background: var(--bg-2); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 1px 2px rgba(20,33,61,.05);
    transition: transform .5s var(--ease), box-shadow .5s, opacity 1s var(--ease);
}
.product.in:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .product-img img { transform: scale(1.08); }
.product figcaption { padding: 22px 22px 26px; }
.product h3 { font-size: 19px; margin-bottom: 8px; }
.product p { color: var(--muted); font-size: 15px; }

/* stats */
.stats { padding: 140px 0; overflow: hidden; isolation: isolate; color: #fff; }
.stats-bg {
    position: absolute; inset: -20% 0; z-index: -1;
    background: url(/img/stats-office.jpg) center / cover no-repeat;
    transform: translateY(var(--py, 0px)); will-change: transform;
}
.stats-bg::after { content: ""; position: absolute; inset: 0; background: rgba(14,24,46,.78); }
.stats h2 { color: #fff; }
.stats .eyebrow { color: var(--gold-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
    text-align: center; padding: 40px 20px; border-radius: var(--radius);
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat strong {
    display: block; font-family: var(--head); font-size: clamp(40px, 5vw, 60px); font-weight: 600;
    color: var(--gold-2); line-height: 1.1; margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.stat span { color: rgba(255,255,255,.85); font-size: 16px; }

/* about */
.about { padding: 140px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-media { position: relative; padding-bottom: 70px; }
.about-main { width: 88%; height: auto; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.about-float {
    position: absolute; right: 0; bottom: 0; width: 52%; height: auto;
    border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover;
    border: 6px solid var(--bg); box-shadow: 0 30px 60px -24px rgba(20,33,61,.5);
}
.about-float.in { animation: float 8s ease-in-out 1.2s infinite; }
.about-text h2 { margin-bottom: 26px; }
.about-text p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }

/* contact */
.contact { padding: 140px 0; overflow: hidden; isolation: isolate; color: #fff; }
.contact-bg {
    position: absolute; inset: 0; z-index: -1;
    background: url(/img/contact-notes.jpg) center / cover no-repeat;
}
.contact-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14,24,46,.92) 0%, rgba(14,24,46,.8) 50%, rgba(14,24,46,.55) 100%);
}
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--gold-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contact-copy p:not(.eyebrow) { color: rgba(255,255,255,.85); font-size: 18px; margin-top: 22px; max-width: 440px; }
.contact-form {
    display: grid; gap: 18px; padding: 38px; border-radius: var(--radius);
    background: var(--card); color: var(--text);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea {
    font: inherit; font-size: 15px; font-weight: 400; color: var(--text);
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 10px; padding: 13px 15px; resize: vertical;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--gold); background: #fff;
    box-shadow: 0 0 0 4px rgba(200,150,46,.18);
}
.contact-form .invalid { border-color: #dc2626; }
.contact-form button { justify-self: start; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #dc2626; }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-inner .logo { font-size: 19px; color: #fff; }
.credit a { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .taskcard { max-width: 520px; }
    .feature-row, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-row.flip .feature-media { order: 0; }
    .feature-row { margin-bottom: 90px; }
    .cards { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .nav-toggle { display: block; z-index: 2; }
    .nav-links {
        position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
        background: var(--bg); color: var(--ink);
        opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
    }
    .nav-links a { font-size: 22px; }
    .nav-open .nav-links { opacity: 1; visibility: visible; }
    .nav-open .logo { color: var(--ink); position: relative; z-index: 2; }
    .cards, .field-row, .product-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 14px; }
    .stat { padding: 28px 10px; }
    .services, .products, .about, .stats, .contact { padding: 96px 0; }
    .section-head { margin-bottom: 44px; }
    .feature-text .num { font-size: 64px; }
    .taskcard { padding: 22px 20px 10px; }
    .task-list li { font-size: 14px; }
    .scroll-cue { display: none; }
    .contact-form { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .reveal-img, .flip .reveal-img { clip-path: none; }
    .slide { transform: none; }
}
