/* Import IBM Plex Mono font - typewriter style */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1em;
    letter-spacing: 0;
}

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

ul {
    list-style: none;
}

/* ===================================
   LAYOUT CONTAINERS
   =================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    display: inline-block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    color: #666;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: #1a1a1a;
    transform: translateY(-1px);
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0066cc;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    padding: 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Animated SVG Visualization */
.hero-visual {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px;
}

.orbit-animation {
    width: 100%;
    height: auto;
}

/* Rotating rings with varied speeds */
.rotate-slower {
    animation: rotate 60s linear infinite;
    transform-origin: center;
}

.rotate-slow {
    animation: rotate 45s linear infinite;
    transform-origin: center;
}

.rotate-medium {
    animation: rotate-reverse 35s linear infinite;
    transform-origin: center;
}

.rotate-reverse {
    animation: rotate-reverse 30s linear infinite;
    transform-origin: center;
}

.rotate-fast {
    animation: rotate 25s linear infinite;
    transform-origin: center;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
    color: #1a1a1a;
}

.hero-statement {
    font-size: 1.75rem;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    min-height: 2.625rem; /* Prevent layout shift during animation */
}

/* Typewriter animation */
.hero-statement.typewriter {
    display: inline-block;
    border-right: 3px solid #1a1a1a;
    padding-right: 4px;
    white-space: nowrap;
    overflow: hidden;
}

.hero-statement.typewriter.finished {
    border-right: none;
    animation: blink 0.7s step-end 3;
}

@keyframes blink {
    0%, 50% {
        border-right: 3px solid #1a1a1a;
    }
    51%, 100% {
        border-right: 3px solid transparent;
    }
}

/* Legacy hero styles for other pages */
.hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #0066cc;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0);
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
}

.btn-secondary:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-full {
    width: 100%;
}

.link-secondary {
    font-size: 1rem;
    color: #666;
    transition: color 0.2s ease;
}

.link-secondary:hover {
    color: #0066cc;
}

/* ===================================
   SECTION TITLES
   =================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.section-intro {
    font-size: 1.125rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.page-hero {
    padding: 100px 0 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.page-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #666;
    max-width: 800px;
}

.page-statement {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 800px;
    font-weight: 400;
}

/* Minimal thesis page styles */
.section-focus-simple,
.section-stage-simple,
.section-what,
.section-focus-home,
.section-approach-home,
.section-edge,
.section-criteria-simple {
    padding: 100px 0;
    border-top: 1px solid #e5e5e5;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
}

.section-statement {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.6;
    max-width: 800px;
}

.section-title-simple {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

/* Homepage sections */
.what-content {
    max-width: 800px;
}

.focus-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 900px;
}

.focus-home-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.focus-home-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.approach-home-content {
    max-width: 800px;
}

.approach-statement {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Thesis page - Edge section */
.edge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 900px;
}

.edge-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.edge-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Thesis page - Criteria section */
.criteria-simple-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 900px;
}

.criteria-simple-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.criteria-simple-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.focus-simple-item {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.6;
}

.stage-statement {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .focus-home-grid,
    .edge-grid,
    .criteria-simple-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Enhanced portfolio filters */
.section-portfolio-filters {
    padding: 40px 0 0;
    border-top: none;
}

.portfolio-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.filter-btn.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* Enhanced portfolio list */
.section-portfolio-enhanced {
    padding: 60px 0 100px;
    border-top: none;
}

.portfolio-enhanced-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portfolio-enhanced-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    opacity: 1;
}

.portfolio-enhanced-item:hover {
    background-color: #fafafa;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 8px;
}

.portfolio-enhanced-item.hidden {
    display: none;
}

.portfolio-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.portfolio-logo-placeholder {
    width: 56px;
    height: 56px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.portfolio-enhanced-item:hover .portfolio-logo-placeholder {
    background-color: #0066cc;
    color: #ffffff;
}

.portfolio-details {
    flex: 1;
}

.portfolio-enhanced-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.portfolio-description-short {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portfolio-enhanced-category {
    font-size: 0.875rem;
    color: #666;
    min-width: 140px;
    text-align: right;
}

.portfolio-year {
    font-size: 0.875rem;
    color: #999;
    min-width: 40px;
}

.portfolio-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-status.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.portfolio-status.series-a {
    background-color: #e3f2fd;
    color: #1565c0;
}

.portfolio-status.holding {
    background-color: #fff3e0;
    color: #e65100;
}

@media (max-width: 768px) {
    .portfolio-enhanced-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 0;
    }
    
    .portfolio-info {
        width: 100%;
    }
    
    .portfolio-meta {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .portfolio-enhanced-category {
        min-width: auto;
        text-align: left;
    }
    
    .portfolio-year {
        min-width: auto;
    }
}

/* Minimal portfolio list */
.section-portfolio-minimal {
    padding: 80px 0;
    border-top: 1px solid #e5e5e5;
}

.portfolio-minimal-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portfolio-minimal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: opacity 0.2s ease;
}

.portfolio-minimal-item:hover {
    opacity: 0.6;
}

.portfolio-minimal-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
}

.portfolio-minimal-category {
    font-size: 0.95rem;
    color: #666;
    text-align: right;
}

@media (max-width: 767px) {
    .portfolio-minimal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .portfolio-minimal-category {
        text-align: left;
        font-size: 0.85rem;
    }
}

/* ===================================
   OVERVIEW SECTION - PILLARS
   =================================== */

.section-overview {
    background-color: #fafafa;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.pillar-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.pillar-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* ===================================
   APPROACH SECTION
   =================================== */

.section-approach {
    background-color: #ffffff;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 60px;
}

.approach-step {
    text-align: left;
}

.step-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.step-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* Desktop: 5 columns for approach steps */
@media (min-width: 1200px) {
    .approach-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
}

/* Tablet: 2 columns, then 3 for last row */
@media (min-width: 768px) and (max-width: 1199px) {
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .approach-step:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* ===================================
   FOCUS AREAS SECTION
   =================================== */

.section-focus {
    background-color: #fafafa;
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
}

.focus-item {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.focus-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.focus-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.section-cta {
    background-color: #1a1a1a;
    color: #ffffff;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 40px;
}

/* ===================================
   THESIS PAGE - PRINCIPLES
   =================================== */

.section-principles {
    background-color: #fafafa;
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
}

.principle-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.principle-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.principle-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* ===================================
   THESIS PAGE - STAGE
   =================================== */

.section-stage {
    background-color: #ffffff;
}

.stage-content {
    max-width: 800px;
    margin: 40px auto 0;
}

.stage-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 24px;
}

/* ===================================
   THESIS PAGE - CRITERIA
   =================================== */

.section-criteria {
    background-color: #fafafa;
}

.criteria-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
}

.criteria-category {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.criteria-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.criteria-list {
    list-style: none;
    padding: 0;
}

.criteria-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.criteria-list li::before {
    content: '•';
    position: absolute;
    left: 12px;
    color: #0066cc;
    font-weight: bold;
}

/* ===================================
   THESIS PAGE - CTA
   =================================== */

.section-thesis-cta {
    background-color: #ffffff;
}

.thesis-cta-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 40px;
}

.thesis-cta-column {
    text-align: center;
    padding: 48px 32px;
    background-color: #fafafa;
    border-radius: 8px;
}

.thesis-cta-column h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.thesis-cta-column p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 32px;
}

/* ===================================
   PORTFOLIO PAGE - GRID
   =================================== */

.section-portfolio {
    background-color: #fafafa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
}

.portfolio-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.portfolio-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
}

.portfolio-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

/* ===================================
   PORTFOLIO PAGE - THEMES
   =================================== */

.section-themes {
    background-color: #ffffff;
}

.themes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
}

.theme-item {
    padding: 32px;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.theme-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.theme-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

/* ===================================
   PORTFOLIO PAGE - CTA
   =================================== */

.section-portfolio-cta {
    background-color: #1a1a1a;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   TEAM PAGE
   =================================== */

.section-team {
    background-color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
}

.team-card {
    background-color: #fafafa;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 24px;
}

.team-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

/* ===================================
   CONTACT PAGE
   =================================== */

.section-contact {
    background-color: #fafafa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    background-color: #ffffff;
    padding: 48px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.contact-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 24px;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 48px;
    transition: opacity 0.2s ease;
}

.contact-email:hover {
    opacity: 0.7;
}

.contact-guidelines {
    margin-top: 40px;
}

.guidelines-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.guidelines-list li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
}

.guidelines-list li::before {
    content: '→';
    position: absolute;
    left: 8px;
    color: #0066cc;
}

.guidelines-note {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: #ffffff;
    padding: 48px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.form-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-input,
.form-textarea {
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0066cc;
}

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

.form-note {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: -8px;
}

/* ===================================
   DISCLAIMER SECTION
   =================================== */

.section-disclaimer {
    background-color: #ffffff;
    padding: 60px 0;
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.disclaimer-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 16px;
}

/* Minimal contact */
.section-contact-minimal {
    padding: 80px 0;
    border-top: 1px solid #e5e5e5;
    min-height: calc(100vh - 72px - 180px); /* viewport height minus header and footer approximate heights */
    display: flex;
    align-items: center;
}

.contact-email-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-email-minimal {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.contact-email-minimal:hover {
    opacity: 0.6;
}

.copy-email-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-email-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

.copy-email-btn:active {
    transform: translateY(0);
}

.copy-email-btn svg {
    width: 16px;
    height: 16px;
}

.copy-notification {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-copyright {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 16px 0;
}

.footer-link {
    color: #999;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-link svg {
    display: block;
}

/* ===================================
   RESPONSIVE - TABLET & DESKTOP
   =================================== */

@media (min-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    /* Section spacing */
    .section {
        padding: 100px 0;
    }

    .page-hero {
        padding: 120px 0 80px;
    }

    /* Pillars grid */
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    /* Focus grid */
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Principles grid */
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Criteria grid */
    .criteria-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Thesis CTA */
    .thesis-cta-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Portfolio grid */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Themes grid */
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Contact content */
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    /* Hero CTA */
    .hero-cta {
        flex-direction: row;
    }

    /* CTA buttons */
    .cta-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    /* Portfolio 3 columns on larger screens */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Team 3 columns on larger screens */
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Themes 3 columns */
    .themes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Focus 3 columns */
    .focus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   ANIMATIONS & INTERACTIVE ELEMENTS
   =================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero fade in on page load */
.hero-content {
    animation: fadeIn 0.8s ease;
}

/* Smooth section reveals on scroll */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Grid item stagger animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

/* Button press animation */
.btn:active {
    transform: translateY(1px);
}

/* Smooth underline animation for nav links */
.nav-link {
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active::before {
    width: 100%;
}

/* Link hover effect for secondary links */
.link-secondary {
    position: relative;
    display: inline-block;
}

.link-secondary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.link-secondary:hover::after {
    width: 100%;
}

/* Smooth page transitions */
body {
    animation: fadeIn 0.4s ease-in;
}

/* Portfolio tag hover effect */
.portfolio-tag {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.portfolio-card:hover .portfolio-tag {
    background-color: #0066cc;
    color: #ffffff;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #00a8cc);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading state for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   NOISE TEXTURE OVERLAY
   =================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ===================================
   STAGGERED TEXT REVEAL
   =================================== */

.reveal-text {
    opacity: 0;
    transform: translateY(50px); /* Increased from 30px for more dramatic effect */
    transition: opacity 1s ease, transform 1s ease; /* Increased from 0.8s */
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple elements */
.reveal-text:nth-child(1) { transition-delay: 0s; }
.reveal-text:nth-child(2) { transition-delay: 0.15s; } /* Increased from 0.1s */
.reveal-text:nth-child(3) { transition-delay: 0.3s; }  /* Increased from 0.2s */
.reveal-text:nth-child(4) { transition-delay: 0.45s; } /* Increased from 0.3s */
.reveal-text:nth-child(5) { transition-delay: 0.6s; }  /* Increased from 0.4s */
.reveal-text:nth-child(6) { transition-delay: 0.75s; } /* Increased from 0.5s */

/* Split text animation for hero */
.split-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.split-text.animate {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */

@media (max-width: 767px) {
    /* Logo adjustments for mobile */
    .logo-image {
        height: 28px;
    }
    
    .logo {
        gap: 10px;
        font-size: 1.125rem;
    }

    /* Show mobile menu toggle */
    .menu-toggle {
        display: block;
    }

    /* Hide navigation by default on mobile */
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid #e5e5e5;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 300px;
    }

    .nav-link {
        padding: 20px 24px;
        border-bottom: 1px solid #f5f5f5;
        display: block;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Typography adjustments */
    .hero {
        padding: 80px 0;
        min-height: 80vh;
    }
    
    .hero-visual {
        max-width: 320px;
        margin: 0 auto 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-statement {
        font-size: 1.125rem;
    }
    
    .hero-statement.typewriter {
        border-right-width: 2px;
    }

    .section-statement,
    .approach-statement {
        font-size: 1.125rem;
    }

    .focus-home-item h3,
    .edge-item h3,
    .criteria-simple-item h3 {
        font-size: 1.125rem;
    }

    .section-focus-simple,
    .section-stage-simple,
    .section-what,
    .section-focus-home,
    .section-approach-home,
    .section-edge,
    .section-criteria-simple {
        padding: 60px 0;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    /* Hero CTA */
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Spacing adjustments */
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .page-hero {
        padding: 80px 0 40px;
    }

    /* Card padding adjustments */
    .pillar-card,
    .principle-card,
    .criteria-category,
    .contact-info,
    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .portfolio-card,
    .theme-item,
    .focus-item {
        padding: 24px;
    }

    /* Portfolio header */
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Contact */
    .contact-email {
        font-size: 1.25rem;
    }
    
    /* Team cards on mobile - single column for wider cards */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }
    
    .team-card {
        padding: 28px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .team-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .team-name {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .team-bio {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px;
    }
}
