/* 915.solutions — landing styles (plain CSS, no build step) */
:root {
    --paper: #F3F1EA;
    --paper-2: #E7E3D8;
    --grid: #E1DDD1;
    --ink: #16150F;
    --ink-2: #3D3B34;
    --muted: #5E5B52;
    --muted-2: #8A867B;
    --line-dark: #3A3830;
    --on-dark: #CFCBC0;
    --on-dark-muted: #A6A296;
    --yellow: #FFE500;
    --error: #FF6B4A;
    --sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --gutter: 60px;
    --ease-out: cubic-bezier(.2, .75, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; min-width: 320px; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, textarea { font: inherit; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--yellow); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.page { position: relative; isolation: isolate; background: var(--paper); overflow-x: clip; }
.page::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 40; opacity: .35; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eyebrow--dark { color: var(--on-dark-muted); }
.chip { width: 10px; height: 10px; background: var(--yellow); border: 1px solid var(--ink); flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 var(--gutter); background: var(--ink); }
.site-header__logo img { height: 54px; width: auto; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 60px; padding: 0 32px; border: 1px solid var(--ink); font-size: 17px; font-weight: 500; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s, color .25s; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform: translateY(101%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn svg { transition: transform .3s; flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn:hover svg path { stroke: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--yellow::before { background: var(--paper); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { box-shadow: 3px 3px 0 var(--paper); }
.btn--small { height: 44px; padding: 0 20px; gap: 10px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 7fr 5fr; padding: 0 var(--gutter); border-bottom: 1px solid var(--ink); background-color: var(--paper);
    background-image: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(255, 229, 0, .18), transparent 60%); }
.hero__grid { position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(900px circle at var(--mx, 70%) var(--my, 40%), #000, transparent 75%);
    mask-image: radial-gradient(900px circle at var(--mx, 70%) var(--my, 40%), #000, transparent 75%); }
.hero__main { position: relative; display: flex; flex-direction: column; gap: 40px; padding: 104px 60px 104px 0; }
.hero__title { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; font-weight: 600; letter-spacing: -.045em; }
.hero__lead { max-width: 560px; font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px 0 40px 40px; border-left: 1px solid var(--ink); }
.hero__fig-caption { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.hero__diagram { align-self: center; width: 100%; max-width: 460px; height: auto; overflow: visible; }
.ghost { font-family: var(--mono); font-weight: 500; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--ink);
    background: linear-gradient(100deg, transparent 40%, var(--yellow) 50%, transparent 60%) no-repeat; background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; animation: shine 5s ease-in-out 1.6s infinite; }
.hero__ghost { align-self: flex-end; font-size: 168px; }

/* word reveal */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em 0; margin-bottom: -.1em; }
.w { display: inline-block; animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 50ms); }
.hl { background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 82% / 0% 36%; animation: hl .9s cubic-bezier(.6, 0, .2, 1) 1.05s forwards; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fade { animation: fadeUp .9s var(--ease-out) both; }

/* diagram motion */
.flow { stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
.blink { animation: blink 2.4s steps(1) infinite; }
.spin { animation: spin 18s linear infinite; transform-origin: center; transform-box: fill-box; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; margin: 0; list-style: none; font-size: 44px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.marquee__group li { display: flex; align-items: center; gap: 40px; }
.marquee__group svg { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section { display: flex; flex-direction: column; gap: 64px; padding: 120px var(--gutter); border-bottom: 1px solid var(--ink); background: var(--paper); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__head > div { display: flex; flex-direction: column; gap: 20px; }
.section__title { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.section__aside { max-width: 420px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 32px; padding: 48px; border: 1px solid var(--ink); background: var(--paper); transition: transform .4s var(--ease-out), box-shadow .4s; }
.card:hover { transform: translate(-6px, -6px); box-shadow: 12px 12px 0 var(--yellow); }
.card--dark { background: var(--ink); color: var(--paper); }
.card__glow { position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 229, 0, .22), transparent 70%); pointer-events: none; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.card--dark .card__top { color: var(--on-dark-muted); }
.card__title { font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.card__text { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.card--dark .card__text { color: var(--on-dark); }
.card__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 15px; border-top: 1px solid var(--ink); }
.card--dark .card__list { border-top-color: var(--yellow); }
.card__list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #D9D5CA; transition: padding .3s var(--ease-out); }
.card--dark .card__list li { border-bottom-color: var(--line-dark); }
.card__list li:last-child { border-bottom: 0; }
.card__list li::after { content: '→'; transition: transform .3s; }
.card--dark .card__list li::after { color: var(--yellow); }
.card__list li:hover { padding-left: 14px; }
.card__list li:hover::after { transform: translateX(-6px); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; display: grid; grid-template-columns: 5fr 7fr; background: var(--ink); color: var(--paper); }
.contact__bg { position: absolute; left: -20px; bottom: -70px; font-family: var(--sans); font-size: 360px; line-height: 1; font-weight: 700; -webkit-text-stroke: 1px #2E2C25; pointer-events: none; user-select: none; }
.contact__intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 120px var(--gutter); border-right: 1px solid var(--line-dark); }
.contact__intro > div { display: flex; flex-direction: column; gap: 24px; }
.contact__lead { font-size: 18px; line-height: 1.55; color: var(--on-dark); }
.accent { color: var(--yellow); }
.caret { display: inline-block; width: .08em; height: .82em; margin-left: .08em; background: var(--yellow); vertical-align: -.06em; animation: caret 1s steps(1) infinite; }
.contact__direct { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 15px; color: var(--on-dark-muted); }
.contact__direct a { align-self: flex-start; padding-bottom: 4px; color: var(--paper); font-size: 20px; border-bottom: 1px solid var(--yellow); transition: color .2s; }
.contact__direct a:hover { color: var(--yellow); }

.contact-form { position: relative; display: flex; flex-direction: column; gap: 32px; padding: 120px var(--gutter); }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); }
.field__input { width: 100%; height: 56px; padding: 0 16px; background: rgba(22, 21, 15, .6); border: 1px solid var(--muted); border-radius: 0; color: var(--paper); font-size: 17px; outline: none; transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
textarea.field__input { height: auto; min-height: 168px; padding: 16px; line-height: 1.5; resize: vertical; }
.field__input::placeholder { color: var(--muted-2); }
.field__input:focus { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.field.is-invalid .field__input { border-color: var(--error); }
.field__error { display: none; font-family: var(--mono); font-size: 13px; color: var(--error); }
.field.is-invalid .field__error { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-form__note { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted-2); max-width: 360px; }
.contact-form__note a { text-decoration: underline; }
.form-status { display: none; padding: 16px 18px; font-size: 16px; line-height: 1.5; border: 1px solid var(--yellow); color: var(--paper); }
.form-status.is-visible { display: block; animation: fadeUp .5s var(--ease-out) both; }
.form-status.is-error { border-color: var(--error); }
.form-error-message { display: none; }

/* reCAPTCHA component button (markup comes from the plugin) */
.contactFormSubmit { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 14px; height: 60px; padding: 0 32px; background: var(--yellow); border: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; font-weight: 600; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s; }
.contactFormSubmit::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: translateY(101%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.contactFormSubmit::after { content: '→'; transition: transform .3s; }
.contactFormSubmit:hover::before { transform: none; }
.contactFormSubmit:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--paper); }
.contactFormSubmit:hover::after { transform: translateX(4px); }
.contactFormSubmit[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.recaptcha-note { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted-2); }
.recaptcha-note a { text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Footer ---------- */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 96px; padding: 24px var(--gutter); background: var(--ink); color: var(--muted-2); font-family: var(--mono); font-size: 13px; border-top: 1px solid var(--line-dark); }
.site-footer img { height: 36px; width: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
@keyframes hl { to { background-size: 100% 36%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes blink { 0%, 70% { fill: var(--yellow); } 71%, 100% { fill: var(--paper); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    :root { --gutter: 40px; }
    .hero { grid-template-columns: 1fr; }
    .hero__main { padding: 80px 0 48px; }
    .hero__aside { border-left: 0; border-top: 1px solid var(--ink); padding: 32px 0 40px; }
    .hero__ghost { font-size: 120px; }
    .contact { grid-template-columns: 1fr; }
    .contact__intro { border-right: 0; padding-bottom: 0; }
    .contact-form { padding-top: 56px; }
}
@media (max-width: 760px) {
    :root { --gutter: 16px; }
    html { scroll-padding-top: 68px; }
    .site-header { height: 68px; }
    .site-header__logo img { height: 40px; }
    .site-header .btn__label-long { display: none; }
    .hero__main { gap: 28px; padding: 48px 0 32px; }
    .hero__title { font-size: 46px; line-height: 1; letter-spacing: -.04em; }
    .hero__lead { font-size: 17px; }
    .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero__actions .btn { height: 56px; }
    .hero__diagram { display: none; }
    .hero__fig-caption { display: none; }
    .hero__aside { border-top: 0; padding: 0 0 32px; }
    .marquee { padding: 18px 0; }
    .marquee__group, .marquee__group li { gap: 24px; font-size: 28px; }
    .marquee__group { padding-right: 24px; }
    .marquee__group svg { width: 18px; height: 18px; }
    .section { gap: 28px; padding: 56px var(--gutter); }
    .section__head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .section__title { font-size: 36px; line-height: 1.02; }
    .section__aside { font-size: 16px; }
    .services { grid-template-columns: 1fr; gap: 20px; }
    .card { padding: 28px 20px; gap: 20px; }
    .card:not(.card--dark) { box-shadow: 6px 6px 0 var(--yellow); }
    .card:hover { transform: none; }
    .card__title { font-size: 30px; }
    .card__text { font-size: 16px; }
    .card__list { font-size: 14px; }
    .card__list li { padding: 13px 0; }
    .card__list li::after { content: none; }
    .contact__intro { padding: 56px var(--gutter) 0; gap: 28px; }
    .contact__intro > div { gap: 14px; }
    .contact__lead { font-size: 16px; }
    .contact__bg { display: none; }
    .contact-form { gap: 20px; padding: 28px var(--gutter) 56px; }
    .contact-form__row { grid-template-columns: 1fr; gap: 20px; }
    .field__input { height: 52px; font-size: 16px; }
    .contactFormSubmit { width: 100%; justify-content: center; height: 56px; }
    .site-footer { flex-direction: column; align-items: flex-start; font-size: 12px; }
    .site-footer img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hl { background-size: 100% 36%; }
    .reveal { opacity: 1; transform: none; }
}
