/* ═══ Smereka Tech — v2 ═══════════════════════════════════════════ */

:root {
    /* greens */
    --green-deep:    #002912;  /* page + hero background */
    --green-mid:     #00351a;  /* alternate dark section */
    --green-dark:    #003d1a;  /* card hover */
    --green-bright:  #006227;  /* accent on light backgrounds */
    --accent:        #7fbf99;  /* accent on dark backgrounds */
    --accent-hi:     #a5d4b8;

    /* neutrals */
    --paper:      #ffffff;
    --cream:      #e8efe9;
    --ink:        #0e1f15;
    --ink-soft:   #3a4c41;
    --ink-muted:  #5a7263;

    /* text on dark */
    --on-dark-90: rgba(232, 239, 233, 0.90);
    --on-dark-75: rgba(232, 239, 233, 0.75);
    --on-dark-72: rgba(232, 239, 233, 0.72);
    --on-dark-60: rgba(232, 239, 233, 0.60);
    --on-dark-55: rgba(232, 239, 233, 0.55);
    --on-dark-50: rgba(232, 239, 233, 0.50);

    /* rules */
    --rule:             rgba(0, 41, 18, 0.12);
    --rule-strong:      rgba(0, 41, 18, 0.22);
    --rule-dark:        rgba(255, 255, 255, 0.14);
    --rule-dark-strong: rgba(255, 255, 255, 0.28);

    /* layout */
    --maxw: 1160px;
    --pad: 32px;
    --header-h: 64px;
}

/* ─── Reset & base ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--green-deep);
    color: var(--cream);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

img, svg { display: block; }

::selection { background: var(--green-bright); color: #fff; }

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

.page { width: 100%; overflow-x: hidden; background: var(--green-deep); }

.inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.section { position: relative; z-index: 0; overflow: hidden; }
.section > .inner { padding-top: 104px; padding-bottom: 110px; }

.section--dark  { background: var(--green-deep); border-top: 1px solid var(--rule-dark); }
.section--mid   { background: var(--green-mid);  border-top: 1px solid var(--rule-dark); }
.section--paper { background: var(--paper); color: var(--ink); }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.section-title {
    margin: 0 0 52px;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
}
.section--paper .section-title { color: var(--ink); }
.section-title--sm { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 44px; }

/* consecutive light sections need a hairline between them */
.section--paper + .section--paper { border-top: 1px solid var(--rule); }

.section--tech > .inner { padding-top: 92px; padding-bottom: 96px; }

/* decorative triangle field behind dark sections */
.tri-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ─── Scroll reveal ────────────────────────────────────────────── */
/* Hidden state only applies when JS can reveal it again. */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .75s ease var(--d, 0s),
        transform .75s cubic-bezier(.2, .7, .3, 1) var(--d, 0s);
}
.js [data-reveal][data-revealed="1"] { opacity: 1; transform: none; }

/* ─── Buttons ──────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn--solid {
    padding: 15px 30px;
    background: #fff;
    color: var(--green-deep);
    font-size: 15px;
}
.btn--solid:hover { background: var(--cream); color: var(--green-deep); transform: translateY(-2px); }

.btn--ghost {
    padding: 15px 30px;
    border: 1px solid var(--rule-dark-strong);
    color: var(--cream);
    font-size: 15px;
    font-weight: 500;
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); color: var(--cream); }

/* ─── Header ───────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(0, 41, 18, 0.92);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--rule-dark);
}

.site-header .inner {
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.brand:hover { color: #fff; }
.brand img { height: 26px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav a {
    color: var(--on-dark-72);
    font-size: 13.5px;
    letter-spacing: 0.01em;
    transition: color .2s ease;
}
.nav a:hover { color: #fff; }

.nav .btn-nav {
    margin-left: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--green-deep);
    font-weight: 600;
    transition: background .2s ease;
}
.nav .btn-nav:hover { background: var(--cream); color: var(--green-deep); }

/* ─── Hero ─────────────────────────────────────────────────────── */

.hero {
    position: relative;
    background: var(--green-deep);
    color: var(--cream);
    overflow: hidden;
}
.hero .inner {
    position: relative;
    padding-top: 132px;
    padding-bottom: 116px;
    display: grid;
    gap: 34px;
}

/* concentric drifting rings */
.rings {
    position: absolute;
    pointer-events: none;
    display: grid;
    place-items: center;
}
.rings > * { grid-area: 1 / 1; border-radius: 50%; }
.rings .glow { background: radial-gradient(circle, rgba(10, 120, 50, 0.45) 0%, rgba(10, 120, 50, 0.18) 40%, transparent 70%); }
.rings .ring { border: 1px solid rgba(255, 255, 255, 0.09); animation: ringDrift 26s ease-in-out infinite; }

.rings--hero { right: -540px; top: -380px; width: 1180px; height: 1180px; }
.rings--hero .glow,
.rings--hero .ring-1 { width: 1180px; height: 1180px; }
.rings--hero .ring-2 { width: 880px; height: 880px; border-color: rgba(255, 255, 255, 0.12); animation-duration: 21s; animation-delay: -4s; }
.rings--hero .ring-3 { width: 600px; height: 600px; border-color: rgba(255, 255, 255, 0.16); animation-duration: 17s; animation-delay: -9s; }
.rings--hero .ring-4 { width: 340px; height: 340px; border-color: rgba(255, 255, 255, 0.20); animation-duration: 13s; animation-delay: -2s; }

.rings--start { left: -360px; bottom: -420px; width: 1000px; height: 1000px; }
.rings--start .glow { width: 1000px; height: 1000px; background: radial-gradient(circle, rgba(10, 120, 50, 0.40) 0%, rgba(10, 120, 50, 0.16) 40%, transparent 70%); }
.rings--start .ring-1 { width: 1000px; height: 1000px; animation-duration: 24s; }
.rings--start .ring-2 { width: 720px; height: 720px; border-color: rgba(255, 255, 255, 0.13); animation-duration: 19s; animation-delay: -6s; }
.rings--start .ring-3 { width: 440px; height: 440px; border-color: rgba(255, 255, 255, 0.19); animation-duration: 15s; animation-delay: -3s; }

@keyframes ringDrift {
      0% { transform: scale(1);     opacity: .55; }
     50% { transform: scale(1.045); opacity: .90; }
    100% { transform: scale(1);     opacity: .55; }
}

.hero-title {
    font-size: clamp(44px, 7.2vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
}

.hero-tagline {
    max-width: 24ch;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: var(--on-dark-90);
    text-wrap: balance;
}

.hero-lede {
    max-width: 64ch;
    font-size: 19px;
    line-height: 1.62;
    color: var(--on-dark-75);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

/* ─── What we take on ──────────────────────────────────────────── */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--rule-dark);
    border: 1px solid var(--rule-dark);
}

.work-card {
    background: var(--green-mid);
    padding: 38px 34px 40px;
    display: grid;
    gap: 20px;
    align-content: start;
    transition: background .25s ease;
}
.js .work-card[data-reveal] {
    transition:
        opacity .75s ease var(--d, 0s),
        transform .75s cubic-bezier(.2, .7, .3, 1) var(--d, 0s),
        background .25s ease;
}
.work-card:hover { background: var(--green-dark); }
.work-card h3 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}
.work-card p { font-size: 16px; line-height: 1.65; color: var(--on-dark-72); }

/* ─── We get called when… ──────────────────────────────────────── */

.called-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
}

.called-item {
    border-top: 1px solid var(--rule-strong);
    padding-top: 22px;
    display: grid;
    gap: 12px;
    align-content: start;
    transition: border-color .25s ease;
}
.js .called-item[data-reveal] {
    transition:
        opacity .75s ease var(--d, 0s),
        transform .75s cubic-bezier(.2, .7, .3, 1) var(--d, 0s),
        border-color .25s ease;
}
.called-item:hover { border-color: var(--green-bright); }
.called-item h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.called-item p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* ─── Two ways to work ─────────────────────────────────────────── */

.ways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.way {
    padding: 40px 36px 42px;
    display: grid;
    gap: 18px;
    align-content: start;
}
.way--light { background: #fff; color: var(--ink); }
.way--outline { border: 1px solid var(--rule-dark-strong); }

.way h3 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.way--outline h3 { color: #fff; }

.way-badge {
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    padding: 4px 12px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    color: var(--ink-soft);
}

.way p { font-size: 16.5px; line-height: 1.65; }
.way--light p { color: var(--ink-soft); }
.way--outline p { color: var(--on-dark-72); }

/* ─── How we deliver ───────────────────────────────────────────── */

.deliver-list { display: grid; border-top: 1px solid var(--rule); }

.deliver-item {
    display: grid;
    gap: 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}
.deliver-item p {
    font-size: 17px;
    line-height: 1.62;
    color: var(--ink-soft);
    max-width: 76ch;
}
.deliver-item strong { color: var(--ink); font-weight: 600; }

.pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-muted);
}
.pipeline span { padding: 7px 13px; border: 1px solid var(--rule-strong); }
.pipeline .arrow { padding: 0; border: 0; color: var(--green-bright); }
.pipeline .final {
    border-color: var(--green-bright);
    color: var(--green-bright);
    background: rgba(0, 98, 39, 0.06);
}

/* ─── Cases ────────────────────────────────────────────────────── */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
}

.case {
    border: 1px solid var(--rule-dark-strong);
    padding: 32px 30px 34px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color .25s ease, background .25s ease;
}
.js .case[data-reveal] {
    transition:
        opacity .75s ease var(--d, 0s),
        transform .75s cubic-bezier(.2, .7, .3, 1) var(--d, 0s),
        border-color .25s ease,
        background .25s ease;
}
.case:hover { border-color: var(--accent); }
.case-kicker { font-size: 13.5px; color: var(--on-dark-50); }
.case h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
.case p { font-size: 15.5px; line-height: 1.62; color: var(--on-dark-72); }
.case-read-more {
    align-self: flex-start;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--accent);
}
.case-read-more:hover { color: var(--accent-hi); }

/* margin-top:auto pins the stats to the bottom of the card. Cards in a row are
   already equal height (grid stretch), so the rules line up across the row no
   matter how long each description runs. */
.case-stats {
    display: flex;
    gap: 34px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--rule-dark);
}
.stat { display: grid; gap: 4px; }
.stat-num {
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: var(--accent);
}
.stat-unit { font-size: .5em; font-weight: 500; margin-left: .08em; }
.stat-label { font-size: 13px; color: var(--on-dark-55); }

.case--cta {
    border: 1.5px dashed rgba(255, 255, 255, 0.4);
    color: var(--cream);
    min-height: 230px;
}
.case--cta:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.05); color: var(--cream); }
.case--cta .case-kicker { color: var(--accent); }
.case--cta .case-go { font-size: 15.5px; font-weight: 600; color: var(--accent); margin-top: auto; }

/* ─── Technologies ─────────────────────────────────────────────── */

.tech-list { display: grid; }

.tech-row {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
    align-items: baseline;
}
.tech-label { font-size: 14px; font-weight: 500; color: var(--ink-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
    font-size: 15px;
    padding: 6px 14px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
}

/* ─── Team ─────────────────────────────────────────────────────── */

.team-intro {
    display: grid;
    gap: 20px;
    max-width: 70ch;
    margin-bottom: 56px;
}
.team-intro .section-title { margin-bottom: 0; }
.team-intro p { font-size: 18px; line-height: 1.62; color: var(--ink-soft); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.member { display: grid; gap: 18px; align-content: start; }

.member-photo {
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    /* neutral placeholder while the portrait loads */
    background: rgba(0, 41, 18, 0.06);
}
.member-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-body { display: grid; gap: 10px; }
.member-body h3 { font-size: 21px; letter-spacing: -0.02em; }
.member-role {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink-muted);
    margin-top: 2px;
}
.member-body p { font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); }
.member-link { font-size: 14px; font-weight: 500; color: var(--green-bright); }
.member-link:hover { color: var(--ink); }

.team-notes {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.team-notes p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.team-notes p + p { font-size: 15px; line-height: 1.7; color: var(--ink-muted); }

/* ─── How to start ─────────────────────────────────────────────── */

.start { position: relative; background: var(--green-deep); color: var(--cream); overflow: hidden; }
.start .inner {
    position: relative;
    padding-top: 110px;
    padding-bottom: 96px;
    display: grid;
    gap: 28px;
}

.start-eyebrow { font-size: 15px; color: var(--on-dark-60); }
.start-heading {
    max-width: 24ch;
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}
.start-lede { max-width: 62ch; font-size: 18px; line-height: 1.62; color: var(--on-dark-75); }
.start-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}
.start-cta span { font-size: 17px; color: rgba(232, 239, 233, 0.78); }

/* ─── Footer ───────────────────────────────────────────────────── */

.site-footer { position: relative; border-top: 1px solid var(--rule-dark); }
.site-footer .inner {
    padding-top: 34px;
    padding-bottom: 44px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { height: 24px; width: auto; }
.footer-brand .name { font-size: 14.5px; font-weight: 600; color: #fff; }
.footer-brand .tag { font-size: 14.5px; font-style: italic; color: var(--on-dark-60); }
.footer-copy { font-size: 13px; color: var(--on-dark-50); }

/* ─── Responsive ───────────────────────────────────────────────── */

/* ─── Cookie consent ───────────────────────────────────────────── */

.consent {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 60;
    width: min(calc(100% - var(--pad) * 2), 760px);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 22px;
    border: 1px solid var(--rule-dark-strong);
    border-radius: 16px;
    background: rgba(0, 53, 26, 0.97);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    /* closed state; the slide-up is the translate settling to 0 */
    opacity: 0;
    transform: translate(-50%, 16px);
    transition:
        opacity .3s ease,
        transform .3s cubic-bezier(.2, .7, .3, 1);
}
.consent[data-open] { opacity: 1; transform: translate(-50%, 0); }

.consent-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--on-dark-75);
}
.consent-text a { text-decoration: underline; text-underline-offset: 3px; }

.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent .btn {
    padding: 11px 22px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}
/* these are <button> elements, so the UA's own background has to go */
.consent .btn--solid { border: 0; }
.consent .btn--ghost { background: none; }

/* ─── Footer legal row ─────────────────────────────────────────── */

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-legal a, .linkish {
    font-size: 13px;
    color: var(--on-dark-50);
    transition: color .2s ease;
}
.linkish {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}
.footer-legal a:hover, .linkish:hover { color: var(--cream); }

/* ─── Legal pages ──────────────────────────────────────────────── */

.legal > .inner {
    max-width: 780px;
    padding-top: 84px;
    padding-bottom: 96px;
}
.legal h1 {
    font-size: clamp(32px, 4.4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.legal-updated {
    margin-top: 12px;
    font-size: 14px;
    color: var(--ink-muted);
}
.legal h2 {
    margin: 42px 0 14px;
    font-size: 21px;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.legal p, .legal li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
}
.legal p + p { margin-top: 14px; }
.legal ul {
    margin: 14px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 9px;
}
.legal a { color: var(--green-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(0, 41, 18, 0.06);
    font-size: 0.92em;
    color: var(--ink);
}

@media (max-width: 900px) {
    .nav .nav-link { display: none; }
    .nav .btn-nav { margin-left: 0; }

    .section > .inner { padding-top: 76px; padding-bottom: 80px; }
    .hero .inner { padding-top: 84px; padding-bottom: 84px; }
    .start .inner { padding-top: 80px; padding-bottom: 72px; }

    .section-title { margin-bottom: 40px; }
    .called-grid { grid-template-columns: 1fr; gap: 32px; }
    .tech-row { grid-template-columns: 1fr; gap: 12px; }
    .team-intro { margin-bottom: 40px; }
    .team-notes { margin-top: 40px; }
}

@media (max-width: 640px) {
    :root { --pad: 20px; }

    .hero .inner { gap: 26px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { text-align: center; }

    .work-card { padding: 30px 24px 32px; }
    .way { padding: 32px 24px 34px; }
    .case { padding: 26px 22px 28px; }
    .case-stats { gap: 24px; }

    .start-cta { align-items: stretch; flex-direction: column; }
    .start-cta .btn { text-align: center; }

    .site-footer .inner { align-items: flex-start; }
    .footer-brand { flex-wrap: wrap; }

    .consent {
        bottom: 12px;
        gap: 15px;
        padding: 18px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    .consent-actions { flex-direction: column-reverse; }
    .consent .btn { width: 100%; text-align: center; }

    .legal > .inner { padding-top: 60px; padding-bottom: 72px; }
}

/* ─── Reduced motion ───────────────────────────────────────────── */

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