/* =========================================================
   IVORIST
   Shared stylesheet
   ========================================================= */


/* -------------------------
   1. VARIABLES & RESET
   ------------------------- */

:root {
    --bg: #08090a;
    --bg-secondary: #0d100e;
    --surface: #101512;
    --surface-hover: #141c17;

    --text: #edf3ef;
    --muted: #a0aaa3;
    --subtle: #6f7b73;

    --green: #4ade80;
    --green-dark: #22c55e;
    --mint: #c9f9dd;

    --border: rgba(220, 255, 232, 0.10);
    --border-strong: rgba(220, 255, 232, 0.17);

    --gradient: linear-gradient(
        115deg,
        #effff6 0%,
        #7ce7ad 48%,
        #34d399 100%
    );

    --font-body: "Roboto Mono", monospace;
    --font-heading: "Space Mono", monospace;

    --content-width: 1120px;
    --header-height: 76px;

    --radius-small: 6px;
    --radius-medium: 10px;
    --radius-large: 14px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


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


body {
    position: relative;
    isolation: isolate;

    min-height: 100vh;
    overflow-x: hidden;

    background: #08090a;
    color: #edf3ef;

    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.8;

    -webkit-font-smoothing: antialiased;
}


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


button,
input,
textarea {
    font: inherit;
}


button {
    color: inherit;
}


ul,
ol {
    list-style: none;
}


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


::selection {
    color: var(--bg);
    background: var(--green);
}


.container {
    width: min(
        var(--content-width),
        calc(100% - 48px)
    );

    margin-inline: auto;
}


/* Main background layer */
.background-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 78% 8%,
            rgba(52, 211, 153, 0.075),
            transparent 34%
        ),
        radial-gradient(
            ellipse at 8% 58%,
            rgba(74, 222, 128, 0.035),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #08090a 0%,
            #0b100e 48%,
            #08090a 100%
        );
}


/* Large, cropped outline */
.background-glow::before {
    content: "";
    position: absolute;

    width: 680px;
    height: 680px;

    top: -330px;
    right: -190px;

    border: 1px solid rgba(124, 231, 173, 0.12);
    border-radius: 50%;

    box-shadow:
        0 0 0 55px rgba(124, 231, 173, 0.018),
        0 0 0 110px rgba(124, 231, 173, 0.012);
}


/* Subtle diagonal accent */
.background-glow::after {
    content: "";
    position: absolute;

    width: 1px;
    height: 115%;
    top: -8%;
    left: 72%;

    transform: rotate(28deg);

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(124, 231, 173, 0.13) 25%,
        rgba(124, 231, 173, 0.04) 70%,
        transparent
    );
}


/* -------------------------
   2. TYPOGRAPHY
   ------------------------- */

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.35;
}


h1 {
    letter-spacing: -0.055em;
}


h2 {
    letter-spacing: -0.04em;
}


p {
    overflow-wrap: break-word;
}


.eyebrow {
    color: var(--green);

    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.13em;
    line-height: 1.7;
}


.gradient-text {
    background: linear-gradient(
        115deg,
        #effff6 0%,
        #7ce7ad 48%,
        #34d399 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.title-period {
    color: var(--green);
}


/* -------------------------
   3. NAVIGATION
   ------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    height: var(--header-height);

    border-bottom: 1px solid transparent;

    background: rgba(8, 9, 10, 0.82);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.site-header.scrolled {
    border-color: var(--border);
    background: rgba(8, 9, 10, 0.96);
}


.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;
    gap: 30px;
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}


.brand-logo {
    width: 31px;
    height: 31px;
}


.brand-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.16em;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 36px);
}


.nav-links a {
    position: relative;

    color: var(--muted);
    font-size: 11px;

    transition: color 0.2s ease;
}


.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--mint);
}


.nav-links a[aria-current="page"]::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;

    height: 1px;

    background: var(--green);
}


.nav-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;
    background: transparent;

    cursor: pointer;
}


.nav-toggle span {
    display: block;

    width: 21px;
    height: 1px;

    margin: 5px auto;

    background: var(--mint);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
}


.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}


.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}


/* -------------------------
   4. BUTTONS & LINKS
   ------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    min-height: 48px;
    padding: 0 19px;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}


.button:hover:not(:disabled) {
    transform: translateY(-2px);
}


.button:focus-visible,
.text-link:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}


.button-primary {
    color: #07110b;

    background: var(--green);
    border-color: var(--green);
}


.button-primary:hover:not(:disabled) {
    background: #6be996;
    border-color: #6be996;

    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.12);
}


.button-outline {
    color: var(--text);

    background: transparent;
    border-color: var(--border-strong);
}


.button-outline:hover:not(:disabled) {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(74, 222, 128, 0.045);
}


.button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}


.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--mint);
    font-size: 11px;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}


.text-link:hover {
    gap: 14px;
    color: var(--green);
}


.text-link span {
    color: var(--green);
    font-size: 15px;
}


/* -------------------------
   5. HERO SECTIONS
   ------------------------- */

.hero {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 650px;
    padding-top: 100px;
    padding-bottom: 65px;
}


.hero-title {
    max-width: 900px;

    margin-top: 25px;

    font-size: clamp(43px, 7vw, 78px);
    line-height: 1.2;
}


.hero-description {
    max-width: 680px;

    margin-top: 24px;

    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}


.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;

    margin-top: 34px;
}


.hero-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-top: auto;
    padding-top: 70px;

    border-top: 1px solid var(--border);

    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 0.08em;
}


.page-hero {
    padding-top: 110px;
    padding-bottom: 65px;
}


.page-title {
    max-width: 900px;

    margin-top: 22px;

    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.25;
}


.page-description {
    max-width: 690px;

    margin-top: 22px;

    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}


.project-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}


/* -------------------------
   6. SECTIONS
   ------------------------- */

.section {
    padding-top: 100px;
    padding-bottom: 100px;
}


.section-alt {
    position: relative;

    background:
        linear-gradient(
            110deg,
            rgba(15, 24, 19, 0.72),
            rgba(9, 13, 11, 0.48)
        );

    border-top: 1px solid rgba(220, 255, 232, 0.055);
    border-bottom: 1px solid rgba(220, 255, 232, 0.055);
}


.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}


.section-heading h2 {
    margin-top: 12px;

    font-size: clamp(27px, 4vw, 43px);
    line-height: 1.35;
}


.section-description {
    max-width: 570px;

    margin-top: 15px;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}


.section-footer-link {
    display: flex;
    justify-content: flex-end;

    margin-top: 28px;
}


/* -------------------------
   7. HOMEPAGE INTRO
   ------------------------- */

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: start;
}


.intro-lead {
    max-width: 630px;

    color: var(--text);

    font-size: clamp(18px, 2.4vw, 25px);
    line-height: 1.8;
}


.intro-copy {
    max-width: 470px;

    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}


.intro-copy p + p {
    margin-top: 18px;
}


.intro-copy .text-link {
    margin-top: 25px;
}


/* -------------------------
   8. FEATURED PROJECT
   ------------------------- */

.featured-project {
    position: relative;
    overflow: hidden;

    padding: 30px;

    border: 1px solid rgba(124, 231, 173, 0.13);
    border-radius: var(--radius-large);

    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(52, 211, 153, 0.09),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #111814,
            #0c100e
        );
}


.project-label {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 16px;

    border-bottom: 1px solid var(--border);

    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 0.1em;
}


.featured-project-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 45px;

    padding-top: 35px;
}


.featured-project-content h3 {
    margin-bottom: 13px;

    font-size: clamp(27px, 4vw, 39px);
}


.featured-project-content p {
    max-width: 680px;

    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}


.featured-project-content p + p {
    margin-top: 12px;
}


.featured-project-content .button {
    flex-shrink: 0;
}


/* -------------------------
   9. CAPABILITY CARDS
   ------------------------- */

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


.capability-card {
    min-height: 215px;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.capability-card:hover {
    transform: translateY(-3px);

    border-color: rgba(74, 222, 128, 0.35);
    background: var(--surface-hover);
}


.capability-number {
    color: var(--green);
    font-size: 10px;
}


.capability-card h3 {
    margin-top: 35px;
    margin-bottom: 10px;

    font-size: 17px;
}


.capability-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}


/* -------------------------
   10. CONTACT PANEL
   ------------------------- */

.contact-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;

    position: relative;
    overflow: hidden;

    padding: 38px;

    border: 1px solid rgba(124, 231, 173, 0.16);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            115deg,
            rgba(24, 48, 35, 0.65),
            rgba(11, 17, 13, 0.92)
        );
}


.contact-panel h2 {
    margin-top: 12px;

    font-size: clamp(27px, 4vw, 40px);
}


.contact-panel p:not(.eyebrow) {
    max-width: 580px;

    margin-top: 13px;

    color: var(--muted);
    font-size: 11px;
}


/* -------------------------
   11. ABOUT PAGE
   ------------------------- */

.about-story {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}


.prose {
    max-width: 700px;

    color: var(--muted);
    font-size: 12px;
    line-height: 2.1;
}


.prose p + p {
    margin-top: 20px;
}


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


.principle-card {
    min-height: 220px;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);
}


.principle-number {
    color: var(--green);
    font-size: 10px;
}


.principle-card h3 {
    margin-top: 30px;
    margin-bottom: 10px;

    font-size: 15px;
}


.principle-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}


.about-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}


.about-bottom h2 {
    margin-top: 12px;

    font-size: clamp(26px, 4vw, 39px);
}


/* -------------------------
   12. PROJECT DIRECTORY
   ------------------------- */

.directory-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 15px;
    margin-bottom: 20px;

    border-bottom: 1px solid var(--border);

    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 0.12em;
}


.project-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}


.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 222, 128, 0.35);
}


.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 23px;

    border-bottom: 1px solid var(--border);

    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 0.1em;
}


.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 10px;

    border: 1px solid rgba(74, 222, 128, 0.22);
    border-radius: 4px;

    color: var(--mint);
    font-size: 9px;
    letter-spacing: 0.07em;
}


.status-development::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);
}


.status-released::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--mint);
}


.project-card-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;

    padding: 30px 23px;
}


.project-card-content h2 {
    margin: 8px 0 12px;

    font-size: 27px;
}


.project-card-content p:not(.eyebrow) {
    max-width: 650px;

    color: var(--muted);
    font-size: 11px;
    line-height: 2;
}


.project-card-content .button {
    flex-shrink: 0;
}


.project-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;

    flex-shrink: 0;
}


.project-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    padding: 15px 23px;

    border-top: 1px solid var(--border);

    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 0.07em;
}


.directory-note {
    margin-top: 22px;

    color: var(--subtle);
    font-size: 10px;
}


/* -------------------------
   13. ARCHIVIST PAGE
   ------------------------- */

.project-overview {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 75px;
    align-items: start;
}


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


.development-card {
    min-height: 220px;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);
}


.development-index {
    color: var(--green);
    font-size: 10px;
}


.development-card h3 {
    margin-top: 30px;
    margin-bottom: 12px;

    font-size: 15px;
}


.development-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}


.tech-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);
}


.tech-panel h2 {
    margin-top: 12px;
    font-size: 25px;
}


.tech-panel > div:first-child p:last-child {
    margin-top: 12px;

    color: var(--muted);
    font-size: 11px;
}


.project-facts {
    display: grid;
    gap: 0;
}


.project-facts div {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border);
}


.project-facts div:first-child {
    padding-top: 0;
}


.project-facts div:last-child {
    border-bottom: 0;
}


.project-facts span {
    color: var(--subtle);
    font-size: 9px;
}


.project-facts strong {
    color: var(--mint);
    font-size: 10px;
    font-weight: 500;
    text-align: right;
}


/* -------------------------
   14. SERVICES PAGE
   ------------------------- */

.service-list {
    border-top: 1px solid var(--border);
}


.service-item {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 25px;

    padding: 34px 0;

    border-bottom: 1px solid var(--border);
}


.service-number {
    color: var(--green);
    font-size: 11px;
}


.service-content h2 {
    margin-top: 9px;
    margin-bottom: 12px;

    font-size: clamp(19px, 2.5vw, 27px);
}


.service-content > p:not(.eyebrow) {
    max-width: 650px;

    color: var(--muted);
    font-size: 11px;
}


.service-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 25px;

    margin-top: 22px;
}


.service-details li {
    position: relative;

    padding-left: 17px;

    color: var(--muted);
    font-size: 10px;
}


.service-details li::before {
    content: "";

    position: absolute;
    top: 9px;
    left: 0;

    width: 5px;
    height: 5px;

    border-radius: 50%;
    background: var(--green);
}


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


.workflow-step {
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);
}


.workflow-step > span {
    color: var(--green);
    font-size: 10px;
}


.workflow-step h3 {
    margin-top: 27px;
    margin-bottom: 9px;

    font-size: 14px;
}


.workflow-step p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
}


/* -------------------------
   15. TEAM PAGE
   ------------------------- */

.team-list {
    max-width: 850px;
    margin-inline: auto;

    border-top: 1px solid var(--border);
}


.team-member {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 28px;

    padding: 28px 0;

    border-bottom: 1px solid var(--border);
}


.team-avatar {
    display: grid;
    place-items: center;

    width: 68px;
    height: 68px;

    border: 1px solid rgba(74, 222, 128, 0.38);
    border-radius: 50%;

    background: rgba(74, 222, 128, 0.035);

    color: var(--mint);

    font-family: var(--font-heading);
    font-size: 18px;
}


.team-member-info h2 {
    font-size: 20px;
}


.team-role {
    margin-top: 5px;
    margin-bottom: 10px;

    color: var(--green);
    font-size: 9px;
    letter-spacing: 0.08em;
}


.team-description {
    max-width: 620px;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}


/* -------------------------
   16. CONTACT PAGE
   ------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 75px;
    align-items: start;
}


.contact-information {
    max-width: 390px;
}


.contact-email {
    display: inline-block;

    margin-top: 12px;
    margin-bottom: 18px;

    color: var(--mint);
    font-size: clamp(16px, 2vw, 22px);

    transition: color 0.2s ease;
}


.contact-email:hover {
    color: var(--green);
}


.contact-information > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 11px;
    line-height: 2;
}


.contact-divider {
    height: 1px;
    margin: 35px 0 22px;

    background: var(--border);
}


.contact-small-label {
    margin-bottom: 12px;

    color: var(--green) !important;
    font-family: var(--font-heading);
    font-size: 9px !important;
    letter-spacing: 0.1em;
}


.contact-areas {
    line-height: 2.3 !important;
}


.contact-form {
    display: grid;
    gap: 20px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);
}


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


.contact-form label {
    display: grid;
    gap: 9px;

    color: var(--muted);
    font-size: 10px;
}


.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    outline: none;

    background: #090c0a;
    color: var(--text);

    font-family: var(--font-body);
    font-size: 11px;

    resize: vertical;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


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


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(74, 222, 128, 0.65);

    background: #0b100c;

    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.07);
}


.submit-button {
    justify-self: start;
    min-width: 170px;
}


.button-label {
    display: inline-block;
}


.button-spinner {
    display: none;

    width: 13px;
    height: 13px;

    border: 2px solid rgba(7, 17, 11, 0.25);
    border-top-color: #07110b;

    border-radius: 50%;
}


.submit-button.is-loading .button-spinner {
    display: inline-block;
    animation: button-spin 0.7s linear infinite;
}


.submit-button.is-loading .button-arrow {
    display: none;
}


@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}


.form-feedback {
    padding: 12px 14px;

    border-radius: var(--radius-small);

    font-size: 10px;
    line-height: 1.8;
}


.form-success {
    border: 1px solid rgba(74, 222, 128, 0.25);

    color: var(--mint);
    background: rgba(74, 222, 128, 0.045);
}


.form-error {
    border: 1px solid rgba(248, 113, 113, 0.25);

    color: #fca5a5;
    background: rgba(248, 113, 113, 0.045);
}


.hp {
    position: absolute !important;
    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    opacity: 0 !important;
    pointer-events: none !important;
}


/* -------------------------
   17. FOOTER
   ------------------------- */

.site-footer {
    margin-top: 25px;

    border-top: 1px solid var(--border);

    background: var(--bg-secondary);
}


.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    padding-top: 25px;
    padding-bottom: 25px;
}


.footer-copy,
.footer-top-link {
    color: var(--subtle);
    font-size: 10px;
}


.footer-top-link {
    transition: color 0.2s ease;
}


.footer-top-link:hover {
    color: var(--mint);
}


.footer-legal {
    display: flex;
    gap: 16px;
}


.footer-legal a {
    color: var(--subtle);
    font-size: 10px;

    transition: color 0.2s ease;
}


.footer-legal a:hover {
    color: var(--mint);
}


/* -------------------------
   18. SCROLL ANIMATIONS
   ------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(12px);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}


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


@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* -------------------------
   19. RESPONSIVE LAYOUT
   ------------------------- */

@media (max-width: 900px) {

    .intro-grid,
    .about-story,
    .project-overview {
        grid-template-columns: 1fr;
        gap: 35px;
    }


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


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


    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    .contact-information {
        max-width: 600px;
    }

}


@media (max-width: 700px) {

    :root {
        --header-height: 68px;
    }


    .container {
        width: calc(100% - 36px);
    }


    .nav-toggle {
        display: block;
        margin-left: auto;
    }


    .nav-links {
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px 22px 20px;

        border-bottom: 1px solid var(--border);

        background: rgba(8, 9, 10, 0.97);

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }


    .nav-links.open {
        display: flex;
    }


    .nav-links li {
        border-bottom: 1px solid var(--border);
    }


    .nav-links li:last-child {
        border-bottom: 0;
    }


    .nav-links a {
        display: block;
        padding: 13px 0;

        font-size: 11px;
    }


    .nav-links a[aria-current="page"]::after {
        display: none;
    }


    .hero {
        min-height: 580px;
        padding-top: 80px;
        padding-bottom: 45px;
    }


    .hero-title {
        font-size: clamp(40px, 10vw, 60px);
    }


    .hero-bottom {
        flex-direction: column;
        gap: 7px;

        padding-top: 28px;
    }


    .page-hero {
        padding-top: 75px;
        padding-bottom: 45px;
    }


    .page-title {
        font-size: clamp(37px, 9vw, 56px);
    }


    .section {
        padding-top: 75px;
        padding-bottom: 75px;
    }


    .section-heading {
        margin-bottom: 30px;
    }


    .featured-project-content,
    .project-card-content,
    .contact-panel,
    .about-bottom {
        align-items: flex-start;
        flex-direction: column;
    }


    .featured-project {
        padding: 22px;
    }


    .project-card-content {
        padding: 24px 20px;
    }


    .capability-grid,
    .principle-grid,
    .development-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }


    .capability-card,
    .principle-card,
    .development-card {
        min-height: auto;
    }


    .capability-card h3,
    .principle-card h3,
    .development-card h3 {
        margin-top: 20px;
    }


    .service-item {
        grid-template-columns: 35px 1fr;
        gap: 15px;
    }


    .service-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }


    .team-member {
        grid-template-columns: 58px 1fr;
        gap: 16px;
    }


    .team-avatar {
        width: 52px;
        height: 52px;
        font-size: 15px;
    }


    .tech-panel {
        grid-template-columns: 1fr;
        gap: 25px;
    }


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


    .contact-form {
        padding: 20px;
    }


    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

}


/* -------------------------
   BACKGROUND: MOBILE
   ------------------------- */

@media (max-width: 768px) {
    .background-glow::before {
        width: 400px;
        height: 400px;
        top: -220px;
        right: -220px;
    }

    .background-glow::after {
        left: 85%;
        opacity: 0.5;
    }
}


@media (prefers-reduced-motion: reduce) {
    .background-glow,
    .background-glow::before,
    .background-glow::after {
        animation: none;
    }
}
