
:root {
    color-scheme: dark;
    --glass-bg: #111219;
    --glass-panel: linear-gradient(138deg,#ffffff22,#f3f5ff0a 43%,#8d9bc821 88%);
    --glass-edge: #edf0ff49;
    --glass-shadow: inset 0 1px 0 #ffffff35, inset 0 -1px 0 #b8c5f321, 0 24px 58px #02030980;
    --glass-blur: blur(23px) saturate(1.25);
    --glass-radius: 26px;
    --agro-button: #e6e9fa;
    --agro-hover: #f3f4fd;
    --on-agro: #111421;
    --focus: #e1e8ff;
}
.public-site, .owner-site {
    --paper: var(--glass-bg);
    --ink: #f5f6fb;
    --muted: #c1c5d3;
    --line: #e3e9ff35;
    --dark: #171925;
    background: radial-gradient(ellipse at 86% 24%,#323b58 0%,transparent 38%),
                radial-gradient(ellipse at 12% 65%,#343647,transparent 37%),var(--paper);
}
.site-header, .site-footer {
    background: #171925e6;
    color: #f4f4fa;
    border-color: var(--line);
    backdrop-filter: var(--glass-blur);
}
.site-header { box-shadow: inset 0 -1px 0 #b5c3e922; }
.nav-wrap { min-height: 82px; }
.wordmark { gap: 12px; }
.wordmark > span { display: grid; line-height: 1.05; letter-spacing: .115em; }
.wordmark img { border-radius: 7px; }
.wordmark small { margin-top: 6px; color: #c5cadb; font-size: .71rem; letter-spacing: .34em; font-weight: 650; }
.primary-nav a:hover,.site-footer a:hover { color: white; text-decoration: underline; }
.primary-nav .nav-contact {
    padding: 10px 16px;
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    background: #e9edff13;
    box-shadow: inset 0 1px 0 #ffffff24;
}
.nav-toggle,.nav-enhanced .primary-nav.open { color: var(--ink); border-color: var(--line); }

.agro-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #f5f6fb;
    background: radial-gradient(ellipse at 55% 60%,#353b55,#13131f 71%);
    border-bottom: 1px solid var(--line);
}
.agro-masthead-photo {
    position: absolute;
    z-index: -1;
    inset: 20px 10px 20px 39%;
    border-radius: 34px;
    overflow: hidden;
}
.agro-masthead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; opacity: .92; }
.agro-masthead-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#171826,transparent 39%),
                linear-gradient(135deg,#a4b9ed22,transparent 56%),linear-gradient(0deg,#1b203969,transparent 20%);
}
.agro-masthead-content { min-height: clamp(530px,48vw,670px); display: grid; align-items: center; padding-block: 31px; }
.agro-masthead-copy {
    max-width: 535px;
    container-type: inline-size;
    padding: clamp(29px,4vw,56px);
    border: 1px solid var(--glass-edge);
    border-radius: 34px;
    box-shadow: var(--glass-shadow);
    background: linear-gradient(135deg,#33364bbb,#282b4229 64%,#aebaee26);
    backdrop-filter: var(--glass-blur);
}
.agro-masthead h1 {
    font-size: clamp(1.7rem,4vw,3.8rem);
    font-size: clamp(1.7rem,13.15cqi,3.8rem);
    letter-spacing: -.042em;
    line-height: 1.08;
    font-weight: 730;
    text-wrap: initial;
    overflow-wrap: anywhere;
}
.agro-masthead h1 span { color: #e0e5f7; display: block; }
.agro-masthead .lead { max-width: 435px; margin-block: 23px 0; color: #d3d6e1; }
.agro-masthead .actions { margin-top: 30px; }
.button,.site-header .nav-contact { border-radius: 999px; }
.button:hover { transform: none; }
.agro-button,.primary {
    background: linear-gradient(145deg,#f5f7ff,#cbd3f4);
    border-color: #ffffff9b;
    color: #121521;
    box-shadow: inset 0 1px 0 #fff,0 8px 26px #05061361;
}
.agro-button:hover,.primary:hover { background: #fff; color: #121521; }
.secondary,.dark-outline,.button-outline {
    color: var(--ink);
    background: linear-gradient(150deg,#ecedff22,#a8aec417);
    border-color: #e8ebff58;
    box-shadow: inset 0 1px 0 #ffffff31;
}
.secondary:hover,.dark-outline:hover,.button-outline:hover { background: #e1e6fa38; }
.agro-masthead-facts { background: #171a28a0; border-bottom: 1px solid var(--line); }
.agro-masthead-facts dl { display: grid; grid-template-columns: .8fr 1.4fr .8fr; }
.agro-masthead-facts dl div { padding: 21px 23px; border-left: 1px solid var(--line); }
.agro-masthead-facts dl div:last-child { border-right: 1px solid var(--line); }
.agro-masthead-facts dt { color: var(--muted); font-size: .9rem; }
.agro-masthead-facts dd { color: var(--ink); margin: 3px 0 0; font-size: 1.05rem; font-weight: 630; }

.public-site .eyebrow,.public-site .project-location,.owner-site .eyebrow { color: #c4cce8; }
.public-site .soft-bg,.public-site .next-project,.public-site .dark-section {
    background: radial-gradient(ellipse at 65% 20%,#4854785e,transparent 75%),#1c203247;
}
.public-site .project-card,.public-site .expertise-grid article,.public-site .form-card,.public-site .project-scope,
.public-site .leadership figure,.owner-site .login-card,.owner-site .lead-detail section,.owner-site .agro-panel,
.owner-site .agro-editor,.public-site .project-index {
    color: var(--ink);
    border: 1px solid var(--glass-edge);
    border-radius: var(--glass-radius);
    background: var(--glass-panel);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
}
.public-site .project-card,.public-site .leadership figure { overflow: hidden; }
.public-site .project-image { background: #222638; }
.public-site .project-copy { padding: 23px; }
.public-site .text-link,.public-site .index-number,.public-site .leadership-facts dd,
.public-site .request-steps li::before,.public-site .consent a,.public-site .agro-form legend > span { color: #e2e8ff; }
.public-site .project-index { padding-inline: 22px; }
.public-site .project-index > a { grid-template-columns: 48px minmax(0,1.5fr) minmax(0,1fr); }
.public-site .project-index > a:hover { background: #a4b9ed16; }
.public-site .index-location,.public-site .index-works,.public-site .project-index-heading > span,
.public-site .breadcrumbs,.public-site .form-footnote,.public-site .field-help,.public-site .consent,
.owner-site .form-footnote,.owner-site .agro-dialog-help { color: var(--muted); }
.public-site .expertise-grid article,.public-site .price-note { padding: 24px; }
.public-site .price-note { background: #dfe7ff13; border-color: var(--line); border-radius: 14px; }
.public-site .breadcrumbs a + a,.public-site .breadcrumbs a + span { padding-left: 14px; border-left: 1px solid var(--line); }
.public-site .project-cover,.public-site .gallery-item { border-radius: 18px; border: 1px solid var(--glass-edge); overflow: hidden; }
.public-site .gallery-item:hover { border-color: #e5e7ee8f; }
.public-site .next-project { border-top: 1px solid var(--line); }
.public-site .lightbox { border-color: var(--glass-edge); border-radius: var(--glass-radius); }
.public-site .lightbox::backdrop { backdrop-filter: blur(10px); }

.public-site input,.public-site select,.public-site textarea,
.owner-site input,.owner-site select,.owner-site textarea {
    color: var(--ink);
    background: #080a15aa;
    border-color: #edf0ff69;
    border-radius: 10px;
    accent-color: #dce5ff;
}
.public-site input::placeholder,.public-site textarea::placeholder,.owner-site input::placeholder,.owner-site textarea::placeholder { color: #b2b7c8; opacity: 1; }
.public-site input[type="checkbox"],.owner-site input[type="checkbox"] { accent-color: #e4e9fa; }
.public-site select,.owner-site select { background-color: #171a28; }
.public-site .validation-summary,.owner-site .validation-summary,.owner-site .agro-warning { background: #411e29; color: #ffdde5; }
.public-site .field-validation-error,.owner-site .agro-error { color: #ffc1cb; }
.public-site .agro-form > .button { justify-content: center; }
.public-site .success,.owner-site .empty-state,.owner-site .notice { background: #263047; color: var(--ink); }
.public-site .success-reference,.public-site .success-symbol { color: #e3e9ff; }

.owner-site .owner-filters a,.owner-site .agro-tabs button,.owner-site .agro-desk .small-button,.owner-site .text-button {
    color: var(--ink);
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    background: #eaf0ff16;
}
.owner-site .owner-filters a.active,.owner-site .agro-tabs button.active { background: #e2e7fb; color: #141622; }
.owner-site .text-button { padding: 8px 15px; }
.owner-site .lead-row { grid-template-columns: auto auto minmax(0,1fr) minmax(0,1.1fr) auto; }
.owner-site .lead-row:hover { background: #dce5ff17; }
.owner-site .agro-source,.owner-site .core-source { background: #e1e7fa; color: #1b2031; }
.owner-site .status-lost { color: #1b2031; }
.owner-site .agro-table th,.owner-site .agro-table tr.reversed,.owner-site .agro-desk .agro-empty { background: #edf0ff13; color: var(--muted); }
.owner-site .agro-editor { background-color: #202237; }
.owner-site .agro-editor::backdrop { background: #0a0c17a3; backdrop-filter: blur(8px); }
.site-footer address { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-style: normal; }
.site-footer address a { color: #e3e6f4; }
.site-footer .footer-bottom { border-color: var(--line); }

@media (max-width: 850px) {
    .agro-masthead-copy { max-width: 57%; }
    .agro-masthead-facts dl div { padding-inline: 12px; }
    .owner-site .lead-row { grid-template-columns: 1fr; }
    .public-site .project-index > a { grid-template-columns: 24px minmax(0,1fr); }
}
@media (max-width: 700px) {
    .site-header .nav-wrap { min-height: 74px; }
    .agro-masthead-photo { inset: 0 0 auto; height: clamp(200px,55vw,365px); border-radius: 0; }
    .agro-masthead-photo img { object-position: 50% 50%; }
    .agro-masthead-photo::after { background: linear-gradient(0deg,#1b1d2c,transparent 30%); }
    .agro-masthead-content { min-height: 0; padding-block: clamp(190px,53vw,355px) 25px; }
    .agro-masthead-copy { max-width: none; padding: 20px; }
    .agro-masthead .lead { margin-top: 15px; font-size: 1rem; }
    .agro-masthead .actions { margin-top: 20px; gap: 8px; }
    .agro-masthead-facts dl { grid-template-columns: 1fr 1.5fr; }
    .agro-masthead-facts dl div { padding: 13px 10px; border: 0; }
    .agro-masthead-facts dl div:last-child { display: none; }
    .agro-masthead-facts dd { font-size: .9rem; }
    .public-site .project-index { padding-inline: 14px; }
    .site-footer address { grid-column: 1 / -1; }
}
