




/* PROJECTLY.LK - Stylesheet
   Visual identity: Cream / Orange / Graphite
   Typography: Sora */


/* Design Tokens
   Values that are the SAME in every theme live on :root.
   Only colours and shadows (theme tokens) live in the theme blocks below.
   Previously these were inside the light block only, so in dark mode they
   did not exist and var() fell back to defaults (no section padding,
   no Sora font, no border radius, no transitions). */

:root {
    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --radius-pill: 999px;

    --section-space: 120px;

    --glass-blur: 18px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s ease;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    --font-main: "Sora", sans-serif;

    /* Runtime variables: declared here with their starting values, then
       updated by JavaScript (theme.js sets both during a theme switch). */
    --ink-clip: circle(0px at 0px 0px);
    --ink-duration: 1.65s;
}


/* Light Theme Tokens */

[data-bs-theme="light"] {
    color-scheme: light;

    --color-cream: #FFF0E5;
    --color-background: #F4F4F5;
    --color-surface: #FFFFFF;
    --color-surface-soft: #FFF0E5;

    --color-orange: #F97316;
    --color-orange-hover: #C2410C;
    --color-orange-light: #FFF0E5;

    --color-graphite: #27272A;
    --color-text: #18181B;
    --color-muted: #6B6B73; /* 4.8:1 on #F4F4F5 (was #71717A, 4.39:1) */

    --color-border: #D4D4D8;
    --color-border-strong: #A1A1AA;

    --glass-background: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.85);

    --shadow-small: 0 5px 20px rgba(24, 24, 27, 0.06);
    --shadow-medium: 0 15px 40px rgba(24, 24, 27, 0.10);
    --shadow-large: 0 25px 70px rgba(24, 24, 27, 0.14);

    /* Accessible accent tokens (WCAG AA, 4.5:1 for normal text)
       #F97316 fails as text on light backgrounds (about 2.6:1) and with
       white text on top (about 2.8:1), so text and buttons use darker
       oranges. Bright #F97316 stays for decoration (lines, icons, glows). */
    --color-accent-text: #C2410C;   /* 4.7:1 on #F4F4F5 */
    --button-bg: #C2410C;           /* white text: 5.2:1 */
    --button-bg-hover: #9A3412;     /* white text: 7.3:1 */
    --button-text: #FFFFFF;

    --bs-body-color: var(--color-text);
    --bs-body-bg: var(--color-background);
    --bs-emphasis-color: var(--color-text);
    --bs-secondary-color: var(--color-muted);
    --bs-border-color: var(--color-border);
    --bs-card-color: var(--color-text);
    --bs-card-bg: var(--color-surface);

}


/* Dark Mode Tokens */

[data-bs-theme="dark"] {
    color-scheme: dark;

    --color-cream: #422618;
    --color-background: #18181B;
    --color-surface: #27272A;
    --color-surface-soft: #3F3F46;

    --color-orange: #F97316;
    --color-orange-hover: #FDBA74;
    --color-orange-light: #422618;

    --color-graphite: #3F3F46;
    --color-text: #E4E4E7;
    --color-muted: #A1A1AA;

    --color-border: #3F3F46;
    --color-border-strong: #52525B;

    --glass-background: rgba(39, 39, 42, 0.78);
    --glass-border: rgba(255, 255, 255, 0.10);

    --shadow-small: 0 5px 20px rgba(0, 0, 0, 0.20);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.28);
    --shadow-large: 0 25px 70px rgba(0, 0, 0, 0.36);

    /* Bright orange text is readable on dark surfaces (about 6.3:1 on
       #18181B). Buttons keep the same darker orange so white text passes. */
    --color-accent-text: #F97316;
    --button-bg: #C2410C;
    --button-bg-hover: #9A3412;
    --button-text: #FFFFFF;

    --bs-body-color: var(--color-text);
    --bs-body-bg: var(--color-background);
    --bs-emphasis-color: var(--color-text);
    --bs-secondary-color: var(--color-muted);
    --bs-border-color: var(--color-border);
    --bs-card-color: var(--color-text);
    --bs-card-bg: var(--color-surface);
}


/* Global Style and Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-main);
    background: var(--color-background);
    color: var(--color-text);

    overflow-x: hidden;

    /* Room for the floating navbar (14px gap + 64px pill + breathing space) */
    padding-top: 92px;

    transition:
            background-color var(--transition-normal),
            color var(--transition-normal);

    position: relative;
    isolation: isolate;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

ul {
    list-style: none;
}

::selection {
    background: var(--button-bg);
    color: #FFFFFF;
}

.container {
    max-width: 1240px;
}

.section-padding {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.section-eyebrow {
    display: inline-block;

    color: var(--color-accent-text);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 18px;
}

.section-title {
    color: var(--color-text);

    font-size: clamp(2.1rem, 4vw, 3.5rem);

    font-weight: 600;
    line-height: 1.2;

    letter-spacing: -2px;
}

/* Accent words use the accessible accent token: dark orange on light
   backgrounds (4.7:1), bright orange on dark ones (6.3:1). Bright #F97316
   on the light background was only about 2.6:1, below the 3:1 minimum
   for large text. */
.section-title > span {
    color: var(--color-accent-text);
}

.section-description {
    color: var(--color-muted);

    font-size: 0.98rem;
    line-height: 1.9;

    max-width: 650px;

    margin-top: 18px;
}


/* Navbar: floating pill
   The fixed <nav> is a transparent layer. The inner .container is the
   visible pill, so it can float away from the screen edges. */

.projectly-navbar {
    padding: 14px 0 0;

    background: transparent;

    transition: padding var(--transition-normal);
}

.projectly-navbar .container {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    min-height: 64px;

    padding: 8px 10px 8px 22px;

    background: color-mix(in srgb, var(--color-surface) 90%, transparent);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);

    box-shadow: var(--shadow-small);

    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);

    transition:
            min-height var(--transition-normal),
            border-radius var(--transition-normal),
            box-shadow var(--transition-normal),
            background var(--transition-normal);
}

/* After scrolling (class added in main.js) the pill tucks up and shrinks. */
.projectly-navbar.navbar-scrolled {
    padding-top: 8px;
}

.projectly-navbar.navbar-scrolled .container {
    min-height: 56px;

    box-shadow: var(--shadow-medium);
}

/* An open mobile menu is too tall for a pill shape, so the corners
   become a normal rounded rectangle while it is open. */
.projectly-navbar:has(.navbar-collapse.show, .navbar-collapse.collapsing) .container {
    border-radius: 24px;
}

/* Primary call to action inside the navbar */
.nav-cta {
    display: inline-flex;
    align-items: center;

    height: 42px;
    padding: 0 20px;

    color: var(--button-text);
    background: var(--button-bg);

    border-radius: var(--radius-pill);

    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;

    transition:
            background var(--transition-fast),
            translate var(--transition-fast);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    color: var(--button-text);
    background: var(--button-bg-hover);
    translate: 0 -1px;
}

.navbar-brand {
    gap: 10px;
    margin-right: 0;
}

.navbar-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-name {
    color: var(--color-text);

    font-size: 1.05rem;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.projectly-navbar .navbar-nav {
    gap: 10px;
}

.projectly-navbar .nav-link {
    position: relative;

    color: var(--color-muted);

    font-size: 0.84rem;
    font-weight: 500;

    padding: 9px 15px !important;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    transition:
            color var(--transition-fast),
            background var(--transition-fast),
            border-color var(--transition-fast);
}

.projectly-navbar .nav-link:hover,
.projectly-navbar .nav-link:focus-visible {
    color: var(--color-accent-text);

    background: var(--glass-background);

    border-color: var(--glass-border);
}

.projectly-navbar .nav-link.active {
    color: var(--color-accent-text);

    background: var(--color-orange-light);
}

.navbar-actions {
    gap: 12px !important;
}

.theme-toggle {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: var(--color-text);

    background: var(--glass-background);

    border: 1px solid var(--color-border);
    border-radius: 50%;

    transition:
            color var(--transition-fast),
            background var(--transition-fast),
            border-color var(--transition-fast),
            translate var(--transition-fast);
}

.theme-toggle svg {
    width: 19px;
    height: 19px;
}

.theme-toggle:hover {
    color: var(--color-orange);

    border-color: var(--color-orange);

    translate: 0 -2px;
}

.theme-toggle {
    position: relative;
}

.theme-toggle {
    overflow: hidden;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition:
            opacity 0.25s ease,
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
}

[data-bs-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-45deg) scale(0.7);
}

[data-bs-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.navbar-toggler {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 8px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}


/* Hero Section */

.hero-section {
    position: relative;

    min-height: 740px;

    display: flex;
    align-items: center;

    /* Bottom padding grows with the viewport so the wordmark band
       (sized in vw) always sits below the buttons, never behind them. */
    padding: 90px 0 calc(40px + 9vw);

    overflow: hidden;

    background:
            radial-gradient(
                    circle at 80% 45%,
                    rgba(249, 115, 22, 0.09),
                    transparent 32%
            );
}

.hero-container {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 35px;
}

.hero-intro {
    position: relative;
    z-index: 2;

    max-width: 550px;
}

.hero-eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 10px;

    color: var(--color-accent-text);

    font-size: 0.73rem;
    font-weight: 700;

    letter-spacing: 2.4px;

    margin-bottom: 25px;
}

.hero-eyebrow::before {
    content: "";

    width: 25px;
    height: 2px;

    background: var(--color-orange);
}

.hero-title {
    color: var(--color-text);

    font-size: clamp(2.8rem, 5vw, 4.6rem);

    font-weight: 600;
    line-height: 1.15;

    letter-spacing: -3.5px;

    margin-bottom: 25px;
}

.hero-title span {
    color: var(--color-accent-text);
}

.hero-description {
    color: var(--color-muted);

    font-size: 0.98rem;
    line-height: 1.9;

    max-width: 475px;

    margin-bottom: 35px;
}

.hero-cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 16px 25px;

    color: var(--button-text);

    background: var(--button-bg);

    border: 1px solid var(--button-bg);
    border-radius: var(--radius-pill);

    font-size: 0.88rem;
    font-weight: 600;

    box-shadow:
            0 10px 25px rgba(249, 115, 22, 0.20);

    /* `translate` (not `transform`) is transitioned on purpose:
       GSAP animates this button's `transform` on page load, and a CSS
       transition on the same property would make GSAP's tween lag.
       `translate` is a separate property the browser combines with it. */
    transition:
            background var(--transition-normal),
            border-color var(--transition-normal),
            translate var(--transition-normal),
            box-shadow var(--transition-normal);
}

.hero-cta svg {
    width: 19px;
    height: 19px;

    transition: transform var(--transition-normal);
}

.hero-cta:hover {
    color: var(--button-text);

    background: var(--button-bg-hover);

    border-color: var(--button-bg-hover);

    translate: 0 -3px;

    box-shadow:
            0 15px 30px rgba(249, 115, 22, 0.25);
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* Secondary (ghost) button: same shape, quieter colours, so the
   primary action stays visually dominant. */
.hero-cta-secondary {
    color: var(--color-text);
    background: transparent;
    border-color: var(--color-border);
    box-shadow: none;
}

.hero-cta-secondary:hover {
    color: var(--color-text);
    background: var(--glass-background);
    border-color: var(--color-text);
    box-shadow: none;
}


/* Brand Wordmark (shared by the hero band and the footer)
   Two copies of the word are stacked in one grid cell:
   .wordmark-outline is always visible, the second copy (spotlight or
   fill) is revealed by a mask or a clip-path. */

.wordmark {
    position: absolute;
    inset-inline: 0;

    display: grid;
    justify-items: center;

    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.04em;
    white-space: nowrap;

    pointer-events: none;
    user-select: none;

    /* Fade both ends so the word dissolves into the page instead of
       being chopped off by the screen edge. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.wordmark > span {
    grid-area: 1 / 1;
    /* With negative letter-spacing the last glyph overhangs its box.
       Padding brings it back inside, which matters for the fill copy:
       background-clip: text only paints the gradient inside the box. */
    padding-inline: 0.08em;
}

.wordmark-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--color-text) 18%, transparent);
}

/* Orange copy visible only inside a soft circle around the cursor.
   --mx / --my are updated from animations.js. */
.wordmark-spotlight {
    /* Pointer position, updated by animations.js. Off-screen by default,
       so the spotlight is invisible until the mouse moves. */
    --mx: -999px;
    --my: -999px;

    color: var(--color-orange);
    opacity: 0.4;

    -webkit-mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000, transparent 70%);
    mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000, transparent 70%);
}

/* Gradient-filled copy, revealed left to right by animating clip-path. */
.wordmark-fill {
    color: transparent;
    background: linear-gradient(90deg, #FFAE60, #F97316 50%, #C2410C);
    -webkit-background-clip: text;
    background-clip: text;
    /* Starts fully clipped from the right. The negative top, bottom and
       left insets give the glyphs some room so nothing is shaved off. */
    clip-path: inset(-20% 100% -20% -10%);
}

/* Touch screens have no cursor, so the spotlight is never shown. */
@media (hover: none) {
    .wordmark-spotlight {
        display: none;
    }
}


/* Hero wordmark band: full width, cropped slightly by the hero's bottom edge */

.hero-wordmark {
    z-index: 0;
    bottom: -0.12em;
    font-size: clamp(3.5rem, 13vw, 13rem);
}

.hero-container {
    position: relative;
    z-index: 1;
}


/* Hero grain: a static noise texture (generated by an SVG filter once and
   tiled as a background image). It removes the flat "template" look. */

.hero-section::after,
.journey-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* Pre-animation state. The head script adds .js-anim only when JS runs
   and reduced motion is off, so content is never hidden for users who
   would not get the animation. GSAP's autoAlpha reveals each element. */

.js-anim .hero-eyebrow,
.js-anim .hero-title,
.js-anim .hero-description,
.js-anim .hero-actions,
.js-anim .hero-visual,
.js-anim .hero-wordmark {
    visibility: hidden;
}

/* SplitText wraps each headline line in a clipping "mask" so lines can
   rise into view. A little extra bottom room stops descenders (g, p)
   from being clipped. */
.hero-title .hero-line-mask {
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}


/* Hero Visual */

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 510px;
    isolation: isolate;
    perspective: 1200px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    z-index: -2;
    width: min(78%, 440px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(249, 115, 22, 0.14) 0%,
            rgba(249, 115, 22, 0.06) 42%,
            transparent 72%
    );
    filter: blur(14px);
    pointer-events: none;
}

.folder-illustration {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 650px;
    transform-style: preserve-3d;
    /* No CSS drop-shadow here: a filter on an element whose SVG content
       animates is recalculated every frame. Shadows are drawn inside the
       SVG with radial gradients instead. */
    will-change: transform;
}

.folder-illustration svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Transform origins for the SVG cards are set in animations.js,
   because GSAP manages SVG transforms itself. */


/* About Section: one large statement. animations.js brightens each
   word as it scrolls through the viewport. */

.about-statement {
    max-width: 1020px;
    margin: 0;

    color: var(--color-text);

    font-size: clamp(1.7rem, 3.6vw, 3.1rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.about-statement > span {
    color: var(--color-accent-text);
}

.about-section {
    position: relative;

    overflow: hidden;

    background: var(--color-surface);
}

/* Browse Project Section */

.projects-section {
    position: relative;

    overflow: hidden;

    background: var(--color-surface);
}

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 42px;
}

.section-heading .section-description {
    margin-bottom: 0;
}

/* Project Grid */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;
}

.project-card {
    overflow: hidden;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);

    transition:
            box-shadow var(--transition-normal),
            border-color var(--transition-normal);
}

.project-card:hover {
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: var(--shadow-medium);
}


/* Project Visuals */

.project-card-visual {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 260px;

    overflow: hidden;
}

.project-category {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 3;

    color: var(--color-text);

    background: rgba(255, 255, 255, 0.78);

    padding: 8px 13px;

    border-radius: var(--radius-pill);

    font-size: 0.68rem;
    font-weight: 600;

    backdrop-filter: blur(12px);
}

.project-visual-terrain {
    background:
            linear-gradient(
                    140deg,
                    #E7E2DE,
                    #D2D5D8
            );
}

.project-visual-ecosystem {
    background:
            linear-gradient(
                    140deg,
                    #D9EAE1,
                    #A9D0B8
            );
}

/* Project Card Content */

.project-card-content {
    padding: 22px;
}

.project-card-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;

    color: var(--color-muted);

    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 1px;
}

.project-status {
    color: #33855B;

    background: rgba(51, 133, 91, 0.10);

    padding: 6px 11px;

    border-radius: var(--radius-pill);

    letter-spacing: 0;
}

.project-card-content h3 {
    color: var(--color-text);

    font-size: 1.22rem;
    font-weight: 600;

    margin-bottom: 12px;
}

.project-card-content p {
    color: var(--color-muted);

    font-size: 0.84rem;
    line-height: 1.8;

    margin-bottom: 24px;
}

.project-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding-top: 18px;

    border-top: 1px solid var(--color-border);
}

.project-tag {
    color: var(--color-accent-text);

    background: var(--color-orange-light);

    padding: 8px 13px;

    border-radius: var(--radius-pill);

    font-size: 0.7rem;
    font-weight: 600;
}

.project-action-label {
    color: var(--color-muted);

    font-size: 0.72rem;
    font-weight: 500;
}

.projects-note {
    color: var(--color-muted);

    font-size: 0.73rem;

    margin-top: 25px;
}

/* Features Section: bento grid
   Desktop: a large workspace tile on the left (two rows tall), four small
   feature tiles in a 2 x 2 block on the right, and a full-width roles tile
   underneath. CSS grid auto-placement does this with just two rules:
   grid-row: span 2 on the workspace tile and grid-column: 1 / -1 on roles. */

.features-section {
    background: var(--color-background);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 18px;
}

.bento-tile {
    position: relative;

    min-width: 0;

    padding: 28px;

    overflow: hidden;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);

    transition:
            border-color var(--transition-normal),
            box-shadow var(--transition-normal);
}

.bento-tile:hover {
    border-color: color-mix(in srgb, var(--color-orange) 35%, var(--color-border));
    box-shadow: var(--shadow-medium);
}

.bento-copy h3,
.bento-feature h3,
.bento-roles-heading h3 {
    margin: 0 0 8px;

    color: var(--color-text);

    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.bento-copy p,
.bento-feature p,
.bento-roles-heading p {
    margin: 0;

    color: var(--color-muted);

    font-size: 0.88rem;
    line-height: 1.7;
}

/* Large workspace tile: the dashboard "peeks" out of the bottom-right
   corner (negative margins + the tile's overflow: hidden crop it). */
.bento-workspace {
    grid-row: span 2;

    display: flex;
    flex-direction: column;
    gap: 28px;

    padding-bottom: 0;
}

.bento-workspace .bento-copy {
    max-width: 360px;
}

.bento-workspace .workspace-preview {
    margin: auto -70px -50px 0;
}

/* Small feature tiles: number at the top, text at the bottom. */
.bento-feature {
    display: flex;
    flex-direction: column;

    min-height: 210px;
}

.bento-feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: auto;
    padding-bottom: 36px;
}

.bento-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--color-accent-text);
    background: var(--color-orange-light);

    border-radius: 14px;
}

.bento-icon svg {
    width: 22px;
    height: 22px;
}

.bento-number {
    color: var(--color-muted);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Soft orange glow that fades in on hover (decorative). */
.bento-feature::before {
    content: "";

    position: absolute;
    top: -70px;
    right: -70px;

    width: 200px;
    height: 200px;

    background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 70%);

    opacity: 0;

    transition: opacity var(--transition-normal);

    pointer-events: none;
}

.bento-feature:hover::before {
    opacity: 1;
}

/* Full-width roles tile */
.bento-roles {
    grid-column: 1 / -1;

    padding: 32px;
}

.bento-roles-heading {
    max-width: 560px;
    margin-bottom: 24px;
}


/* Role Tabs
   Left: the tab list (vertical on wider screens, a row of chips on
   phones). Right: the details panel for the selected role. */

.role-tabs {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.6fr);
    gap: 18px;
}

.role-tablist {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 6px;

    background: var(--color-background);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

/* The sliding highlight. main.js sets its position and size to match
   the selected tab. Hidden until positioned (.is-ready), so it never
   flashes at the top-left corner on load. */
.role-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;

    background: var(--color-surface);

    border: 1px solid color-mix(in srgb, var(--color-orange) 35%, var(--color-border));
    border-radius: 14px;

    box-shadow: var(--shadow-small);

    opacity: 0;

    pointer-events: none;
}

.role-tablist.is-ready .role-indicator {
    opacity: 1;
}

/* Thin orange bar on the left edge of the highlight */
.role-indicator::before {
    content: "";

    position: absolute;
    top: 22%;
    bottom: 22%;
    left: -1px;

    width: 3px;

    background: var(--color-orange);

    border-radius: 3px;
}

.role-tab {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;

    padding: 12px 14px;

    color: var(--color-text);
    background: transparent;

    border: 0;
    border-radius: 14px;

    font: inherit;
    text-align: left;

    cursor: pointer;

    transition: background var(--transition-fast);
}

.role-tab:hover:not([aria-selected="true"]) {
    background: color-mix(in srgb, var(--color-text) 4%, transparent);
}

.role-tab:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* Without JavaScript there is no sliding highlight, so the selected tab
   gets a static one instead. */
.role-tablist:not(.is-ready) .role-tab[aria-selected="true"] {
    background: var(--color-surface);
}

/* Small icon badge, matching the feature tiles above */
.role-tab-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;

    width: 42px;
    height: 42px;

    color: var(--color-muted);
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    transition:
            color var(--transition-normal),
            background var(--transition-normal),
            border-color var(--transition-normal);
}

/* The icons are drawn on a 100 x 100 grid, so a thicker stroke keeps
   them crisp at this small size (CSS overrides the SVG attribute). */
.role-tab-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 7;
}

.role-tab[aria-selected="true"] .role-tab-icon {
    color: var(--color-accent-text);
    background: var(--color-orange-light);
    border-color: transparent;
}

.role-tab-text {
    min-width: 0;
}

.role-tab-name {
    display: block;

    font-size: 0.95rem;
    font-weight: 600;
}

.role-tab-summary {
    display: block;

    margin-top: 2px;

    color: var(--color-muted);

    font-size: 0.8rem;
}

/* The orange accent stroke inside each role icon */
.role-tab-icon .icon-accent,
.role-panel-icon .icon-accent {
    stroke: var(--color-orange);
}

/* Details panel */
.role-panel {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 26px;

    padding: 30px;

    overflow: hidden;

    background: var(--color-background);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

/* Soft orange glow in the corner (decorative) */
.role-panel::after {
    content: "";

    position: absolute;
    top: -120px;
    right: -120px;

    width: 320px;
    height: 320px;

    background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 70%);

    pointer-events: none;
}

.role-panel:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 3px;
}

.role-panel-icon {
    position: relative;
    z-index: 1;

    display: grid;
    flex-shrink: 0;
    place-items: center;

    width: 76px;
    height: 76px;

    color: var(--color-accent-text);
    background: var(--color-orange-light);

    border-radius: 22px;
}

.role-panel-icon svg {
    width: 42px;
    height: 42px;
    stroke-width: 5;
}

.role-panel-body {
    position: relative;
    z-index: 1;

    min-width: 0;
}

.role-panel-eyebrow {
    display: block;

    color: var(--color-accent-text);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.role-panel-title {
    margin: 6px 0 10px;

    color: var(--color-text);

    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.role-panel-description {
    max-width: 540px;
    margin: 0 0 18px;

    color: var(--color-muted);

    font-size: 0.92rem;
    line-height: 1.7;
}

.role-panel-list {
    display: grid;
    gap: 10px;

    margin: 0 0 22px;
    padding: 0;

    list-style: none;
}

.role-panel-list li {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--color-text);

    font-size: 0.9rem;
}

/* Tick badge before each ability */
.role-panel-list li::before {
    content: "✓";

    display: grid;
    flex-shrink: 0;
    place-items: center;

    width: 22px;
    height: 22px;

    color: var(--color-accent-text);
    background: var(--color-orange-light);

    border-radius: 50%;

    font-size: 0.7rem;
    font-weight: 700;
}

.role-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--color-accent-text);

    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.role-panel-link::after {
    content: "→";

    transition: translate var(--transition-fast);
}

.role-panel-link:hover {
    color: var(--color-accent-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.role-panel-link:hover::after {
    translate: 4px 0;
}

/* Tablet: narrower list column */
@media (max-width: 991.98px) {
    .role-tabs {
        grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    }

    .role-tab-summary {
        display: none;
    }
}

/* Phone: the tab list becomes a horizontal row of chips above the panel */
@media (max-width: 767.98px) {
    .role-tabs {
        grid-template-columns: 1fr;
    }

    .role-tablist {
        flex-direction: row;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .role-tablist::-webkit-scrollbar {
        display: none;
    }

    .role-tab {
        flex: 0 0 auto;
        width: auto;

        padding: 8px 14px 8px 8px;

        white-space: nowrap;
    }

    .role-tab-icon {
        width: 34px;
        height: 34px;
    }

    .role-tab-icon svg {
        width: 20px;
        height: 20px;
    }

    /* The left-edge bar does not suit a horizontal row */
    .role-indicator::before {
        display: none;
    }

    .role-panel {
        flex-direction: column;
        gap: 18px;

        padding: 22px;
    }

    .role-panel-icon {
        width: 60px;
        height: 60px;

        border-radius: 18px;
    }

    .role-panel-icon svg {
        width: 34px;
        height: 34px;
    }
}
@media (max-width: 991.98px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-workspace {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 575.98px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-feature {
        min-height: 0;
    }

    .bento-feature-top {
        padding-bottom: 20px;
    }

    .bento-workspace .workspace-preview {
        margin-right: -40px;
    }

    .bento-roles {
        padding: 22px 16px;
    }
}


/* Skeleton UI bars
   Mock interfaces use abstract bars instead of tiny text: they read as a
   deliberate illustration rather than as text that is too small to read. */

.sk {
    display: block;
    flex-shrink: 0;

    height: 8px;

    background: color-mix(in srgb, var(--color-text) 12%, transparent);

    border-radius: var(--radius-pill);
}

.sk-thin { height: 5px; }
.sk-tall { height: 11px; }

.sk-w-30 { width: 30%; }
.sk-w-40 { width: 40%; }
.sk-w-50 { width: 50%; }
.sk-w-60 { width: 60%; }
.sk-w-70 { width: 70%; }
.sk-w-80 { width: 80%; }

.sk-accent {
    background: color-mix(in srgb, var(--color-orange) 75%, transparent);
}

/* The project previews always use a dark window, so their bars are light. */
.project-preview-window .sk {
    background: rgba(255, 255, 255, 0.14);
}

.project-preview-window .sk-accent {
    background: rgba(249, 115, 22, 0.75);
}

.dashboard-item-bars,
.preview-heading-bars {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;

    min-width: 0;
}

.dashboard-check {
    color: var(--color-orange);
    font-size: 0.65rem;
}

.dashboard-cover-title {
    position: relative;
    z-index: 1;

    max-width: 300px;
    margin: 0;

    font-size: 1.35rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .dashboard-cover-title {
        font-size: 1.1rem;
    }
}

/* Workspace Dashboard */

.workspace-preview {
    position: relative;

    perspective: 1200px;
}

.workspace-dashboard {
    position: relative;

    padding: 15px;

    background: var(--color-background);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);

    /* Initial tilt only. The hover lift is animated by GSAP in
       animations.js, so there is no CSS transition or :hover transform
       here (two systems animating one property makes it jumpy). */
    transform: rotateY(-5deg) rotateX(2deg);
}


/* Dashboard Topbar */

.dashboard-topbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 12px 10px 17px;

    color: var(--color-muted);

    font-size: 0.6rem;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.dashboard-window-controls {
    display: flex;
    gap: 5px;
}

.dashboard-window-controls span {
    width: 8px;
    height: 8px;

    background: #D3CFC9;

    border-radius: 50%;
}

.dashboard-window-controls span:first-child {
    background: #E78E77;
}

.dashboard-window-controls span:nth-child(2) {
    background: #E8C37A;
}

.dashboard-window-controls span:nth-child(3) {
    background: #8BBF9D;
}


/* Dashboard Cover */

.dashboard-cover {
    position: relative;

    display: flex;

    flex-direction: column;
    justify-content: flex-end;

    min-height: 165px;

    padding: 25px;

    overflow: hidden;

    color: #FFFFFF;

    background:
            radial-gradient(
                    circle at 80% 20%,
                    rgba(255, 255, 255, 0.35),
                    transparent 25%
            ),
            linear-gradient(
                    130deg,
                    #243A52,
                    #526D83,
                    #A0A7B7
            );

    border-radius: 18px;
}

.dashboard-cover::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    top: -90px;
    right: -40px;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 50%;

    box-shadow:
            0 0 0 20px rgba(255, 255, 255, 0.04),
            0 0 0 40px rgba(255, 255, 255, 0.04);
}

.dashboard-cover-label {
    position: relative;
    z-index: 1;

    font-size: 0.57rem;
    font-weight: 600;

    letter-spacing: 1.5px;

    opacity: 0.75;

    margin-bottom: 10px;
}

/* Dashboard Body */

.dashboard-body {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 14px;

    padding-top: 15px;
}

.dashboard-sidebar,
.dashboard-projects {
    min-width: 0;

    padding: 15px;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 15px;
}

.dashboard-tag {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 5px;

    padding: 10px 8px;

    margin-bottom: 8px;

    color: var(--color-text);

    background: var(--color-surface-soft);

    border-radius: 8px;

    font-size: 0.65rem;
    font-weight: 500;
}

/* Dashboard Project Area */

.dashboard-member {
    display: flex;

    align-items: center;
    gap: 10px;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--color-border);
}

.dashboard-avatar {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    color: #FFFFFF;

    background: var(--color-orange);

    border-radius: 50%;

    font-size: 0.7rem;
    font-weight: 700;
}

.dashboard-project-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding: 11px 9px;

    margin-bottom: 7px;

    background: var(--color-surface-soft);

    border-radius: 9px;
}

.dashboard-project-item .dashboard-view {
    flex-shrink: 0;

    width: 34px;
    height: 16px;

    background: color-mix(in srgb, var(--color-orange) 18%, transparent);

    border-radius: var(--radius-pill);
}

/* Interactive Role Container */

/* Default Four-Role Layout */

/* Role Selected State — Activated by JavaScript */

/* Role Detail Panel */

/* Accessibility */

/* Skip link: Bootstrap's .visually-hidden-focusable hides it until it
   receives keyboard focus; these rules style it once it is visible. */
.skip-link:focus {
    position: fixed !important;
    top: 12px;
    left: 12px;
    z-index: 2000;

    padding: 12px 18px;

    color: var(--button-text);
    background: var(--button-bg);

    border-radius: var(--radius-pill);

    font-weight: 600;
    text-decoration: none;
}

/* main receives focus from the skip link but should not show a ring. */
#main:focus {
    outline: none;
}

/* Keyboard focus on the project gallery */
.projects-track-viewport:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 6px;
    border-radius: var(--radius-large);
}

:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}


/* Tablet Responsive */

@media (max-width: 991.98px) {

    :root {
        --section-space: 90px;
    }

    .projectly-navbar .navbar-collapse {
        padding: 20px 0;
    }

    .projectly-navbar .navbar-nav {
        align-items: flex-start !important;

        gap: 5px;

        margin-bottom: 15px;
    }

    .navbar-actions {
        justify-content: flex-start;

        padding: 10px 0;
    }


    /* Hero */

    .hero-section {
        min-height: auto;

        padding: 75px 0 calc(40px + 9vw);
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .hero-intro {
        max-width: 680px;
    }

    .hero-title {
        max-width: 650px;
    }

    .hero-visual {
        min-height: 420px;

        max-width: 680px;

        width: 100%;

        margin: 0 auto;
    }


    /* Workspace */

    .workspace-preview {
        max-width: 750px;
        width: 100%;

        margin: 0 auto;
    }


    /* Roles */

}


/* Mobile Responsive */

@media (max-width: 767.98px) {

    :root {
        --section-space: 75px;
    }

    body {
        padding-top: 84px;
    }

    .projectly-navbar .container {
        width: calc(100% - 20px);
        min-height: 58px;
        padding-left: 18px;
    }


    /* Typography */

    .section-title {
        font-size: clamp(2rem, 8vw, 2.8rem);

        letter-spacing: -1.5px;
    }

    .section-description {
        font-size: 0.87rem;
        line-height: 1.8;
    }


    /* Hero */

    .hero-section {
        padding: 65px 0 calc(32px + 12vw);
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.7rem);

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-visual {
        min-height: 320px;
    }


    /* About */

    /* Projects */

    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .project-card-visual {
        min-height: 230px;
    }

    .project-card-content {
        padding: 23px;
    }

    /* Workspace */

    .workspace-dashboard {
        padding: 10px;

        transform: none;
    }

    .dashboard-body {
        gap: 9px;
    }

    .dashboard-sidebar,
    .dashboard-projects {
        padding: 10px;
    }

    .dashboard-cover {
        min-height: 135px;
    }

    /* Roles */

}


/* Small Mobile Devices Etc */

@media (max-width: 480px) {

    .brand-name {
        font-size: 0.9rem;
    }

    .navbar-brand img {
        width: 32px;
        height: 32px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-visual {
        min-height: 240px;
    }

    .dashboard-body {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-cover {
        min-height: 115px;
    }

    .dashboard-project-item {
        padding: 10px 8px;
    }

}


/* Other Devices */

@media (max-width: 360px) {

    .hero-title {
        font-size: 2.15rem;
    }

}


.code-card-symbol {
    pointer-events: none;
}

/* =========================================
   PROJECT CARDS — DASHBOARD PREVIEWS
========================================= */

/* Every card's picture area has the same shape (16:10), so all cards are
   the same height and their titles line up. The dashboard preview is
   anchored to the top and cropped at the bottom, like a screen peeking out. */
.project-card-visual {
    position: relative;
    min-height: 0;
    aspect-ratio: 16 / 10;
    padding: 18px 18px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: #17232D;
}

/* Dashboard Window */

.project-preview-window {
    width: 100%;
    max-width: 580px;
    min-height: 0;
    overflow: hidden;

    background: #111A22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

/* Window Header */

.preview-topbar {
    height: 37px;
    padding: 0 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #192630;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.preview-window-controls {
    display: flex;
    gap: 5px;
}

.preview-window-controls span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #71808B;
}

.preview-window-controls span:first-child {
    background: #F28B78;
}

.preview-window-controls span:nth-child(2) {
    background: #F1C477;
}

.preview-window-controls span:nth-child(3) {
    background: #8EC6A2;
}

.preview-window-title,
.preview-window-menu {
    color: #9AA8B3;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Dashboard Layout */

.preview-dashboard-body {
    display: grid;
    grid-template-columns: 105px 1fr;
    min-height: 218px;
}

/* Sidebar */

.preview-sidebar {
    padding: 17px 10px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    background: #17232D;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.preview-sidebar-item {
    padding: 8px 7px;
    border-radius: 6px;

    color: #AAB5BE;
    font-size: 9px;
    font-weight: 500;
}

.preview-sidebar-item.active {
    color: #FF984F;
    background: rgba(249, 115, 22, 0.13);
}

/* Main Dashboard Content */

.preview-main-content {
    min-width: 0;
    padding: 15px;
    background: #1E2A35;
}

.preview-project-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.preview-live-status {
    padding: 5px 8px;
    border-radius: 20px;

    color: #8ED2A4;
    background: rgba(68, 170, 110, 0.13);

    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Preview Statistics */

.preview-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 11px;
}

.preview-stat-row div {
    display: flex;
    flex-direction: column;
    gap: 6px;

    min-width: 0;
    padding: 8px;

    background: #263642;
    border-radius: 7px;
}

/* =========================================
   TERRAIN PROJECT PREVIEW
========================================= */

.terrain-preview-art {
    position: relative;
    height: 105px;
    overflow: hidden;
    border-radius: 8px;

    background: linear-gradient(
            145deg,
            #344D65,
            #71899A
    );
}

.terrain-preview-sun {
    position: absolute;
    top: 13px;
    right: 24px;

    width: 21px;
    height: 21px;
    border-radius: 50%;

    background: #F6C98B;
}

.terrain-mountain {
    position: absolute;
    bottom: -45px;

    width: 75%;
    height: 110px;

    border-radius: 50% 50% 0 0;
}

.mountain-back {
    left: -8%;
    background: #718D85;
    transform: rotate(-8deg);
}

.mountain-front {
    right: -12%;
    bottom: -58px;

    background: #3C7569;
    transform: rotate(8deg);
}

.terrain-grid {
    position: absolute;
    inset: 0;

    opacity: 0.14;

    background-image:
            linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);

    background-size: 20px 20px;
}

/* =========================================
   ECOSYSTEM PROJECT PREVIEW
========================================= */

.ecosystem-preview-art {
    position: relative;
    height: 105px;
    overflow: hidden;
    border-radius: 8px;

    background: linear-gradient(
            145deg,
            #B6D8C7,
            #D4E8D8
    );
}

.ecosystem-preview-sun {
    position: absolute;
    top: 13px;
    right: 25px;

    width: 23px;
    height: 23px;
    border-radius: 50%;

    background: #FFDB9A;
}

.ecosystem-preview-hill {
    position: absolute;
    bottom: -55px;

    width: 85%;
    height: 100px;
    border-radius: 50% 50% 0 0;
}

.ecosystem-preview-hill.hill-back {
    left: -10%;
    background: #76A88A;
    transform: rotate(-7deg);
}

.ecosystem-preview-hill.hill-front {
    right: -15%;
    bottom: -63px;
    background: #347B62;
    transform: rotate(7deg);
}

.ecosystem-preview-particle {
    position: absolute;
    z-index: 2;

    width: 5px;
    height: 5px;
    border-radius: 50%;

    background: #F5F1D8;
}

.particle-one {
    top: 38px;
    left: 25%;
}

.particle-two {
    top: 52px;
    left: 43%;
}

.particle-three {
    top: 30px;
    left: 65%;
}

/* Intergrated Search */

.preview-search {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 10px 12px;
    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;

    background: #263642;
}

.preview-search svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #91A1AE;
}

.preview-search:focus-within {
    border-color: #F97316;
}

/* Project category badges in dark mode */

[data-bs-theme="dark"] .project-category {
    color: var(--color-orange-hover);
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.24);
}

/* Meet the Team
   Five portrait cards in one row on desktop. Photos are shown in greyscale
   and turn to colour on hover: this makes photos taken against different
   backgrounds look like one consistent set. */

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    margin: 0;
}

/* aspect-ratio reserves the space before the image loads, so the layout
   does not jump (the img width/height attributes help for the same reason). */
.team-photo {
    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: var(--color-orange-light);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.team-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(1) contrast(1.05);
    transform: scale(1.02);

    transition:
            filter 0.5s ease,
            transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-photo img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.06);
}

/* Touch screens cannot hover, so photos are shown in colour there. */
@media (hover: none) {
    .team-photo img {
        filter: none;
    }
}

/* Placeholder: used when a member has no photo, or when a photo fails to
   load (main.js adds .is-missing). The initials come from data-initials. */
.team-photo.is-missing {
    display: grid;
    place-items: center;

    background: linear-gradient(135deg, #FFAE60, #F97316 55%, #C2410C);
    border-color: transparent;
}

.team-photo.is-missing::after {
    content: attr(data-initials);

    color: #FFFFFF;

    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.team-info {
    padding: 14px 4px 0;
}

.team-info h3 {
    margin: 0 0 4px;

    color: var(--color-text);

    font-size: 1rem;
    font-weight: 600;
}

.team-info p {
    margin: 0;

    color: var(--color-muted);

    font-size: 0.82rem;
}

@media (max-width: 991.98px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}


.team-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: var(--radius-medium);
}

.team-card-link:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 6px;
}

.team-info h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-linkedin-badge {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--color-orange-light);
    color: var(--color-accent-text);
    font-size: 0.72rem;
    font-weight: 800;
    transition:
            background var(--transition-fast),
            color var(--transition-fast),
            transform var(--transition-fast);
}

.team-card-link:hover .team-linkedin-badge {
    background: var(--button-bg);
    color: var(--button-text);
    transform: translateY(-1px);
}

/* How It Works: dark contrast band
   The section redefines the colour tokens for everything inside it.
   Titles, eyebrows and text read these variables, so they switch to
   light-on-dark automatically, without any extra component rules. */

.journey-section {
    --color-text: #F4F4F5;
    --color-muted: #A1A1AA;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-accent-text: #FB923C;

    position: relative;

    overflow: hidden;

    color: var(--color-text);
    background: #0E0E10;
}

.journey-section .container {
    position: relative;
    z-index: 1;
}

.journey-heading {
    max-width: 640px;
    margin-bottom: 64px;
}

/* While pinned, the section must cover the whole viewport, otherwise the
   next section shows underneath it. svh = "small viewport height", which
   stays correct on mobile browsers whose toolbars resize the viewport. */
@media (min-width: 992px) {
    .journey-section {
        display: flex;
        align-items: center;

        min-height: 100svh;
    }

    .journey-section > .container {
        width: 100%;
    }
}

.journey-track {
    position: relative;
}

/* Horizontal line behind the step numbers. The orange progress inside it
   is scaled from 0 to 1 by animations.js (full length without JS). */
.journey-line {
    position: absolute;
    top: 19px;
    right: 0;
    left: 0;

    height: 2px;

    overflow: hidden;

    background: var(--color-border);

    border-radius: 2px;
}

.journey-line-progress {
    position: absolute;
    inset: 0;

    background: linear-gradient(90deg, #FDBA74, #F97316);

    transform-origin: left center;
}

.journey-steps {
    position: relative;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.journey-number {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    margin-bottom: 26px;

    color: var(--color-accent-text);
    background: #0E0E10;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    font-size: 0.78rem;
    font-weight: 700;

    transition:
            color 0.4s ease,
            background 0.4s ease,
            border-color 0.4s ease;
}

.journey-step h3 {
    margin: 0 0 10px;

    color: var(--color-text);

    font-size: 1.15rem;
    font-weight: 600;
}

.journey-step p {
    max-width: 250px;
    margin: 0;

    color: var(--color-muted);

    font-size: 0.9rem;
    line-height: 1.7;
}

/* Steps the progress line has not reached yet are dimmed. Only applied
   when animations run (.js-anim), so content is never dimmed otherwise. */
.js-anim .journey-step {
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.js-anim .journey-step.is-reached {
    opacity: 1;
}

.journey-step.is-reached .journey-number {
    color: #18181B;
    background: #F97316;
    border-color: #F97316;
}

/* Below 992px the steps stack and the line runs vertically on the left. */
@media (max-width: 991.98px) {
    .journey-line {
        top: 0;
        bottom: 0;
        left: 19px;
        right: auto;

        width: 2px;
        height: auto;
    }

    .journey-line-progress {
        background: linear-gradient(180deg, #FDBA74, #F97316);
        transform-origin: center top;
    }

    .journey-steps {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .journey-step {
        position: relative;
        padding-left: 64px;
    }

    .journey-number {
        position: absolute;
        top: -8px;
        left: 0;
        margin: 0;
    }

    .journey-step p {
        max-width: none;
    }

    .journey-heading {
        margin-bottom: 48px;
    }
}

/* Native Horizontal Project Gallery */

.projects-track-viewport {
    /* Makes this element a size container, so the cards inside can use
       cqw units: 1cqw = 1% of this element's width (not the screen's). */
    container-type: inline-size;

    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-orange) transparent;
    -webkit-overflow-scrolling: touch;
}

.projects-grid.projects-track {
    --track-gap: 24px;
    --track-padding: 4px;

    display: flex;
    flex-wrap: nowrap;
    gap: var(--track-gap);
    width: max-content;
    padding: 0 var(--track-padding) 16px;
}

/* Card width: ONE base rule, then ONE mobile override placed after it.
   Media queries add no specificity, so a later rule without a media query
   would override the mobile rule (that was the old bug: 56vw on phones). */
/* Card width = an exact fraction of the gallery's own width (cqw), minus
   the gaps and padding, so exactly 3 cards (desktop), 2 (tablet) or 1 card
   with a peek of the next (phone) fit. With vw the width came from the
   screen instead, and the third card overflowed by a few pixels. */
.projects-grid.projects-track .project-card {
    --cards-visible: 3;
    --card-width: calc(
            (100cqw - 2 * var(--track-padding) - (var(--cards-visible) - 1) * var(--track-gap))
            / var(--cards-visible)
    );

    flex: 0 0 var(--card-width);
    width: var(--card-width);
    scroll-snap-align: start;
}

@media (max-width: 991.98px) {
    .projects-grid.projects-track .project-card {
        --cards-visible: 2;
    }
}

@media (max-width: 575.98px) {
    .projects-grid.projects-track .project-card {
        --card-width: 86cqw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-track-viewport {
        scroll-behavior: auto;
    }
}

/* Hide the project gallery scrollbar while keeping it scrollable */

.projects-track-viewport {
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* Older Edge */
}

.projects-track-viewport::-webkit-scrollbar {
    display: none;               /* Chrome, Safari */
}

/* Illustrative Project Card Artwork */

.sample-visual {
    min-height: 0;
}

.sample-art {
    position: absolute;
    inset: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-medium);
}

/* Centred with inset: 0 + margin: auto instead of
   transform: translate(-50%, -50%). The spin animation uses the `rotate`
   property, which the browser applies on top of `transform`; with a
   translate in `transform`, the ring would rotate around the wrong point
   and swing out of view. */
.sample-orbit {
    position: absolute;
    inset: 0;
    width: 190px;
    height: 190px;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.sample-orbit::before,
.sample-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.sample-orbit::before {
    inset: 22px;
}

.sample-orbit::after {
    inset: 48px;
}

.sample-dot {
    position: absolute;
    z-index: 1;
    top: -7px;
    left: calc(50% - 7px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FDBA74;
    box-shadow: 0 0 28px rgba(253, 186, 116, 0.8);
}

.sample-panel {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(24, 24, 27, 0.55);
    color: #FAFAFA;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
}

.campus-visual {
    background: linear-gradient(135deg, #23384A, #366B73);
}

.learning-visual {
    background: linear-gradient(135deg, #49304E, #92505D);
}

.sustainability-visual {
    background: linear-gradient(135deg, #234B3E, #719B70);
}

/* Project Gallery Controls */

.project-gallery-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-gallery-count {
    margin-right: 8px;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-gallery-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.25rem;
    transition:
            color var(--transition-fast),
            background-color var(--transition-fast),
            border-color var(--transition-fast),
            transform var(--transition-fast);
}

.project-gallery-button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.project-gallery-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.project-gallery-button:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .project-gallery-controls {
        gap: 7px;
    }

    .project-gallery-button {
        width: 38px;
        height: 38px;
    }
}

/* Project Card States and Motion
   Who animates what (one owner per property):
   - transform  -> CSS, the active/inactive scale below
   - translate  -> CSS, the hover lift
   - opacity    -> GSAP, the entrance (animations.js)
   - inner art and content transforms -> GSAP entrance, then CSS hover
     using the separate `scale` / `translate` properties. */

.projects-grid.projects-track .project-card {
    /* Pointer position for the glow, updated by animations.js */
    --glow-x: 50%;
    --glow-y: 0%;

    position: relative;

    filter: brightness(0.72) saturate(0.78);
    transform: scale(0.97);
    transform-origin: center;

    transition:
            filter 0.4s ease,
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            translate 0.45s cubic-bezier(0.22, 1, 0.36, 1),
            border-color 0.4s ease,
            box-shadow 0.4s ease;
}

/* Fully visible cards (set by main.js) */
.projects-grid.projects-track .project-card.is-active {
    z-index: 2;
    filter: none;
    transform: scale(1);
    border-color: color-mix(in srgb, var(--color-orange) 45%, var(--color-border));
}

.projects-grid.projects-track .project-card:hover {
    translate: 0 -6px;
    border-color: var(--color-orange);
    box-shadow: 0 24px 56px rgba(249, 115, 22, 0.2);
}

/* Soft orange light that follows the pointer across the card. */
.projects-grid.projects-track .project-card::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 4;

    background: radial-gradient(
            420px circle at var(--glow-x) var(--glow-y),
            rgba(249, 115, 22, 0.13),
            transparent 60%
    );

    opacity: 0;

    transition: opacity 0.35s ease;

    pointer-events: none;
}

.projects-grid.projects-track .project-card:hover::before {
    opacity: 1;
}

/* The illustration rises slightly on hover. */
.project-preview-window,
.sample-art {
    transition:
            scale 0.6s cubic-bezier(0.22, 1, 0.36, 1),
            translate 0.6s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.6s ease;
}

.project-card:hover .project-preview-window {
    scale: 1.03;
    translate: 0 -4px;
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.35);
}

.project-card:hover .sample-art {
    scale: 1.03;
}

/* Skeleton shimmer: a highlight sweeps across the bars on hover. */
.project-card:hover .project-preview-window .sk {
    background-image: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.28) 50%,
            transparent 100%
    );
    background-repeat: no-repeat;
    background-size: 200% 100%;

    animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    from { background-position: 150% 0; }
    to   { background-position: -50% 0; }
}

/* Terrain grid slowly drifts on visible cards (20px = one grid cell,
   so the loop is seamless). */
.project-card.is-active .terrain-grid {
    animation: terrain-drift 6s linear infinite;
}

@keyframes terrain-drift {
    to { background-position: 20px 20px, 20px 20px; }
}

/* Ecosystem particles float up and down at different speeds. */
.project-card.is-active .ecosystem-preview-particle {
    animation: particle-float 3.2s ease-in-out infinite alternate;
}

.project-card.is-active .particle-two { animation-duration: 2.6s; animation-delay: -1s; }
.project-card.is-active .particle-three { animation-duration: 3.8s; animation-delay: -2s; }

@keyframes particle-float {
    to { translate: 0 -8px; opacity: 0.55; }
}

/* Orbit: the ring rotates, carrying the dot around it. */
.project-card.is-active .sample-orbit {
    animation: orbit-spin 16s linear infinite;
}

@keyframes orbit-spin {
    to { rotate: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .projects-grid.projects-track .project-card,
    .project-preview-window,
    .sample-art {
        transition: none;
    }

    .projects-grid.projects-track .project-card:hover {
        translate: none;
    }
}

[data-bs-theme="light"] .projects-grid.projects-track .project-card:not(.is-active) {
    filter: brightness(0.96) saturate(0.92);
}

/* Footer */

.projectly-footer {
    padding: 48px 0 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-background);
    /* Crops the bottom of the giant wordmark at the page edge. */
    overflow: hidden;
}

/* Footer wordmark: sits in normal flow (not absolute) under the footer
   links, and is not edge-faded so the full word reads clearly. */
.footer-wordmark {
    position: relative;
    margin-top: 36px;
    margin-bottom: -0.14em;
    font-size: clamp(3.5rem, 14.5vw, 14rem);
    -webkit-mask-image: none;
    mask-image: none;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 32px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.footer-brand img {
    display: block;
    object-fit: contain;
}

.footer-tagline {
    margin: 0;
    color: var(--color-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a,
.footer-bottom a {
    color: var(--color-muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: var(--color-accent-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.82rem;
}

@media (max-width: 767.98px) {
    .footer-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .footer-links {
        gap: 14px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* FAQ accordion
   Fully self-contained styles: they do not rely on Bootstrap's accordion
   CSS (which only exists in full builds of Bootstrap 5.2+). Bootstrap is
   used only for the open/close behaviour (the Collapse plugin in
   bootstrap.bundle.js), triggered by data-bs-toggle="collapse". */

.faq-section {
    background: var(--color-surface);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.faq-accordion .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
}

.faq-accordion .accordion-item:first-of-type {
    border-top: 1px solid var(--color-border);
}

.faq-accordion .accordion-header {
    margin: 0;
}

/* The question button: full width, text on the left, icon on the right.
   appearance: none removes the browser's default button styling. */
.faq-accordion .accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;

    padding: 1.4rem 0;

    color: var(--color-text);
    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;
    appearance: none;

    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;

    cursor: pointer;

    transition: color var(--transition-fast);
}

.faq-accordion .accordion-button:hover {
    color: var(--color-accent-text);
}

/* "+" icon that rotates into an "x" when the answer is open.
   Bootstrap adds .collapsed to the button while its answer is closed. */
.faq-accordion .accordion-button::after {
    content: "+";

    display: grid;
    flex-shrink: 0;
    place-items: center;

    width: 32px;
    height: 32px;

    margin-left: auto;

    color: var(--color-accent-text);
    background-image: none;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;

    transition:
            transform var(--transition-normal),
            border-color var(--transition-fast);
}

.faq-accordion .accordion-button:hover::after {
    border-color: var(--color-orange);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(45deg);
}

.faq-accordion .accordion-button:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 4px;
}

.faq-accordion .accordion-body {
    max-width: 620px;

    padding: 0 0 1.4rem;

    color: var(--color-muted);

    font-size: 0.92rem;
    line-height: 1.8;
}

/* Open/closed states. These normally come from Bootstrap's core CSS and
   are repeated here (scoped to the FAQ) so the answers stay hidden and
   animate even with a partial Bootstrap build. The Collapse plugin adds
   .show when open and .collapsing while it animates the height. */
.faq-accordion .collapse:not(.show) {
    display: none;
}

.faq-accordion .collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}


/* Get Started + Contact */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);

    max-width: 1120px;
    margin-inline: auto;
}

.contact-intro .section-title {
    margin-top: 0;
}

.contact-intro .section-description {
    margin-bottom: 28px;
}

.contact-note {
    max-width: 420px;

    margin-top: 40px;
    padding-top: 24px;

    border-top: 1px solid var(--color-border);
}

.contact-note h3 {
    margin: 0 0 6px;

    color: var(--color-text);

    font-size: 1rem;
    font-weight: 600;
}

.contact-note p {
    margin: 0;

    color: var(--color-muted);

    font-size: 0.9rem;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .faq-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}


/* Inquiry Form Card
   Uses the theme tokens throughout, so it needs no separate dark-mode
   rules (it previously had about 45 lines of them). */

.inquiry-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 24px;

    box-shadow: var(--shadow-medium);
}

.inquiry-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
}

.inquiry-field {
    min-width: 0;
}

.inquiry-full {
    grid-column: 1 / -1;
}

.inquiry-field label {
    display: block;

    margin-bottom: 0.5rem;

    color: var(--color-text);

    font-size: 0.9rem;
    font-weight: 600;
}

.inquiry-field input,
.inquiry-field textarea,
.inquiry-field select {
    display: block;

    width: 100%;

    padding: 0.85rem 1rem;

    color: var(--color-text);
    background: var(--color-background);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    font: inherit;

    transition:
            border-color 180ms ease,
            box-shadow 180ms ease;
}

.inquiry-field input,
.inquiry-field select {
    min-height: 52px;
}

.inquiry-field textarea {
    min-height: 140px;
    resize: vertical;
}

.inquiry-field input::placeholder,
.inquiry-field textarea::placeholder {
    color: var(--color-muted);
}

.inquiry-field input:focus,
.inquiry-field textarea:focus,
.inquiry-field select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

/* :user-invalid only matches after the user has interacted with the
   field (or tried to submit), so empty fields are not red on page load. */
.inquiry-field input:user-invalid,
.inquiry-field textarea:user-invalid,
.inquiry-field select:user-invalid {
    border-color: #DC2626;
}

/* Custom select: the native arrow is removed (appearance: none) and a
   chevron is drawn with two borders on a rotated square. */
.inquiry-select {
    position: relative;
}

.inquiry-select select {
    padding-right: 2.75rem;
    appearance: none;
    cursor: pointer;
}

.inquiry-select::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 1.1rem;

    width: 8px;
    height: 8px;

    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);

    transform: translateY(-70%) rotate(45deg);

    pointer-events: none;
}

.inquiry-field-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    margin-top: 0.45rem;

    color: var(--color-muted);

    font-size: 0.78rem;
}

.inquiry-submit {
    width: 100%;
    min-height: 54px;

    margin-top: 1.5rem;

    color: var(--button-text);
    background: var(--button-bg);

    border: 0;
    border-radius: 999px;

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    transition:
            background 180ms ease,
            translate 180ms ease,
            box-shadow 180ms ease;
}

.inquiry-submit:hover {
    background: var(--button-bg-hover);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.2);
    translate: 0 -2px;
}

.inquiry-submit:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 3px;
}

/* Result message, hidden while empty */
.inquiry-status {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;

    color: var(--color-text);
    background: color-mix(in srgb, #16A34A 12%, transparent);

    border: 1px solid color-mix(in srgb, #16A34A 35%, transparent);
    border-radius: 12px;

    font-size: 0.88rem;
    line-height: 1.6;
}

.inquiry-status:empty {
    display: none;
}

.inquiry-consent {
    margin: 0.9rem 0 0;

    color: var(--color-muted);

    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 480px) {
    .inquiry-fields {
        grid-template-columns: 1fr;
    }
}

.footer-brand,
.footer-brand:hover,
.footer-brand:focus,
.footer-brand:active {
    color: var(--color-text);
    text-decoration: none;
}

.footer-brand:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 4px;
}

/* Browser autofill paints its own yellow/blue background; an inset shadow
   in the theme colour covers it (one rule now works for both themes). */
#inquiryForm input:-webkit-autofill,
#inquiryForm input:-webkit-autofill:hover,
#inquiryForm input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text);
    box-shadow: 0 0 0 1000px var(--color-background) inset;
}

/* Ink-bleed theme transition */

.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
    transition: none !important;
}

@keyframes ink-transition-hold {
    from { opacity: 1; }
    to { opacity: 1; }
}

/* --ink-duration is set by theme.js from the same value as the GSAP
   tween (plus a small buffer), so the two can never drift apart. */
::view-transition-group(root) {
    animation: ink-transition-hold var(--ink-duration) linear both;
}

::view-transition-image-pair(root) {
    isolation: isolate;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 2;
    clip-path: var(--ink-clip, circle(0px at 0px 0px));
}


