/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #1a1b1c; /* Off-black */
    --text-color: #f2f0e4; /* Vintage-white */
    --text-dim: #b0aea5;
    --accent: #f2f0e4;
    
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Courier Prime', monospace;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: opacity 0.3s ease;
}

/* --- FONTS --- */

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/courier-prime-v11-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/courier-prime-v11-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/merriweather-v33-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/merriweather-v33-latin-300italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/merriweather-v33-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/merriweather-v33-latin-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/merriweather-v33-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/merriweather-v33-latin-700italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/trirong-v17-latin-regular.woff2') format('woff2');
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); border-bottom: 1px solid var(--text-color); padding-bottom: 1rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1rem; }

p { margin-bottom: 1rem; font-weight: 300; }

.tech-accent {
    font-family: var(--font-mono);
    font-size: 0.9em;
    opacity: 0.9;
}

blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    border-left: 2px solid var(--text-color);
    padding-left: 20px;
    margin: 2rem 0;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.hidden { display: none !important; }

/* --- HEADER --- */
header {
    background-color: var(--text-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative; 
}

.brand-block {
    display: flex;
    flex-direction: column;
    margin-right: auto;
}

a.logo {
    display: flex;
    align-items: center;
    gap: 0.1em;
    line-height: 1;
    font-size: 50px;
    text-decoration: none;
    color: inherit;
}

span.logo-pre {
    font-family: 'Trirong', serif;
    color: var(--text-color);
    background-color: #e6512e;
    font-size: 1em;
    padding: 0.7em 0.05em;
}

span.logo-post {
    font-family: 'Trirong', serif;
    color: #000000;
    font-size: 1em; 
}

img.logo {
    height: 1em; 
    width: auto;
    position: relative;
    bottom: 0.02em;
    right: 0.02em;
}

.lang {
    color: var(--bg-color);
}

.lang a {
    text-decoration: none;
    color: var(--bg-color);
}

.nav-burger {
    cursor: pointer;
    font-size: 2rem;
    user-select: none;
    color: var(--bg-color);
}

ul.bullets {
    padding-left: 1em
}

span.berlin {
    font-weight: 300;
    font-size: 0.8em;
}

p.berlin {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-style: italic; opacity: 0.7;
}

/* Dummy Nav Overlay */
#main-nav {
    display: none;
    position: absolute;
    
    /* CHANGED: Position relative to the .header-inner box */
    top: 100%; 
    right: 0;
    margin-top: 5px; /* Small gap */
    
    background: var(--bg-color);
    border: 1px solid var(--text-color);
    padding: 20px;
    z-index: 100;
}
#main-nav ul { list-style: none; }
#main-nav a { color: var(--text-color); text-decoration: none; display: block; padding: 5px 0; font-family: var(--font-mono); }

/* --- AUDIENCE SWITCHER --- */
.audience-switch {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    border-top: 20px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.switch-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}

.switch-controls {
    display: inline-flex;
    border: 1px solid var(--text-color);
}

.switch-btn {
    background: transparent;
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.3s;
    text-decoration: none; 
    display: inline-block;
    font-size: 1rem;
}

.switch-btn:hover { background: rgba(242, 240, 228, 0.1); }

a.active {
    background: var(--text-color);
    color: var(--bg-color);
    font-weight: bold;
}

/* --- SECTIONS GENERAL --- */
section {
    padding: var(--spacing-lg) 0;
}

/* --- VISION --- */
.vision h1 {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* --- ISSUE --- */
.issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.issue-card {
    border: 1px dashed var(--text-dim);
    padding: 2rem;
    text-align: center;
}
.issue-card .icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 1rem;
    border-radius: 50%; /* Placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

/* --- SOLUTION --- */
.solution-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}
@media (max-width: 768px) {
    .solution-columns { grid-template-columns: 1fr; }
}

.solution-list li {
    margin-bottom: 1rem;
    list-style: none;
    position: relative;
    padding-left: 25px;
}
.solution-list li::before {
    content: "</>";
    position: absolute;
    left: 0;
    color: var(--text-dim);
    font-size: 0.7em;
    top: 5px;
    font-family: var(--font-mono);
}

/* --- SERVICE --- */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    border-left: 1px solid var(--text-color);
    padding-left: 2rem;
}
.exp-item strong { display: block; font-family: var(--font-mono); }

/* --- INSIGHT --- */
.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
@media (max-width: 768px) { .insight-grid { grid-template-columns: 1fr; } }

.process-steps .step {
    margin-bottom: 1.5rem;
}
.process-steps h4 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.insight-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- CTA --- */
.cta-section {
    background: rgba(242, 240, 228, 0.05);
    padding: var(--spacing-lg) 0;
}
.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}
@media (max-width: 768px) { .cta-container { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1rem; }
input {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: var(--font-mono);
}
button.cta-btn {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 15px 30px;
    font-family: var(--font-serif);
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-tag {
    border: 1px solid var(--text-dim);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* --- BERLIN CONTEXT (ASCII ART) --- */
.berlin-context {
    text-align: center;
    padding-top: var(--spacing-lg);
    padding-bottom: 0;
}

.ascii-art-container {
    width: 100%;
    height: 400px;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    font-family: monospace;
    font-size: 10px;
    line-height: 10px;
    color: var(--text-dim);
    white-space: pre;
}

/* --- FOOTER --- */
footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-dim);
}

footer a { color: var(--text-color); text-decoration: none; margin: 0 10px; }
