:root {
    --red: #d71920;
    --red-dark: #9f1117;
    --ink: #171717;
    --muted: #666;
    --line: #e7e2dc;
    --paper: #f8f5f0;
    --white: #fff;
    --gold: #b9954b;
    --green: #31544a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background:
        linear-gradient(135deg, transparent 0 62%, rgba(215, 25, 32, 0.075) 62% 72%, transparent 72%),
        linear-gradient(45deg, transparent 0 78%, rgba(215, 25, 32, 0.06) 78% 86%, transparent 86%),
        var(--white);
    line-height: 1.8;
}

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

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

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 210px;
}

.brand img {
    width: 48px;
    height: auto;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
}

.brand-copy {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.88rem;
    font-weight: 800;
}

.nav a {
    position: relative;
    padding: 8px 0;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav a.current {
    color: var(--red);
}

.nav a.current::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 900;
    background: var(--red);
    border-radius: 4px;
    box-shadow: 0 12px 24px rgba(215, 25, 32, 0.22);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

main {
    position: relative;
    overflow: hidden;
}

main::before,
main::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

main::before {
    top: 930px;
    right: -120px;
    width: 360px;
    height: 520px;
    background: rgba(215, 25, 32, 0.14);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

main::after {
    top: 2500px;
    left: -140px;
    width: 420px;
    height: 620px;
    background: rgba(215, 25, 32, 0.13);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.animation-container {
    position: relative;
    width: 100%;
    height: 87vh;
    min-height: 620px;
    overflow: hidden;
    background: #000;
    margin-top: 76px;
}

.main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.red-triangle {
    position: absolute;
    z-index: 1;
    width: 30%;
    height: 40vh;
    background: rgba(255, 0, 0, 0.4);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform: translateX(-100%);
    transition: transform 1s ease-in-out;
}

.right {
    right: 0;
    bottom: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transform: translateX(100%);
}

.text {
    position: absolute;
    z-index: 2;
    width: 100%;
    text-align: center;
    font-size: 2em;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 1s ease-in-out 1.5s;
    top: 60%;
    transform: translateY(-50%);
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}

.animation-logo {
    position: absolute;
    z-index: 2;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out 1.5s;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.animation-container.active .red-triangle {
    transform: translateX(0);
}

.animation-container.active .text,
.animation-container.active .animation-logo,
.animation-container.active .main-image {
    opacity: 1;
}

.sub-hero {
    position: relative;
    min-height: 480px;
    margin-top: 76px;
    overflow: hidden;
    display: grid;
    align-items: end;
    color: var(--white);
    background: #000;
}

.sub-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.sub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 48%);
}

.sub-hero-shape {
    position: absolute;
    z-index: 1;
    width: 28%;
    height: 40%;
    background: rgba(215, 25, 32, 0.46);
}

.sub-hero-shape.left {
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.sub-hero-shape.right {
    right: 0;
    bottom: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 76px;
}

.sub-hero-content span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sub-hero-content span::before {
    content: "";
    width: 44px;
    height: 2px;
    background: var(--red);
}

.sub-hero-content h1 {
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 1;
}

.sub-hero-content p {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.section {
    position: relative;
    padding: 96px 0;
}

.section.alt {
    background:
        linear-gradient(135deg, transparent 0 68%, rgba(215, 25, 32, 0.09) 68% 76%, transparent 76%),
        var(--paper);
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            135deg,
            transparent 0 18px,
            rgba(215, 25, 32, 0.075) 18px 20px,
            transparent 20px 58px
        );
    opacity: 0.72;
}

.section:nth-of-type(even)::after {
    content: "";
    position: absolute;
    top: 62px;
    right: max(20px, calc((100vw - 1180px) / 2));
    z-index: -1;
    width: 120px;
    height: 120px;
    background: rgba(215, 25, 32, 0.15);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

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

.section-head {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 54px;
    align-items: end;
    margin-bottom: 44px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--red);
}

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

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.2;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
    line-height: 1.45;
}

.lead {
    margin-bottom: 0;
    color: #3a3a3a;
    font-size: 1.05rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 58px;
    align-items: center;
}

.split-section {
    display: grid;
    grid-template-columns: 0.95fr 1.2fr;
    gap: 70px;
}

.copy-block {
    padding-top: 8px;
    color: #333;
    font-size: 1.03rem;
}

.copy-block p:last-child {
    margin-bottom: 0;
}

.intro-media {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #222;
}

.intro-media img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.intro-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.intro-list {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.intro-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.intro-item span {
    color: var(--red);
    font-weight: 900;
}

.strengths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.strength-card {
    min-height: 310px;
    padding: 30px;
    color: var(--white);
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

.strength-card:nth-child(2) {
    background: var(--red-dark);
}

.strength-card:nth-child(3) {
    background: var(--green);
}

.strength-card b {
    display: block;
    margin-bottom: 66px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 3.5rem;
    line-height: 1;
}

.strength-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

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

.service-card {
    padding: 26px;
    min-height: 240px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.service-card .mark {
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
    background: var(--red);
    border-radius: 50%;
}

.service-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

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

.service-detail {
    position: relative;
    min-height: 300px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
}

.service-detail::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 112px;
    height: 112px;
    background: rgba(215, 25, 32, 0.12);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.service-detail .mark {
    width: 48px;
    height: 48px;
    margin-bottom: 42px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
    background: var(--red);
    border-radius: 50%;
}

.service-detail span {
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 900;
}

.service-detail h3 {
    margin-top: 8px;
}

.service-detail p {
    margin-bottom: 0;
    color: var(--muted);
}

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

.project-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: #222;
}

.project-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.caption span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 800;
}

.project-list {
    display: grid;
    gap: 20px;
}

.project-row {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    min-height: 360px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
}

.project-row:nth-child(even) {
    grid-template-columns: 1fr 0.85fr;
}

.project-row:nth-child(even) img {
    order: 2;
}

.project-row img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.project-row div {
    position: relative;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-row div::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 120px;
    height: 120px;
    background: rgba(215, 25, 32, 0.12);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.project-row span {
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 900;
}

.project-row p {
    margin-bottom: 0;
    color: var(--muted);
}

.process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.process-step {
    min-height: 240px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.process-step span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
}

.process-step p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--line);
}

.company-table th,
.company-table td {
    padding: 18px 0;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.company-table th {
    width: 140px;
    color: var(--muted);
    font-size: 0.9rem;
}

.philosophy {
    padding: 38px;
    color: var(--white);
    background: var(--ink);
}

.philosophy p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.contact-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ink);
    color: var(--white);
}

.contact-content {
    padding: 70px;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    color: var(--white);
    font-weight: 900;
    background: var(--red);
    border-radius: 4px;
}

.button.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 52px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(215, 25, 32, 0.28), transparent 42%),
        var(--ink);
}

.cta-panel p {
    max-width: 620px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.25fr;
    gap: 54px;
    align-items: start;
}

.form-intro {
    position: sticky;
    top: 110px;
}

.form-intro p {
    margin-bottom: 0;
    color: var(--muted);
}

.contact-form {
    position: relative;
    padding: 42px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.contact-form::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 140px;
    height: 140px;
    background: rgba(215, 25, 32, 0.12);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.contact-form label {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
    font-weight: 900;
}

.contact-form label span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form b {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    color: var(--white);
    font-size: 0.72rem;
    background: var(--red);
    border-radius: 3px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 13px 14px;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    background: var(--white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(215, 25, 32, 0.22);
    border-color: var(--red);
}

.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-message {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 4px;
    font-weight: 800;
}

.form-message p {
    margin-bottom: 4px;
}

.form-message p:last-child {
    margin-bottom: 0;
}

.form-message.success {
    color: #155c37;
    background: #e8f5ee;
    border: 1px solid #b9dfca;
}

.form-message.error {
    color: var(--red-dark);
    background: #fff0f0;
    border: 1px solid #f2b8b8;
}

.form-submit {
    position: relative;
    z-index: 1;
    border: 0;
    cursor: pointer;
}

.contact-card {
    min-height: 330px;
    padding: 44px;
    border: 1px solid var(--line);
    background: var(--white);
}

.contact-card.dark {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(215, 25, 32, 0.25), transparent 54%),
        var(--ink);
}

.contact-card h2 {
    margin: 18px 0 16px;
}

.contact-card p {
    color: var(--muted);
}

.contact-card.dark p {
    color: rgba(255, 255, 255, 0.78);
}

.admin-layout {
    display: grid;
    gap: 28px;
}

.admin-login {
    max-width: 640px;
    margin: 0 auto;
}

.admin-login h2,
.admin-top h2 {
    margin: 12px 0 18px;
}

.admin-note {
    color: var(--muted);
    font-size: 0.94rem;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.admin-list-head h2 {
    margin: 12px 0 0;
}

.admin-head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-logout,
.admin-instagram-import {
    color: var(--ink);
    border-color: var(--line);
}

.admin-form {
    width: 100%;
}

.admin-import-box {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    background: #fff;
}

.admin-import-box h3 {
    margin: 8px 0;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.admin-import-box p {
    margin: 0;
    color: var(--muted);
}

.admin-import-button {
    justify-self: start;
    color: var(--ink);
    border-color: var(--line);
}

.admin-current-image {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    max-width: 320px;
    margin: -4px 0 22px;
    font-weight: 900;
}

.admin-current-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #222;
}

.admin-form-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-cancel {
    color: var(--ink);
    border-color: var(--line);
}

.admin-projects {
    display: grid;
    gap: 16px;
}

.admin-project {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--white);
}

.admin-project img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #222;
}

.admin-project span {
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 900;
}

.admin-project h3 {
    margin: 4px 0 8px;
}

.admin-project p {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-source-link,
.project-source-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--red-dark);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.admin-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-edit,
.admin-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    font: inherit;
    font-weight: 900;
    border-radius: 4px;
    cursor: pointer;
}

.admin-edit {
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--white);
}

.admin-delete {
    color: var(--red-dark);
    border: 1px solid #f2b8b8;
    background: #fff0f0;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.check-item {
    min-height: 150px;
    padding: 24px;
    display: flex;
    align-items: end;
    color: var(--white);
    font-weight: 900;
    background: var(--red-dark);
    position: relative;
    overflow: hidden;
}

.check-item:nth-child(odd) {
    background: var(--ink);
}

.check-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 82px;
    height: 82px;
    background: rgba(255, 255, 255, 0.16);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.access-panel {
    padding: 70px;
    background: var(--red-dark);
}

.access-panel dl {
    margin: 0;
    display: grid;
    gap: 22px;
}

.access-panel dt {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 900;
}

.access-panel dd {
    margin: 4px 0 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.site-footer {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.68);
    background: #101010;
    font-size: 0.82rem;
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 28px 28px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--line);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .tel-link {
        display: none;
    }

    .section-head,
    .intro-grid,
    .company-grid,
    .contact-band,
    .split-section,
    .contact-page-grid,
    .contact-form-layout {
        grid-template-columns: 1fr;
    }

    .form-intro {
        position: static;
    }

    .strengths,
    .services,
    .service-detail-grid,
    .check-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .process {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content,
    .access-panel {
        padding: 44px;
    }

    .admin-project {
        grid-template-columns: 160px 1fr;
    }

    .admin-project-actions {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .project-row,
    .project-row:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .project-row:nth-child(even) img {
        order: 0;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-list-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-head-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    body {
        background:
            linear-gradient(135deg, transparent 0 70%, rgba(215, 25, 32, 0.065) 70% 80%, transparent 80%),
            var(--white);
    }

    main::before,
    main::after {
        opacity: 0.82;
    }

    main::before {
        top: 820px;
        right: -210px;
    }

    main::after {
        top: 2700px;
        left: -260px;
    }

    .section::before {
        opacity: 0.52;
    }

    .section:nth-of-type(even)::after {
        width: 82px;
        height: 82px;
        top: 34px;
        right: 14px;
    }

    .site-header {
        height: 68px;
    }

    .header-inner {
        width: min(100% - 28px, 1180px);
    }

    .brand img {
        width: 42px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-copy {
        font-size: 0.64rem;
    }

    .nav {
        top: 68px;
    }

    .animation-container {
        height: 87vh;
        min-height: 87vh;
        margin-top: 68px;
    }

    .sub-hero {
        min-height: 410px;
        margin-top: 68px;
    }

    .sub-hero-shape {
        width: 46%;
        height: 32%;
    }

    .sub-hero-content {
        width: min(100% - 28px, 1180px);
        padding-bottom: 48px;
    }

    .sub-hero-content h1 {
        font-size: 2.75rem;
    }

    .sub-hero-content p {
        font-size: 0.98rem;
    }

    .main-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .red-triangle {
        width: 50%;
        height: 30vh;
    }

    .text {
        font-size: 1.5em;
        top: 65%;
        padding: 0 22px;
    }

    .animation-logo {
        width: 150px;
        top: 30%;
    }

    .section {
        padding: 66px 0;
    }

    .wrap {
        width: min(100% - 28px, 1180px);
    }

    .section-head {
        gap: 18px;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 2rem;
    }

    .intro-media,
    .intro-media img {
        min-height: 310px;
    }

    .intro-item {
        grid-template-columns: 44px 1fr;
    }

    .strengths,
    .services,
    .project-grid,
    .process,
    .service-detail-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }

    .strength-card {
        min-height: 260px;
    }

    .project-card,
    .project-card img {
        min-height: 320px;
    }

    .project-row img {
        min-height: 280px;
    }

    .project-row div,
    .service-detail,
    .contact-card,
    .contact-form,
    .cta-panel {
        padding: 28px 24px;
    }

    .form-two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-top {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 2px;
        border-bottom: 0;
    }

    .company-table td {
        padding-top: 2px;
    }

    .philosophy,
    .contact-content,
    .access-panel {
        padding: 30px 24px;
    }

    .footer-inner {
        width: min(100% - 28px, 1180px);
        flex-direction: column;
    }
}
