/* The Nevento Digital site: paper as the page, white bands, one green accent, one dark block (the footer).
   Everything comes from the tokens of the design system (tokens/*.css, copied from the skill nevento-digital-design; the font import of
   tokens/typography.css moved to the layout, so the fonts load next to this file instead of behind it). */
@import './tokens/colors.css';
@import './tokens/typography.css';
@import './tokens/spacing.css';

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    background: var(--surface-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--size-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: var(--text-accent); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--space-5); }

.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 10; padding: var(--space-2) var(--space-4); background: var(--surface-card); border-radius: var(--radius-control); }
.skip:focus { top: var(--space-3); }

/* Letters */
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-display); margin: 0; color: var(--text-primary); }
h2 { font-size: clamp(32px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.03em; margin-top: 12px; }
h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

.kicker { display: block; font-family: var(--font-display); font-weight: var(--weight-label); font-size: var(--size-label); line-height: var(--lh-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.kicker-accent { color: var(--text-accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-secondary); max-width: 46ch; }

/* The tile: a flat rounded square, the shape of the logo, with a tick. Sized in em so it follows the type next to it. */
.tile { flex: none; display: inline-grid; place-items: center; width: .74em; height: .74em; border-radius: 19%; background: var(--interactive-default); color: var(--text-on-accent); }
.tile svg { width: 62%; height: 62%; }
.tile path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tile-sm { font-size: 30px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px;
    padding: 10px 20px; border: 1.5px solid var(--interactive-default); border-radius: var(--radius-control);
    background: var(--interactive-default); color: var(--text-on-accent);
    font-family: var(--font-body); font-weight: var(--weight-body-medium); font-size: 15px; line-height: 1.4; text-decoration: none;
    transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.btn:hover { background: var(--interactive-hover); border-color: var(--interactive-hover); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 16px; }
.btn-secondary { background: transparent; color: var(--text-accent); }
.btn-secondary:hover { background: var(--interactive-subtle); border-color: var(--interactive-default); color: var(--text-accent); }

/* Header */
.header { background: var(--surface-page); border-bottom: var(--border-hairline); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-family: var(--font-display); font-weight: var(--weight-display); font-size: 17px; color: var(--text-accent); }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-primary); text-decoration: none; font-weight: var(--weight-body-medium); }
.nav a:not(.btn):hover { color: var(--text-accent); }

/* Hero: the payoff, set as large as the screen allows */
.hero { padding: clamp(40px, 8vw, 104px) 0 clamp(48px, 8vw, 112px); }
.hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px, 4vw, 44px); }
.statement { display: flex; flex-direction: column; gap: .04em; font-size: clamp(54px, 12.4vw, 168px); line-height: .98; letter-spacing: -0.045em; max-width: none; }
.statement .line { display: flex; align-items: center; gap: .2em; animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 130ms + 80ms); }
.statement .tile path { animation: draw 500ms ease-out both; animation-delay: calc(var(--i) * 130ms + 500ms); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5) var(--space-7); width: 100%; animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: 560ms; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Bands */
.band { padding: clamp(48px, 7vw, 96px) 0; border-top: var(--border-hairline); }
.band-card { background: var(--surface-card); }
.band h2 { margin-bottom: clamp(28px, 4vw, 48px); }

/* The three steps: full rows, each one a state */
.stages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.stage { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 4.4fr) minmax(0, 2fr); align-items: center; gap: var(--space-4) var(--space-6); padding: clamp(20px, 3vw, 36px) 0; border-bottom: 1px solid var(--border-strong); }
.stage-tag { display: inline-flex; align-items: center; gap: 12px; color: var(--text-accent); }
.stage-title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(36px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.stage-text { color: var(--text-secondary); max-width: 34ch; }

/* The services: an uneven grid, one tinted card */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); background: var(--surface-card); border: var(--border-hairline); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(22px, 3vw, 36px); min-height: 190px; }
.card p { color: var(--text-secondary); max-width: 40ch; }
.card-tint { background: var(--surface-tint); border-color: transparent; box-shadow: none; }
.card-tint p { color: var(--text-primary); }
.card-lg { grid-column: span 7; grid-row: span 2; }
.card-lg h3 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.card-md { grid-column: span 5; }
.card-wide { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-5); }

/* Contact: the address is the headline */
.contact h2 { max-width: 14ch; }
.contact .lead { margin-top: calc(-1 * clamp(8px, 2vw, 20px)); }
.mega { display: inline-block; margin-top: clamp(28px, 5vw, 56px); font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(26px, 6.2vw, 84px); line-height: 1.05; letter-spacing: -0.035em; color: var(--text-primary); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--interactive-default); text-decoration-thickness: .07em; text-underline-offset: .14em; transition: color 150ms ease-out, text-decoration-color 150ms ease-out; }
.mega:hover { color: var(--text-accent); text-decoration-color: var(--interactive-hover); }

/* Footer: the one dark block */
.footer { background: var(--surface-inverse); color: var(--text-on-inverse); padding: var(--space-7) 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-7); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; font-family: var(--font-display); font-weight: var(--weight-display); font-size: 20px; letter-spacing: -0.02em; }
.footer-cols { display: flex; flex-wrap: wrap; gap: var(--space-7); }
.footer-cols > div { display: flex; flex-direction: column; gap: 2px; }
.footer .kicker { opacity: 0.7; margin-bottom: var(--space-2); }
.footer a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-on-inverse); text-decoration: none; font-size: 14px; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .stage { grid-template-columns: 1fr; gap: var(--space-2); }
    .card-lg, .card-md, .card-wide { grid-column: span 12; grid-row: auto; }
    .card-wide { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
    .nav a:not(.btn) { display: none; }
    .footer-row, .footer-cols { gap: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .mega { transition: none; }
    .statement .line, .statement .tile path, .hero-foot { animation: none; }
}
