/* Portfolio customisations (Daniel Chazarra) — loaded after styles.css */

/* Language switch: EN is default, ES toggled via <html lang="es"> */
html[lang="es"] .en { display: none !important; }
html:not([lang="es"]) .es { display: none !important; }
.lang-switch { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; color: #fff; padding: 0; }
.lang-switch button { background: none; border: 0; color: var(--white-64); padding: 0; font: inherit; cursor: pointer; }
.lang-switch button.active, .lang-switch button:hover { color: var(--primary); }
.logo-mono { font-weight: 700; font-size: 28px; letter-spacing: -0.05em; color: #fff; line-height: 1; }
.logo-mono span { color: var(--primary); }

/* Hero name is longer than the template's one-word title */
.section-hero-v1 .davies-large { font-size: clamp(56px, 11vw, 150px); line-height: clamp(60px, 10vw, 136px); }
.hero-subtitle { color: var(--white-64); margin-top: 16px; }

/* Selected works: longer titles */
.section-selected-work .text-slide { font-size: clamp(28px, 4vw, 56px); line-height: 1.1; }

/* Visible placeholders for missing data */
.pending { outline: 1px dashed var(--primary); color: var(--primary); padding: 2px 6px; font-size: 0.85em; }

/* Project cards with lazy YouTube embeds */
.project-card { margin-bottom: 48px; }
.project-card .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--white-64); margin: 12px 0 8px; }
.project-card h3 { margin-bottom: 8px; }
.project-card p { color: var(--white-64); }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0b0b0b; overflow: hidden; border: 1px solid var(--white-16); }
.video-embed iframe, .video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--white-64); }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.section-works .s-header, .section-wid .s-header, .section-skills .s-header, .section-exp .s-header { margin-bottom: 48px; }
.section-works .supporting .project-card { margin-bottom: 40px; }

/* What I do + skills */
.wid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.wid-card { border: 1px solid var(--white-16); padding: 28px 24px; }
.wid-card .num { color: var(--primary); }
.wid-card h5 { margin: 12px 0 8px; }
.wid-card p { color: var(--white-64); margin: 0; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 24px; }
.skills-grid h5 { margin-bottom: 16px; }
.skills-grid ul { list-style: none; padding: 0; margin: 0; }
.skills-grid li { padding: 6px 0; border-bottom: 1px solid var(--white-16); color: var(--white-64); }
.skills-grid li span { color: var(--primary); margin-right: 8px; }
.level-note { margin-top: 32px; color: var(--white-64); }

/* About */
.about-photo-img { width: 100%; height: auto; display: block; border: 1px solid var(--white-16); }
.bring-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.about-text p { color: var(--white-64); margin-bottom: 16px; }
.section-exp .experience-list li { align-items: flex-start; }

/* Case-study page */
.case-hero { padding-top: 160px; }
.case-block { margin-top: 56px; }
.case-block h4 { margin-bottom: 12px; }
.case-block p, .case-block li { color: var(--white-64); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; }
.case-grid > div { border: 1px solid var(--white-16); padding: 24px; }
.case-grid h6 { color: #fff; margin-bottom: 8px; }
.case-grid p { margin: 0; }

/* Contact form */
.form-status { margin-top: 16px; min-height: 24px; }
.form-status.ok { color: var(--primary); }
.form-status.err { color: #ff6b6b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
textarea.tf-input { min-height: 120px; resize: vertical; }
