@charset "UTF-8";

/* ============================================
   POLYGON STRATEGY
   Best-of merge: Claude + GPT
   ============================================ */

:root {
    --red:        hsla(12, 80%, 62%, 1.00);
    --red-dim:    hsla(12, 80%, 62%, 0.15);
    --ink:        #0e0f0f;
    --ink-mid:    #1a1c1c;
    --ink-raised: #242727;
    --ink-border: #2e3232;
    --smoke:      #8a8f8f;
    --ash:        #c4c7c2;
    --paper:      #e8e9e4;

    --font-display: 'Fjalla One', sans-serif;
    --font-body:    'Libre Baskerville', Georgia, serif;
    --font-ui:      'Manrope', sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    background-color: var(--ink);
    color: var(--ash);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.preload * {
    animation: none !important;
    transition: none !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, .h1, .h2 {
    font-family: var(--font-display);
    color: var(--paper);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

h3, .h3 {
    font-family: var(--font-display);
    color: var(--paper);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

p {
    color: var(--ash);
    margin-bottom: 1.2rem;
}

strong { color: var(--paper); font-weight: 600; }

a {
    color: var(--red);
    text-decoration: none;
    transition: opacity 0.2s var(--ease);
}
a:hover { opacity: 0.75; }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
section {
    padding: 6rem 0;
    position: relative;
}

/* Editorial section labels top-right */
section[id]::before {
    content: attr(data-label);
    position: absolute;
    top: 2.5rem;
    right: 2rem;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-border);
    pointer-events: none;
}

/* Constrain prose to comfortable reading width */
.content-narrow {
    max-width: 860px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    transition: background-color 0.4s var(--ease), padding 0.3s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(14, 15, 15, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--ink-border);
}

.navbar-brand {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--paper) !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.navbar-brand b { color: var(--red); font-weight: 800; }

.navbar-brand img { height: 28px; width: auto; flex-shrink: 0; }

/* Responsive brand text */
.navbar-brand .brand-short { display: none; }
.navbar-brand .brand-full  { display: inline; }

@media (max-width: 575.98px) {
    .navbar-brand .brand-full  { display: none; }
    .navbar-brand .brand-short { display: inline; }
    .navbar-brand { font-size: 0.95rem; }
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--smoke) !important;
    transition: color 0.2s var(--ease);
    position: relative;
    padding-bottom: 0.2rem !important;
}

/* Animated underline on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.25s var(--ease), left 0.25s var(--ease);
}

.nav-link:hover { color: var(--paper) !important; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; left: 0; }
.nav-link:focus { outline: 1px solid var(--red); outline-offset: 3px; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--ink-mid);
        border: 1px solid var(--ink-border);
        padding: 1rem 1.25rem;
        border-radius: 0.25rem;
        margin-top: 0.75rem;
    }
    .navbar-nav .nav-link {
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
        border-bottom: 1px solid var(--ink-border);
    }
    .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }
    .nav-link::after { display: none; }
}

/* ============================================
   MASTHEAD
   — Claude: keyword sizing, layout
   — GPT: headline text, wider content area
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.masthead {
    position: relative;
    min-height: 100vh;
    background-image: url('./images/bg_numbers.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 10rem;
    padding-bottom: 6rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg,
        rgba(14, 15, 15, 0.92) 0%,
        rgba(14, 15, 15, 0.70) 60%,
        rgba(14, 15, 15, 0.50) 100%);
    z-index: 0;
}

/* Vertical red accent line */
.masthead::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--red) 0%, transparent 100%);
    z-index: 1;
}

.masthead .container { position: relative; z-index: 2; }

/* Wider than GPT's 820px to let the long headline breathe */
.masthead-content { max-width: 980px; }

.animate-load {
    opacity: 0;
    animation: fadeInUp 0.9s var(--ease) forwards;
}
.animate-load.delay-1 { animation-delay: 0.3s; }
.animate-load.delay-2 { animation-delay: 0.75s; }

/* Set the shared font-size context for both children */
.headline {
    margin-bottom: 1.75rem;
    font-size: clamp(2.35rem, 5.4vw, 4.85rem);
}

/* Scales relative to .headline — big but subordinate to .main */
.headline .keywords {
    color: var(--red);
    display: block;
    font-family: var(--font-ui);
    font-size: 0.32em;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Inherits font-size from .headline */
.headline .main {
    font-family: var(--font-display);
    color: var(--paper);
    display: block;
    font-size: 1em;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.lead-text {
    font-size: clamp(1rem, 1.55vw, 1.12rem);
    color: var(--ash);
    max-width: 720px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

@media (max-width: 575.98px) {
    .masthead { padding-top: 7rem; padding-bottom: 4rem; }
}

.scroll-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--smoke);
    font-size: 1.4rem;
    animation: arrowBounce 2.5s ease-in-out infinite;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
    line-height: 1;
}
.scroll-arrow:hover { color: var(--red); }

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.5; }
    50%       { transform: translateX(-50%) translateY(10px); opacity: 1;   }
}

/* ============================================
   PERSPECTIVE
   ============================================ */
#perspective { background-color: var(--ink); }

/* ============================================
   EXPERTISE
   — Claude: card icon above title
   — GPT: hover lift, font sizing
   ============================================ */
#expertise { background-color: var(--ink-mid); }

.card {
    background: var(--ink-raised);
    border: 1px solid var(--ink-border);
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Red sweep in from left on hover (Claude) */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

/* GPT-style subtle lift + faint glow */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.card:hover::before { transform: scaleX(1); }

.card-body { padding: 1.75rem; }

/* Claude: icon above title */
.card-icon {
    display: block;
    color: var(--red);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    opacity: 0.65;
    line-height: 1;
}

.card-title {
    font-family: var(--font-display) !important;
    color: var(--paper) !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 1rem;
    color: var(--smoke);
    line-height: 1.75;
    margin-bottom: 0;
}

/* ============================================
   HOW WE WORK (APPROACH)
   — GPT: principle-card with permanent red left bar
   ============================================ */
#approach {
    position: relative;
    background-image: url('./images/bg_work_blur.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-top: none;
    overflow: hidden;
}

.principle-card {
    background: rgba(26, 28, 28, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    position: relative;
    transition: background-color 0.25s var(--ease);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--red);
    opacity: 0.85;
}

.principle-card:hover { background-color: rgba(36, 39, 39, 0.97); }

.principle-card h3 { margin-bottom: 0.6rem; font-size: 0.9rem; }

.principle-card p {
    margin-bottom: 0;
    color: var(--smoke);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   LEADERSHIP
   — Claude: two-column name/title + bio
   ============================================ */
#leadership {
    background-color: var(--ink-mid);
    border-top: 1px solid var(--ink-border);
}

.leadership-block {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ink-border);
}

@media (max-width: 767.98px) {
    .leadership-block { grid-template-columns: 1fr; gap: 1.25rem; }
}

.leadership-name {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.1rem;
}

.leadership-name .name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--paper);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.leadership-name .title {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-top: 0.25rem;
}

.leadership-bio p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--ash);
}

/* ============================================
   CASE STUDIES
   — GPT: side-by-side panel columns
   ============================================ */
.casestudy {
    position: relative;
    background-image: url('./images/bg_numbers_blur.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.casestudy .container { position: relative; z-index: 1; }

.case-panel {
    background: rgba(26, 28, 28, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.case-panel h3 { margin-bottom: 1rem; font-size: 1.05rem; }

.case-panel p { font-size: 1rem; line-height: 1.8; }

.case-panel p:last-child { margin-bottom: 0; }

/* ============================================
   CONTACT
   — GPT: centred layout + Claude's second paragraph
   ============================================ */
.contact-section {
    background-color: var(--ink-mid);
    border-top: 1px solid var(--ink-border);
}

.contact-section h2 {
    display: block;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1rem;
    color: var(--smoke);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-poly {
    font-family: var(--font-ui) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    background-color: transparent !important;
    color: var(--paper) !important;
    border: 1.5px solid var(--red) !important;
    border-radius: 0 !important;
    padding: 0.85rem 2.5rem !important;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease) !important;
}

.btn-poly:hover {
    background-color: var(--red) !important;
    color: var(--ink) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--ink) !important;
    border-top: 1px solid var(--ink-border);
    padding: 2rem 0;
}

.footer p {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--smoke);
    margin-bottom: 0.25rem;
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 991.98px) {
    section[id]::before { right: 1rem; top: 1.5rem; }
}

@media (max-width: 767.98px) {
    section { padding: 5rem 0; }
    .principle-card,
    .case-panel { padding: 1.35rem 1.35rem 1.35rem 1.6rem; }
}
