:root {
    --ink: #101a18;
    --muted: #60706a;
    --line: #d8e2dc;
    --paper: #f5f7f3;
    --paper-2: #eaf0eb;
    --card: #ffffff;
    --green: #087f5b;
    --blue: #356dff;
    --amber: #e5a72a;
    --coral: #c96b5d;
    --shadow: 0 22px 70px rgba(16, 26, 24, 0.1);
    --shadow-strong: 0 30px 90px rgba(16, 26, 24, 0.16);
    --radius: 8px;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fbfcfa 0%, var(--paper) 42%, #eef4f0 100%);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
    letter-spacing: 0;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.project-card:focus-visible,
.modal-panel:focus-visible {
    outline: 3px solid rgba(15, 143, 104, 0.45);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    left: 24px;
    top: 16px;
    z-index: 1000;
    transform: translateY(-160%);
    background: var(--ink);
    color: var(--card);
    padding: 10px 14px;
    border-radius: 6px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(14px, 3vw, 28px);
    padding: 16px clamp(20px, 4vw, 56px);
    background: rgba(251, 252, 250, 0.86);
    border-bottom: 1px solid rgba(16, 26, 24, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
}

.brand,
.availability,
.nav-links a,
.button,
.filter-btn,
.modal-close {
    text-decoration: none;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: var(--ink);
    color: var(--amber);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(16, 26, 24, 0.14);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 3vw, 38px);
    min-width: 0;
}

.nav-links a {
    color: var(--muted);
    white-space: nowrap;
    position: relative;
    transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--green);
    content: "";
}

.availability {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid rgba(8, 127, 91, 0.18);
    border-radius: 999px;
    background: rgba(8, 127, 91, 0.06);
    color: var(--green);
    font-weight: 700;
}

.availability span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(8, 127, 91, 0.12);
    animation: status-pulse 2.4s ease-in-out infinite;
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

main section[id] {
    scroll-margin-top: 96px;
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
    padding: clamp(72px, 9vw, 124px) 0 86px;
}

.hero-copy,
.hero-visual {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(48px, 5.25vw, 78px);
    font-weight: 780;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 640px;
    margin-bottom: 22px;
    color: #40514a;
    font-size: clamp(17px, 1.6vw, 20px);
}

.hero-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
}

.hero-status strong {
    color: var(--ink);
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(8, 127, 91, 0.1);
}

.hero-status-divider {
    color: var(--line);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.button,
.filter-btn,
.modal-close {
    border: 1px solid rgba(20, 23, 21, 0.14);
    border-radius: 6px;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    font-weight: 700;
}

.button.primary {
    background: var(--ink);
    color: var(--card);
    border-color: var(--ink);
    box-shadow: 0 10px 20px rgba(16, 26, 24, 0.12);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.7);
}

.button:hover,
.filter-btn:hover,
.modal-close:hover {
    transform: translateY(-2px);
}

.button.primary:hover {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 14px 28px rgba(8, 127, 91, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 760px;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--line);
    box-shadow: 0 14px 36px rgba(16, 26, 24, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-stats div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.hero-stats dt {
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
}

.hero-stats dd {
    margin: 6px 0 0;
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 700;
    line-height: 1.35;
}

.hero-visual {
    display: grid;
    gap: 16px;
}

.browser-frame {
    border: 1px solid rgba(20, 23, 21, 0.12);
    border-radius: 10px;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-strong);
    animation: surface-float 7s ease-in-out infinite;
}

.browser-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
}

.browser-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--coral);
}

.browser-top span:nth-child(2) {
    background: var(--amber);
}

.browser-top span:nth-child(3) {
    background: var(--green);
}

.browser-top p {
    margin: 0 0 0 8px;
    color: #aabdb4;
    font-family: var(--mono);
    font-size: 12px;
}

.interface-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
    background: #eaf0eb;
}

.preview-panel,
.code-panel {
    border-radius: 8px;
    border: 1px solid rgba(20, 23, 21, 0.08);
}

.preview-panel {
    padding: 18px;
    background: linear-gradient(135deg, rgba(8, 127, 91, 0.11), rgba(53, 109, 255, 0.08)), #fbfffc;
}

.preview-nav,
.preview-title,
.preview-copy,
.preview-cards span {
    display: block;
    border-radius: 999px;
    background: rgba(20, 23, 21, 0.16);
}

.preview-nav {
    width: 42%;
    height: 10px;
    margin-bottom: 42px;
}

.preview-title {
    width: 76%;
    height: 30px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: var(--ink);
}

.preview-copy {
    width: 88%;
    height: 10px;
    margin-bottom: 8px;
}

.preview-copy.short {
    width: 60%;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.preview-cards span {
    height: 74px;
    border-radius: 6px;
    background: rgba(255, 253, 248, 0.74);
    border: 1px solid rgba(20, 23, 21, 0.08);
}

.code-panel {
    padding: 18px;
    background: #101a18;
    color: #f7f0e4;
    font-family: var(--mono);
    font-size: 13px;
}

.code-panel p {
    margin: 0 0 10px;
}

.code-panel p:last-child {
    margin-bottom: 0;
}

.code-panel span {
    color: var(--amber);
}

.quality-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quality-row div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.76);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quality-row div:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 127, 91, 0.32);
    box-shadow: 0 12px 28px rgba(16, 26, 24, 0.07);
}

.quality-row strong,
.quality-row span {
    display: block;
}

.quality-row span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 34px 0 110px;
    border-top: 1px solid var(--line);
}

.capabilities article,
.expertise-grid article,
.timeline article,
.project-card,
.event-highlight,
.event-list article,
.event-badge,
.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
}

.capabilities article {
    padding: 22px 0 0;
    border-width: 2px 0 0;
    border-radius: 0;
    background: transparent;
}

.capabilities span {
    color: var(--coral);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
}

.capabilities h2,
.expertise-grid h3,
.timeline h3,
.project-card h3 {
    margin-bottom: 10px;
}

.capabilities p,
.expertise-grid p,
.timeline p,
.project-card p,
.event-highlight p,
.event-list p,
.contact-section p,
.section-heading p {
    color: var(--muted);
}

.section-heading {
    max-width: 770px;
    margin-bottom: 40px;
}

.section-heading-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-heading-bar .eyebrow {
    margin-bottom: 18px;
}

.section-count {
    margin-bottom: 18px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
}

.section-heading.compact {
    max-width: 620px;
}

.section-heading h2,
.contact-section h2 {
    margin-bottom: 14px;
    max-width: 760px;
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1;
    letter-spacing: 0;
}

.projects-section,
.events-section,
.expertise-section,
.timeline-section,
.contact-section {
    padding: 112px 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.filter-btn {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.filter-btn.active {
    background: var(--ink);
    color: var(--card);
    border-color: var(--ink);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    min-height: 270px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 1px rgba(16, 26, 24, 0.02);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.project-card.hidden {
    display: none;
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(8, 127, 91, 0.42);
    box-shadow: 0 20px 46px rgba(16, 26, 24, 0.11);
}

.project-card.featured {
    grid-column: span 2;
    background: var(--ink);
    border-color: var(--ink);
    color: #f4fbf7;
    box-shadow: 0 24px 54px rgba(16, 26, 24, 0.16);
}

.project-card.featured:hover,
.project-card.featured:focus-visible {
    border-color: var(--green);
    box-shadow: 0 26px 58px rgba(8, 127, 91, 0.2);
}

.project-meta {
    margin-bottom: 18px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.project-card h3 {
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: 0;
    padding-right: 90px;
}

.project-card.featured .project-meta {
    color: #7de0bb;
}

.project-card.featured p,
.project-card.featured ul {
    color: #b8c9c1;
}

.project-card::after {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--blue);
    content: "Ouvrir ↗";
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.project-card.featured::after {
    color: #9fe8cb;
}

.project-card ul {
    display: grid;
    gap: 8px;
    margin: 6px 0 20px;
    padding-left: 18px;
    color: #40514a;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag-row span,
.modal-tags span {
    border: 1px solid rgba(20, 23, 21, 0.11);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(255, 255, 255, 0.78);
    color: #3e453f;
    font-family: var(--mono);
    font-size: 11px;
}

.project-card.featured .tag-row span {
    border-color: rgba(159, 232, 203, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: #e5f8ee;
}

.events-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 14px;
    margin-bottom: 14px;
}

.event-highlight {
    padding: 22px;
    background: var(--ink);
    border-color: var(--ink);
    color: #f4fbf7;
    box-shadow: 0 20px 48px rgba(16, 26, 24, 0.13);
}

.event-highlight > span,
.event-list span {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-highlight h3 {
    margin-bottom: 10px;
    font-size: clamp(22px, 2.7vw, 34px);
    line-height: 1.05;
    letter-spacing: 0;
}

.event-highlight > span {
    color: #7de0bb;
}

.event-highlight p {
    color: #b8c9c1;
}

.event-highlight dl {
    display: grid;
    gap: 1px;
    margin: 18px 0 0;
    overflow: hidden;
    border: 1px solid rgba(159, 232, 203, 0.18);
    border-radius: var(--radius);
    background: rgba(159, 232, 203, 0.18);
}

.event-highlight dl div {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.07);
}

.event-highlight dt {
    color: #8fa59b;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
}

.event-highlight dd {
    margin: 4px 0 0;
    color: #e5f8ee;
    font-weight: 700;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.event-list article {
    min-height: 0;
    padding: 15px;
}

.event-list article.event-more {
    border-style: dashed;
    background:
        linear-gradient(135deg, rgba(15, 143, 104, 0.1), rgba(255, 193, 7, 0.1)),
        rgba(255, 253, 248, 0.86);
}

.event-list article.event-more span {
    color: var(--coral);
}

.event-list h3 {
    margin-bottom: 6px;
    font-size: clamp(17px, 1.7vw, 22px);
    letter-spacing: 0;
}

.event-list p {
    font-size: 14px;
    line-height: 1.55;
}

.events-carousel {
    position: relative;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    padding: 4px 0 12px;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.events-track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: events-train 52s linear infinite;
    will-change: transform;
}

.events-carousel:hover .events-track,
.events-carousel:focus-within .events-track {
    animation-play-state: paused;
}

.events-track-group {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.event-badge {
    flex: 0 0 clamp(124px, 13vw, 166px);
    margin: 0;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 12px 28px rgba(20, 23, 21, 0.06);
}

.event-badge img {
    display: block;
    width: 100%;
    height: clamp(138px, 15vw, 190px);
    object-fit: cover;
    background: var(--paper-2);
}

.event-badge.landscape {
    flex-basis: clamp(204px, 24vw, 284px);
}

.event-badge.landscape img {
    height: clamp(118px, 13vw, 156px);
}

.event-badge figcaption {
    min-height: 54px;
    padding: 9px 10px;
    color: #3e453f;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.35;
}

@keyframes events-train {
    to {
        transform: translateX(calc(-50% - 6px));
    }
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.expertise-grid article {
    padding: 24px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.expertise-grid article:hover,
.timeline article:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 127, 91, 0.3);
    box-shadow: 0 16px 34px rgba(16, 26, 24, 0.07);
}

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

.timeline article {
    padding: 24px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.timeline span {
    display: block;
    margin-bottom: 12px;
    color: var(--coral);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: start;
    padding: clamp(34px, 5vw, 60px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(8, 127, 91, 0.08), rgba(53, 109, 255, 0.05)), rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 54px rgba(16, 26, 24, 0.07);
}

.contact-actions {
    margin-top: 26px;
}

.contact-actions .button span {
    margin-left: 8px;
    font-size: 16px;
}

.contact-panel {
    display: grid;
    gap: 16px;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(16, 26, 24, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 48px rgba(16, 26, 24, 0.08);
}

.form-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 4px;
}

.form-heading span,
.form-heading strong,
.contact-form label {
    font-family: var(--mono);
}

.form-heading span {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.form-heading strong {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

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

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(16, 26, 24, 0.12);
    border-radius: var(--radius);
    background: #fbfcfa;
    color: var(--ink);
    font: 600 15px/1.4 var(--sans);
    letter-spacing: 0;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form input,
.contact-form select {
    min-height: 50px;
    padding: 0 14px;
}

.contact-form textarea {
    min-height: 132px;
    resize: vertical;
    padding: 13px 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8c9a95;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(8, 127, 91, 0.72);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(8, 127, 91, 0.1);
    outline: none;
}

.contact-form [aria-invalid="true"] {
    border-color: rgba(201, 107, 93, 0.88);
    box-shadow: 0 0 0 4px rgba(201, 107, 93, 0.12);
}

.contact-form button {
    width: 100%;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin: -2px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 650;
}

.form-status:empty {
    display: none;
}

.form-status.success {
    background: rgba(8, 127, 91, 0.1);
    color: var(--green);
}

.form-status.error {
    background: rgba(201, 107, 93, 0.12);
    color: #9f3f34;
}

.contact-card {
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-card a {
    display: block;
    padding: 18px 20px;
    background: var(--card);
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
    transition: background 180ms ease, color 180ms ease, padding 180ms ease;
}

.contact-card a:hover {
    padding-left: 24px;
    background: var(--ink);
    color: var(--card);
}

.contact-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 42px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(16, 26, 24, 0.58);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    position: relative;
    width: min(720px, 100%);
    max-height: min(760px, 90vh);
    overflow: auto;
    padding: clamp(28px, 5vw, 44px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: #fbfffc;
    box-shadow: var(--shadow);
    transform: translateY(12px);
    transition: transform 160ms ease;
}

.modal.open .modal-panel {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 8px 10px;
    background: transparent;
}

.modal-kicker,
.modal-role {
    color: var(--green);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-panel h2 {
    max-width: calc(100% - 90px);
    margin: 12px 0 6px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1;
    letter-spacing: 0;
}

.modal-desc {
    color: #3f4640;
    font-size: 17px;
}

.modal-media[hidden] {
    display: none;
}

.modal-media {
    margin: 24px 0 6px;
}

.modal-media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 12px;
}

.modal-media-header span {
    color: var(--green);
    font-weight: 700;
    text-transform: uppercase;
}

.modal-media-header strong {
    color: var(--muted);
    font-weight: 500;
}

.modal-media-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
}

.modal-shot {
    flex: 0 0 150px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 23, 21, 0.12);
    border-radius: var(--radius);
    background: var(--paper);
    scroll-snap-align: start;
}

.modal-shot.landscape {
    flex-basis: min(70vw, 320px);
}

.modal-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #0b1220;
}

.modal-shot.landscape img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f6f1e8;
}

.modal-shot figcaption {
    padding: 9px 10px;
    color: #3e453f;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}

.modal-points {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.modal-point {
    padding: 12px 14px;
    border-left: 3px solid var(--green);
    background: var(--paper);
}

.modal-tags,
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-actions {
    margin-top: 28px;
}

.modal-actions a,
.modal-actions button {
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(20, 23, 21, 0.14);
    border-radius: 6px;
    background: var(--ink);
    color: var(--card);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.modal-actions button {
    background: transparent;
    color: var(--ink);
}

@keyframes status-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(8, 127, 91, 0.1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(8, 127, 91, 0.04);
    }
}

@keyframes surface-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes content-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy {
    animation: content-enter 640ms ease both;
}

.hero-visual {
    animation: content-enter 720ms 100ms ease both;
}

.capabilities article {
    animation: content-enter 560ms 180ms ease both;
}

.capabilities article:nth-child(2) {
    animation-delay: 240ms;
}

.capabilities article:nth-child(3) {
    animation-delay: 300ms;
}

@media (max-width: 980px) {
    .hero,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: clamp(48px, 8vw, 84px);
        gap: 36px;
    }

    .hero-visual {
        max-width: 680px;
    }

    .expertise-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .events-layout {
        grid-template-columns: 1fr;
    }

    .event-badge {
        flex-basis: 156px;
    }

    .event-badge.landscape {
        flex-basis: 250px;
    }
}

@media (max-width: 720px) {
    .section {
        width: min(100% - 32px, 1180px);
    }

    main section[id] {
        scroll-margin-top: 126px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        gap: 12px 16px;
        padding: 14px 18px 12px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .nav-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 18px;
        padding: 0 0 4px;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .nav-links::-webkit-scrollbar,
    .filters::-webkit-scrollbar,
    .quality-row::-webkit-scrollbar,
    .events-carousel::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .availability {
        justify-self: end;
        font-size: 11px;
    }

    .hero {
        gap: 28px;
        padding: 42px 0 46px;
    }

    h1 {
        font-size: clamp(38px, 10.8vw, 58px);
        line-height: 0.98;
        letter-spacing: 0;
    }

    .hero-lead {
        margin-bottom: 26px;
        font-size: 16px;
    }

    .hero-actions {
        margin-bottom: 24px;
    }

    .hero-stats div {
        padding: 16px;
    }

    .hero-status {
        line-height: 1.45;
    }

    .browser-frame {
        box-shadow: 0 16px 44px rgba(20, 23, 21, 0.1);
    }

    .interface-grid {
        padding: 14px;
    }

    .preview-cards span {
        height: 54px;
    }

    .hero-stats,
    .capabilities,
    .expertise-grid,
    .timeline,
    .events-layout,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .quality-row {
        display: flex;
        gap: 8px;
        padding: 0 0 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .quality-row div {
        flex: 0 0 132px;
        padding: 12px;
    }

    .quality-row span {
        font-size: 12px;
    }

    .capabilities {
        gap: 12px;
        padding: 24px 0 56px;
    }

    .capabilities article {
        padding: 18px 0 0;
    }

    .projects-section,
    .events-section,
    .expertise-section,
    .timeline-section,
    .contact-section {
        padding: 76px 0;
    }

    .section-heading-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .section-count {
        margin-top: -8px;
    }

    .filters {
        flex-wrap: nowrap;
        padding: 0 0 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .project-grid {
        gap: 12px;
    }

    .project-card {
        min-height: auto;
        padding: 20px;
    }

    .project-card.featured {
        grid-column: auto;
    }

    .project-card h3 {
        font-size: 26px;
        padding-right: 82px;
    }

    .project-card ul {
        margin-bottom: 16px;
    }

    .capabilities article,
    .event-highlight,
    .expertise-grid article,
    .timeline article {
        padding: 20px;
    }

    .event-highlight {
        padding: 18px;
    }

    .event-highlight h3 {
        font-size: 24px;
    }

    .event-highlight dl {
        margin-top: 14px;
    }

    .event-list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 0 0 8px;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .event-list article {
        flex: 0 0 min(72vw, 238px);
        padding: 14px;
        scroll-snap-align: start;
    }

    .event-list h3 {
        font-size: 18px;
    }

    .event-list p {
        font-size: 13px;
        line-height: 1.5;
    }

    .events-carousel {
        padding-bottom: 8px;
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }

    .events-track,
    .events-track-group {
        gap: 10px;
    }

    .event-badge {
        flex-basis: 118px;
    }

    .event-badge.landscape {
        flex-basis: 186px;
    }

    .event-badge img {
        height: 134px;
    }

    .event-badge.landscape img {
        height: 108px;
    }

    .event-badge figcaption {
        min-height: 44px;
        padding: 8px;
        font-size: 10px;
    }

    .contact-section {
        gap: 24px;
        padding: 28px 20px;
    }

    .modal {
        padding: 12px;
    }

    .modal-panel {
        max-height: calc(100dvh - 24px);
        padding: 24px 18px 20px;
    }

    .modal-close {
        right: 12px;
        top: 12px;
    }

    .modal-panel h2 {
        max-width: calc(100% - 72px);
        font-size: clamp(28px, 9vw, 40px);
    }

    .modal-media-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .modal-shot {
        flex-basis: min(58vw, 190px);
    }

    .modal-shot.landscape {
        flex-basis: min(82vw, 280px);
    }

    .hero-actions .button {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .section {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        padding-inline: 12px;
    }

    h1 {
        font-size: clamp(34px, 12vw, 46px);
    }

    .browser-frame {
        display: block;
        animation: none;
    }

    .browser-top {
        min-height: 40px;
        padding: 0 12px;
    }

    .browser-top span {
        width: 8px;
        height: 8px;
    }

    .browser-top p {
        font-size: 10px;
    }

    .interface-grid {
        gap: 8px;
        padding: 10px;
    }

    .preview-panel,
    .code-panel {
        padding: 14px;
    }

    .preview-nav {
        margin-bottom: 28px;
    }

    .preview-title {
        height: 22px;
    }

    .preview-cards {
        gap: 6px;
        margin-top: 18px;
    }

    .preview-cards span {
        height: 48px;
    }

    .code-panel {
        font-size: 10px;
    }

    .hero {
        padding-top: 34px;
    }

    .button {
        min-height: 46px;
    }

    .hero-status-divider {
        display: none;
    }

    .section-heading h2,
    .contact-section h2 {
        font-size: clamp(32px, 9vw, 44px);
    }

    .contact-form {
        padding: 18px;
    }

    .form-heading,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-heading {
        display: grid;
    }

    .hero-stats div,
    .capabilities article,
    .event-highlight,
    .event-list article,
    .project-card,
    .expertise-grid article,
    .timeline article {
        padding: 18px;
    }

    .project-meta {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .tag-row span,
    .modal-tags span {
        padding: 5px 8px;
        font-size: 10.5px;
    }

    .event-highlight,
    .event-list article {
        padding: 14px;
    }

    .event-highlight h3 {
        font-size: 22px;
    }

    .event-list article {
        flex-basis: min(76vw, 226px);
    }

    .project-card::after {
        top: 18px;
        right: 18px;
    }
}

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

    .events-carousel {
        overflow-x: auto;
        mask-image: none;
    }

    .events-track {
        animation: none;
    }

    .events-track-group[aria-hidden="true"] {
        display: none;
    }
}
