:root {
    --navy: #071633;
    --navy-soft: #384065;
    --blue: #243e94;
    --yellow: #ffd429;
    --gold: #f7b900;
    --ink: #111827;
    --muted: #667085;
    --paper: #ffffff;
    --line: #e7e8ee;
    --header-height: 96px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6fa;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 58px);
    color: #fff;
    background: rgba(7, 22, 51, 0.96);
    border-bottom: 5px solid var(--yellow);
    animation: headerDrop 520ms ease both;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
}

nav a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 160ms ease, transform 160ms ease;
}

nav a:hover {
    color: var(--yellow);
    transform: translateY(-1px);
}

.nav-admin {
    padding: 9px 14px;
    color: var(--navy);
    background: var(--yellow);
    border-radius: 6px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: clamp(32px, 6vw, 86px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 212, 41, 0.92) 0 22%, transparent 22%),
        linear-gradient(140deg, #142d58 0%, #071633 54%, #020817 100%);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -20%;
    width: 54%;
    height: 70%;
    background: rgba(255, 212, 41, 0.12);
    transform: rotate(-28deg);
}

.hero-art,
.hero-copy {
    position: relative;
    z-index: 1;
    animation: riseIn 720ms ease both;
}

.hero-copy {
    animation-delay: 120ms;
}

.hero-art {
    display: grid;
    place-items: center;
    min-height: 380px;
}

.hero-art::before {
    content: "";
    position: absolute;
    width: min(520px, 80vw);
    aspect-ratio: 1.75;
    background: var(--yellow);
    border-radius: 0 12px 120px 0;
}

.hero-photo-card {
    position: relative;
    width: min(560px, 86vw);
    aspect-ratio: 0.88;
    overflow: hidden;
    border-radius: 18px;
    border: 8px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
    transform: rotate(2deg);
    animation: photoFloat 760ms ease both;
}

.hero-photo-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo-badge {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: #fff;
    background: rgba(7, 22, 51, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    font-weight: 900;
}

.hero-logo-badge img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--yellow);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 18px;
    font-size: clamp(46px, 8vw, 96px);
    line-height: 0.95;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
    color: var(--navy);
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.hero-copy p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.1vw, 27px);
    line-height: 1.45;
}

.hero-actions,
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 800;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(7, 22, 51, 0.18);
}

.btn.primary,
button.btn.primary {
    color: var(--navy);
    background: var(--yellow);
}

.btn.ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
}

.section {
    padding: clamp(54px, 7vw, 100px) clamp(18px, 5vw, 72px);
    scroll-margin-top: var(--header-height);
}

.split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(28px, 6vw, 80px);
    align-items: start;
    background: #fff;
}

.split p {
    font-size: 20px;
    line-height: 1.7;
}

.highlight {
    margin-top: 28px;
    padding: 26px;
    color: #131313;
    background: var(--yellow);
    border-left: 8px solid var(--blue);
}

.about-image {
    width: 100%;
    aspect-ratio: 1.28;
    object-fit: cover;
    margin-top: 22px;
    border-radius: 8px;
    border: 5px solid var(--yellow);
}

.section-title {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-kicker {
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.55;
}

.team-showcase {
    margin-bottom: 24px;
    border: 4px solid var(--yellow);
    border-radius: 8px;
    overflow: hidden;
}

.team-showcase img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
}

.service-grid,
.team-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card,
.team-card,
.article-card,
.panel,
.login-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 22, 51, 0.08);
}

.service-card {
    overflow: hidden;
    border: 3px solid var(--gold);
}

.service-card img {
    width: 100%;
    aspect-ratio: 1.18;
    object-fit: cover;
}

.service-card div,
.article-card {
    padding: 22px;
}

.service-card h3 {
    color: var(--blue);
}

.service-tabs > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-tab-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.service-tab-label {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 12px;
    color: var(--navy);
    text-align: center;
    background: #fff;
    border: 1px solid rgba(36, 62, 148, 0.18);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(7, 22, 51, 0.06);
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.service-tab-label:hover,
.project-tab-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(7, 22, 51, 0.1);
}

.service-panel {
    display: none;
    grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: stretch;
    min-height: 440px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 212, 41, 0.18), transparent 36%),
        var(--navy);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(7, 22, 51, 0.14);
    animation: panelIn 360ms ease both;
}

.service-panel > img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.service-panel-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(28px, 5vw, 56px);
}

.service-panel-copy h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1;
}

.service-panel-copy p {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.65;
}

.service-placeholder {
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 5px solid var(--yellow);
    border-radius: 8px;
}

#service-tab-0:checked ~ .service-tab-list label[for="service-tab-0"],
#service-tab-1:checked ~ .service-tab-list label[for="service-tab-1"],
#service-tab-2:checked ~ .service-tab-list label[for="service-tab-2"],
#service-tab-3:checked ~ .service-tab-list label[for="service-tab-3"] {
    color: var(--navy);
    background: var(--yellow);
    border-color: var(--yellow);
}

#service-tab-0:checked ~ .service-panel-1,
#service-tab-1:checked ~ .service-panel-2,
#service-tab-2:checked ~ .service-panel-3,
#service-tab-3:checked ~ .service-panel-4 {
    display: grid;
}

.projects {
    background: #fff;
}

.project-kicker {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.project-tabs > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.project-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.project-tab-label {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    color: var(--navy);
    background: #f1f3fb;
    border: 1px solid rgba(36, 62, 148, 0.16);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.project-panel {
    display: none;
    padding: clamp(22px, 4vw, 34px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 212, 41, 0.18), transparent 34%),
        var(--navy);
    border: 1px solid rgba(7, 22, 51, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 22, 51, 0.12);
    overflow: visible;
    animation: panelIn 360ms ease both;
}

#project-tab-running:checked ~ .project-tab-list label[for="project-tab-running"],
#project-tab-network:checked ~ .project-tab-list label[for="project-tab-network"],
#project-tab-client:checked ~ .project-tab-list label[for="project-tab-client"] {
    color: var(--navy);
    background: var(--yellow);
    border-color: var(--yellow);
}

#project-tab-running:checked ~ .project-panel-1,
#project-tab-network:checked ~ .project-panel-2,
#project-tab-client:checked ~ .project-panel-3 {
    display: block;
}

.project-panel-head {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.project-panel-head h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
}

.project-panel-head > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.55;
}

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

.project-card {
    display: grid;
    gap: 10px;
    min-height: 260px;
    padding: 24px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 5px solid var(--yellow);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.service-detail-card:hover,
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(7, 22, 51, 0.16);
}

.project-card-top {
    display: grid;
    grid-template-columns: auto minmax(130px, max-content);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.project-card-top span,
.project-card-top strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
}

.project-card-top span {
    color: #fff;
    background: var(--blue);
}

.project-card-top strong {
    color: var(--navy);
    background: #fff4a7;
    text-align: center;
}

.project-category {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.project-card h4 {
    margin-bottom: 0;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.15;
}

.project-card p:last-child {
    margin-bottom: 0;
    color: #303848;
    line-height: 1.55;
}

.team-band {
    color: #fff;
    background: var(--navy-soft);
}

.team-band h2 {
    color: #fff;
}

.team-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-column: span 2;
    gap: 22px;
    padding: 24px;
    color: #111;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(7, 22, 51, 0.18);
}

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--yellow);
}

.role {
    color: var(--blue);
    font-weight: 900;
}

.profile-link,
.article-card a {
    color: var(--blue);
    font-weight: 900;
}

.profile-link {
    display: inline-flex;
    margin-top: 6px;
}

.profile-page {
    background: #fff;
}

.service-page {
    background: #fff;
}

.service-detail-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: clamp(38px, 6vw, 88px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 212, 41, 0.18), transparent 34%),
        linear-gradient(140deg, #142d58 0%, #071633 62%, #020817 100%);
}

.service-detail-hero h1 {
    max-width: 900px;
}

.service-detail-hero p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(21px, 2.6vw, 34px);
    line-height: 1.35;
}

.service-detail-hero img {
    width: 100%;
    aspect-ratio: 1.1;
    object-fit: cover;
    border: 8px solid var(--yellow);
    border-radius: 8px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.service-intro {
    display: grid;
    gap: 18px;
    background: #fff;
}

.service-intro p {
    max-width: 1080px;
    margin: 0;
    color: #253047;
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.55;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    background: #f5f6fa;
}

.service-detail-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: clamp(22px, 4vw, 34px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--yellow);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 22, 51, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-detail-card h2 {
    margin-bottom: 0;
    font-size: clamp(25px, 3vw, 36px);
}

.service-detail-card p {
    margin-bottom: 0;
    color: #303848;
    font-size: 17px;
    line-height: 1.65;
}

.service-detail-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-detail-card li {
    position: relative;
    padding-left: 18px;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.35;
}

.service-detail-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 7px;
    height: 7px;
    background: var(--yellow);
    border-radius: 50%;
}

.service-outcome {
    padding: 14px 16px;
    color: var(--navy) !important;
    background: #fff4a7;
    border-radius: 8px;
}

.service-why {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.85fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: start;
    background: #fff;
}

.profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: clamp(36px, 6vw, 86px);
    background:
        linear-gradient(90deg, var(--yellow) 0 30%, transparent 30%),
        radial-gradient(circle at 92% 16%, rgba(255, 212, 41, 0.24), transparent 26%),
        linear-gradient(135deg, #fff 0%, #f1f4fb 100%);
    overflow: hidden;
}

.profile-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -24%;
    width: 46%;
    height: 66%;
    background: rgba(36, 62, 148, 0.12);
    transform: rotate(-24deg);
}

.profile-photo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
}

.profile-photo-wrap::before {
    content: "";
    position: absolute;
    width: min(430px, 76vw);
    height: min(520px, 86vw);
    background: var(--navy);
    border-radius: 180px 180px 18px 18px;
    box-shadow: 0 30px 70px rgba(7, 22, 51, 0.25);
}

.profile-photo-wrap img {
    position: relative;
    width: min(390px, 72vw);
    aspect-ratio: 0.78;
    object-fit: cover;
    object-position: center top;
    border-radius: 170px 170px 14px 14px;
    border: 10px solid #fff;
    box-shadow: 0 24px 55px rgba(7, 22, 51, 0.22);
}

.profile-badge {
    position: absolute;
    right: clamp(6px, 4vw, 26px);
    bottom: 30px;
    width: min(250px, 70vw);
    padding: 18px;
    color: var(--navy);
    background: var(--yellow);
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(7, 22, 51, 0.18);
}

.profile-badge strong,
.profile-badge span {
    display: block;
}

.profile-badge strong {
    margin-bottom: 5px;
    font-size: 24px;
}

.profile-badge span {
    font-size: 13px;
    font-weight: 900;
}

.profile-copy h1 {
    color: var(--navy);
    font-size: clamp(42px, 7vw, 86px);
}

.profile-role {
    color: var(--blue);
    font-size: clamp(21px, 2.4vw, 30px);
    font-weight: 900;
}

.profile-bio {
    max-width: 780px;
    color: #202637;
    font-size: 21px;
    line-height: 1.7;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.profile-stats span {
    padding: 10px 13px;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(36, 62, 148, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn.ghost.dark {
    color: var(--navy);
    border-color: rgba(7, 22, 51, 0.22);
    background: #fff;
}

.profile-media {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(24px, 5vw, 58px);
    padding: clamp(36px, 6vw, 76px);
    background: #fff;
}

.profile-media img {
    width: 100%;
    aspect-ratio: 1.8;
    object-fit: cover;
    border-radius: 8px;
    border: 5px solid var(--yellow);
}

.profile-media h2 {
    max-width: 620px;
    margin: 0;
}

.profile-detail {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(28px, 5vw, 70px);
    background: var(--navy);
}

.profile-detail h2,
.profile-detail .profile-points,
.profile-detail .profile-points p {
    color: #fff;
}

.profile-points {
    display: grid;
    gap: 18px;
    font-size: 20px;
    line-height: 1.7;
}

.profile-extras {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.85fr);
    gap: clamp(24px, 5vw, 56px);
    background: #fff;
}

.expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expertise-list span {
    padding: 10px 13px;
    color: var(--navy);
    background: #f1f3fb;
    border: 1px solid rgba(36, 62, 148, 0.14);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
}

.philosophy-card {
    align-self: start;
    padding: clamp(24px, 4vw, 34px);
    color: var(--navy);
    background: var(--yellow);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 22, 51, 0.12);
}

.philosophy-card .eyebrow {
    color: var(--blue);
}

.philosophy-card blockquote {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    font-weight: 900;
}

.clients {
    background: linear-gradient(90deg, #fff 0 74%, var(--gold) 74% 100%);
}

.client-cloud {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    max-width: 1180px;
}

.client-cloud a,
.client-cloud > span {
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    min-height: 104px;
    padding: 12px;
    text-align: center;
    font-weight: 900;
    color: var(--blue);
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.client-cloud a img {
    width: 100%;
    max-width: 138px;
    height: 54px;
    object-fit: contain;
    margin-bottom: 10px;
}

.client-cloud a span {
    font-size: 12px;
    line-height: 1.2;
}

.pdf-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 940px;
    margin-top: 34px;
}

.pdf-preview img {
    border: 6px solid var(--blue);
    border-radius: 8px;
}

.article-card time {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.contact {
    padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 72px);
    color: var(--navy);
    background: var(--yellow);
}

.contact h2 {
    max-width: 940px;
}

.contact-row a {
    padding: 12px 16px;
    color: #fff;
    background: var(--navy);
    border-radius: 6px;
    font-weight: 800;
}

.article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 22px;
}

.article-page h1 {
    color: var(--navy);
    font-size: clamp(38px, 6vw, 72px);
}

.lead {
    color: var(--muted);
    font-size: 23px;
    line-height: 1.55;
}

.article-body {
    color: #242424;
    font-size: 19px;
    line-height: 1.8;
}

.admin-body {
    background: #eef1f8;
}

.login-box {
    width: min(440px, calc(100% - 32px));
    margin: 8vh auto;
    padding: 30px;
}

.login-box img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
}

.login-box h1 {
    color: var(--navy);
    font-size: 34px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
}

.admin-menu {
    position: sticky;
    top: 100px;
    align-self: start;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.admin-menu a {
    padding: 12px;
    color: var(--navy);
    font-weight: 900;
    border-radius: 6px;
}

.admin-menu a:hover {
    background: #f1f3fb;
}

.admin-content {
    display: grid;
    gap: 22px;
}

.panel {
    padding: 24px;
}

.panel h2 {
    font-size: 28px;
}

form {
    display: grid;
    gap: 16px;
}

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

.repeat-form {
    margin-bottom: 18px;
    padding: 16px;
    background: #f7f8fc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.repeat-form.compact {
    grid-template-columns: 1fr 1fr;
}

label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    color: #111;
    font: inherit;
    font-weight: 500;
    background: #fff;
    border: 1px solid #d6d9e3;
    border-radius: 6px;
}

textarea {
    min-height: 104px;
    resize: vertical;
}

.wide {
    grid-column: 1 / -1;
}

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 800;
}

.alert.success {
    color: #17452a;
    background: #dff5e8;
}

.alert.error {
    color: #7c1c1c;
    background: #fde2e2;
}

.admin-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.admin-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f7f8fc;
    border-radius: 6px;
}

.admin-list form {
    display: block;
}

.admin-list button {
    min-height: 34px;
    padding: 7px 10px;
    color: #fff;
    background: #b42318;
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes photoFloat {
    from {
        opacity: 0;
        transform: rotate(0deg) scale(0.96);
    }
    to {
        opacity: 1;
        transform: rotate(2deg) scale(1);
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 980px) {
    :root {
        --header-height: 126px;
    }

    .site-header,
    .admin-topbar {
        position: sticky;
        min-height: auto;
        padding: 10px 18px;
        gap: 12px;
    }

    nav {
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        flex: 0 0 auto;
        padding: 7px 10px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        font-size: 13px;
    }

    .hero,
    .split,
    .service-panel,
    .service-detail-hero,
    .service-detail-grid,
    .service-why,
    .profile-hero,
    .profile-detail,
    .profile-media,
    .profile-extras,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 18px;
        padding: 30px 18px 42px;
    }

    .hero-art {
        min-height: auto;
        order: 2;
    }

    .hero-art::before {
        width: min(420px, 88vw);
    }

    .hero-photo-card {
        width: min(440px, 90vw);
        aspect-ratio: 1.12;
        border-width: 5px;
        transform: none;
        animation-name: riseIn;
    }

    .hero-copy {
        order: 1;
    }

    h1 {
        font-size: clamp(40px, 12vw, 72px);
    }

    h2 {
        font-size: clamp(28px, 8vw, 44px);
    }

    .hero-copy p:not(.eyebrow) {
        font-size: clamp(17px, 4vw, 22px);
    }

    .service-grid,
    .service-tab-list,
    .article-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-panel-head {
        grid-template-columns: 1fr;
    }

    .service-panel,
    .service-detail-hero {
        min-height: auto;
    }

    .service-panel > img {
        min-height: 240px;
        aspect-ratio: 1.5;
    }

    .service-detail-hero {
        padding: 34px 18px 46px;
    }

    .service-detail-hero img {
        aspect-ratio: 1.35;
        border-width: 5px;
    }

    .profile-hero {
        min-height: auto;
        padding: 32px 18px 46px;
    }

    .profile-media {
        padding: 30px 18px;
    }

    .profile-detail,
    .profile-extras,
    .service-why {
        gap: 22px;
    }

    .team-card {
        grid-column: span 1;
    }

    .client-cloud {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-menu {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    :root {
        --header-height: 142px;
    }

    .site-header,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        gap: 10px;
        font-size: 18px;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .section {
        padding: 42px 16px;
    }

    .hero {
        min-height: auto;
        padding: 26px 16px 38px;
    }

    .hero-art {
        min-height: auto;
    }

    .hero-art::before {
        width: 82vw;
        border-radius: 0 8px 70px 0;
    }

    .hero-photo-card {
        width: 88vw;
        aspect-ratio: 1.08;
        border-radius: 12px;
    }

    .hero-logo-badge {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .hero-logo-badge img {
        width: 42px;
        height: 42px;
    }

    .hero-actions,
    .profile-actions,
    .contact-row {
        width: 100%;
    }

    .hero-actions .btn,
    .profile-actions .btn,
    .contact-row a {
        flex: 1 1 100%;
        width: 100%;
    }

    .profile-photo-wrap {
        min-height: 380px;
    }

    .profile-photo-wrap::before {
        width: min(330px, 82vw);
        height: min(390px, 96vw);
    }

    .profile-photo-wrap img {
        width: min(305px, 78vw);
        aspect-ratio: 0.8;
        border-width: 7px;
    }

    .profile-badge {
        right: 8px;
        bottom: 8px;
        width: min(230px, 74vw);
        padding: 13px;
    }

    .profile-copy h1 {
        font-size: clamp(36px, 11vw, 58px);
    }

    .profile-role,
    .profile-bio,
    .profile-points,
    .service-intro p {
        font-size: 17px;
        line-height: 1.6;
    }

    .service-tab-list {
        gap: 8px;
    }

    .service-tab-label {
        min-height: 48px;
        padding: 10px;
        font-size: 13px;
    }

    .service-panel-copy {
        padding: 24px 18px;
    }

    .service-panel-copy h3,
    .service-detail-hero h1 {
        font-size: clamp(31px, 10vw, 46px);
    }

    .project-panel {
        padding: 18px;
    }

    .project-card,
    .service-detail-card,
    .team-card,
    .article-card {
        min-height: auto;
        padding: 18px;
    }

    .project-card-top {
        grid-template-columns: 1fr;
        justify-content: start;
        gap: 8px;
    }

    .project-card-top span,
    .project-card-top strong {
        justify-content: center;
        width: fit-content;
    }

    .team-card img {
        width: 132px;
        height: 132px;
    }

    .team-showcase img {
        max-height: 190px;
    }

    .service-detail-card ul {
        gap: 8px;
    }

    .service-grid,
    .service-tab-list,
    .service-detail-card ul,
    .team-grid,
    .article-grid,
    .project-grid,
    .client-cloud,
    .pdf-preview,
    .form-grid,
    .repeat-form,
    .repeat-form.compact {
        grid-template-columns: 1fr;
    }

    .team-card {
        grid-template-columns: 1fr;
    }

    .admin-menu {
        grid-template-columns: 1fr 1fr;
    }

    .admin-list > div {
        grid-template-columns: 1fr;
    }
}
