/* Mike Devich Portfolio — Shared Stylesheet */
:root {
  --bg-dark: #0a0e1a;
  --bg-dark-2: #11162a;
  --bg-light: #f4f4f2;
  --bg-light-2: #ffffff;
  --text-light: #ffffff;
  --text-muted-light: #c9cdd6;
  --text-dark: #1a1a1a;
  --text-muted-dark: #4a4a4a;
  --accent: #c9a96e;
  --accent-2: #b8956a;
  --border-light: #e5e5e5;
  --max-width: 1400px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(to bottom, rgba(10, 14, 26, 0.75) 0%, rgba(10, 14, 26, 0.35) 60%, transparent 100%); }
.logo { font-size: 22px; font-weight: 700; letter-spacing: 0.15em; color: var(--text-light); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.logo .gold { color: var(--accent); }
.site-nav ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text-light); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--accent); color: var(--accent); }
.site-header.light { background: transparent; }
.site-header.light .logo { color: var(--text-dark); text-shadow: none; }
.site-header.light .site-nav a { color: var(--text-dark); text-shadow: none; }
.site-header.light .site-nav a:hover, .site-header.light .site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: inherit; font-size: 24px; cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--bg-dark); color: var(--text-light); min-height: 100vh; padding: 140px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "portrait content" "signature content"; column-gap: 40px; row-gap: 20px; align-items: start; position: relative; z-index: 2; }
.hero-portrait { grid-area: portrait; }
.hero-signature { grid-area: signature; }
.hero-content { grid-area: content; position: relative; z-index: 3; max-width: 560px; }
.hero-art { position: absolute; top: 0; right: 0; width: 55%; height: 100%; z-index: 1; mask-image: linear-gradient(to right, transparent 0%, black 30%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.eyebrow { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin: 0 0 24px; font-weight: 500; }
.hero h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 700; line-height: 1.05; margin: 0 0 24px; letter-spacing: -0.02em; }
.hero h1 .accent-line { display: block; color: var(--accent); font-style: italic; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
.hero-desc { font-size: 17px; color: var(--text-muted-light); max-width: 480px; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: all 0.2s; background: transparent; color: inherit; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-outline { border-color: var(--text-light); color: var(--text-light); }
.btn-outline:hover { background: var(--text-light); color: var(--bg-dark); }
.btn-outline-dark { border-color: var(--text-dark); color: var(--text-dark); }
.btn-outline-dark:hover { background: var(--text-dark); color: var(--bg-light); }
.hero-signature { display: flex; flex-direction: column; gap: 4px; }
.hero-signature img { max-width: 220px; margin-bottom: 8px; }
.hero-signature .sig-title { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.hero-signature .sig-company { font-size: 14px; color: var(--text-muted-light); }
.hero-portrait { flex-shrink: 0; width: 180px; height: 180px; border-radius: 50%; border: 2px solid var(--accent); overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,0.4); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Logo Strip */
.logo-strip { background: var(--bg-light-2); padding: 60px 0 50px; text-align: center; border-bottom: 1px solid var(--border-light); }
.logo-strip h3 { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted-dark); margin: 0 0 40px; font-weight: 500; }
.logo-row { display: flex; justify-content: space-around; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
/* Logos are now buttons — strip default button chrome */
.logo-trigger { background: none; border: 0; padding: 4px 8px; margin: 0; cursor: pointer; font: inherit; border-radius: 4px; transition: transform 0.15s, background 0.2s; }
.logo-trigger:hover { transform: translateY(-2px); background: rgba(201, 169, 110, 0.08); }
.logo-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo-trigger.is-active { background: rgba(201, 169, 110, 0.18); }
.logo-row img { max-height: 40px; max-width: 180px; width: auto; object-fit: contain; opacity: 0.85; transition: opacity 0.2s; pointer-events: none; }
.logo-trigger:hover img, .logo-trigger.is-active img { opacity: 1; }
/* Square-aspect logo needs a touch more vertical room to read at the same visual weight */
.logo-row img[src*="new-world-graphics"] { max-height: 56px; }
.logo-row .logo-placeholder { height: 36px; padding: 0 24px; display: flex; align-items: center; background: #eaeaea; color: #888; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; border-radius: 2px; }
.logo-tag { color: var(--text-muted-dark); font-size: 15px; max-width: 680px; margin: 0 auto; }
.logo-tag .logo-hint { display: inline-block; margin-left: 6px; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }

/* Experience panel */
.experience-panel { max-width: 880px; margin: 36px auto 0; background: var(--bg-light); border-left: 3px solid var(--accent); padding: 28px 32px; position: relative; text-align: left; opacity: 0; transform: translateY(-6px); transition: opacity 0.28s ease, transform 0.28s ease; }
.experience-panel.is-open { opacity: 1; transform: translateY(0); }
.experience-panel[hidden] { display: none; }
.exp-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 20px; color: var(--text-muted-dark); cursor: pointer; padding: 6px 10px; line-height: 1; border-radius: 4px; }
.exp-close:hover { background: rgba(0,0,0,0.05); color: var(--text-dark); }
.exp-header { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; padding-right: 36px; }
.exp-title { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.exp-company { font-size: 15px; color: var(--text-dark); }
.exp-employment { color: var(--text-muted-dark); font-weight: 400; }
.exp-meta { text-align: right; font-size: 13px; color: var(--text-muted-dark); white-space: nowrap; }
.exp-dates { font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.exp-duration { color: var(--text-muted-dark); font-weight: 400; }
.exp-location { font-size: 12px; }
.exp-overview { font-size: 15px; color: var(--text-muted-dark); margin: 0 0 16px; line-height: 1.7; }
.exp-bullets { list-style: none; padding: 0; margin: 0; }
.exp-bullets li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 14.5px; color: var(--text-dark); line-height: 1.6; }
.exp-bullets li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--accent); }

/* Impact + Passion */
.impact-passion { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-light); }
.section-half { padding: 60px 50px; }
.section-half h2 { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; text-align: center; margin: 0 0 12px; font-weight: 600; color: var(--text-dark); }
.section-half h2::after { content: ''; display: block; width: 50px; height: 2px; background: var(--accent); margin: 14px auto 0; }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 40px 0; }
.stat { text-align: center; padding: 0 8px; }
.stat-icon { color: var(--accent); margin-bottom: 12px; line-height: 1; display: flex; justify-content: center; }
.stat-icon svg { width: 32px; height: 32px; }
.stat-number { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.stat-label { font-size: 11px; color: var(--text-muted-dark); line-height: 1.4; }
.section-cta { text-align: center; margin-top: 30px; }

/* Art grid */
.art-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 40px 0; }
.art-grid .art-thumb { aspect-ratio: 3/4; background: #1f2940; overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.art-grid .art-thumb:hover { transform: translateY(-4px); }
.art-grid .art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-actions { display: flex; gap: 24px; align-items: center; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.art-actions .external { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted-dark); font-weight: 600; }
.art-actions .external:hover { color: var(--accent); }
.art-actions .etsy { color: #f1641e; }

/* Footer */
.site-footer { background: var(--bg-dark); color: var(--text-muted-light); padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.site-footer .copyright { color: var(--text-muted-light); }
.footer-links { display: flex; gap: 40px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.15em; text-transform: uppercase; font-size: 12px; color: var(--text-light); }
.footer-links a:hover { color: var(--accent); }
.footer-quote { font-size: 13px; color: var(--text-muted-light); max-width: 380px; }
.footer-quote .gold { color: var(--accent); }

/* Inner Page Hero */
.page-hero { background: var(--bg-dark); color: var(--text-light); padding: 160px 0 80px; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 16px; font-weight: 700; }
.page-hero h1 .accent-line { color: var(--accent); font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 500; }
.page-hero p { font-size: 18px; color: var(--text-muted-light); max-width: 640px; margin: 0 auto; }

/* Gallery */
.gallery-section { padding: 80px 0; background: var(--bg-light); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { aspect-ratio: 3/4; background: #1f2940; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cta { text-align: center; padding: 40px 0 20px; }
.gallery-cta p { margin: 0 0 24px; color: var(--text-muted-dark); font-size: 16px; }

/* Insights */
.insights-section { padding: 80px 0; background: var(--bg-light); }
.posts-list { display: grid; gap: 32px; max-width: 800px; margin: 0 auto; }
.post-card { background: var(--bg-light-2); padding: 32px; border: 1px solid var(--border-light); transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.post-card .post-date { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.post-card h3 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.post-card p { margin: 0; color: var(--text-muted-dark); }

/* Contact */
.contact-section { background: var(--bg-light-2); padding: 80px 0; border-top: 1px solid var(--border-light); }
.contact-section h2 { text-align: center; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 12px; }
.contact-section h2::after { content: ''; display: block; width: 50px; height: 2px; background: var(--accent); margin: 14px auto 0; }
.contact-intro { text-align: center; max-width: 540px; margin: 24px auto 40px; color: var(--text-muted-dark); }
.contact-form { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.contact-form label { display: block; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; color: var(--text-muted-dark); font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-light); font-family: inherit; font-size: 15px; background: var(--bg-light); color: var(--text-dark); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { justify-content: center; }
#contact-status { text-align: center; margin-top: 12px; font-size: 14px; color: var(--text-muted-dark); }
#contact-status.is-error { color: #b3261e; }
#contact-status.is-success { color: #1b8a3a; }
/* Honeypot: visually + positionally hidden but still in DOM for bots to fill */
.cf-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Responsive */
/* Intermediate: keep hero content readable as the art column shrinks */
@media (max-width: 1200px) {
  .hero-art { width: 50%; }
  .hero-content { max-width: 460px; }
  .hero-portrait { width: 150px; height: 150px; }
  .hero h1 { font-size: clamp(36px, 5vw, 56px); }
}
@media (max-width: 1000px) {
  .hero-art { width: 45%; opacity: 0.6; }
  .hero-grid { gap: 32px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .site-header { padding: 12px 20px; }
  .logo { font-size: 18px; }
  .site-nav { display: none; }
  .site-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); padding: 20px 24px; }
  .site-nav.open ul { flex-direction: column; gap: 16px; }
  .nav-toggle { display: block; color: var(--text-light); font-size: 22px; padding: 4px 8px; }
  .site-header.light .nav-toggle { color: var(--text-dark); }
  .hero { padding: 90px 0 56px; min-height: auto; position: relative; }
  /* Hero art becomes a full-bleed faded backdrop on mobile */
  .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; margin: 0; mask-image: none; -webkit-mask-image: none; z-index: 0; }
  .hero-art img { object-fit: cover; object-position: 60% 25%; }
  /* Gradient overlay keeps content readable on top of the backdrop */
  .hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,14,26,0.2) 0%, rgba(10,14,26,0.55) 35%, rgba(10,14,26,0.92) 75%, rgba(10,14,26,1) 100%); pointer-events: none; }
  /* Eyebrow reads cleaner in white against the backdrop on mobile */
  .hero .eyebrow { color: var(--text-light); }
  /* Strengthen remaining gold text/marks against the backdrop on mobile */
  .hero .eyebrow,
  .hero h1 .accent-line,
  .hero-signature .sig-title { text-shadow: 0 1px 8px rgba(0,0,0,0.85), 0 0 14px rgba(0,0,0,0.55); }
  .hero-signature img { filter: drop-shadow(0 1px 4px rgba(0,0,0,0.75)) drop-shadow(0 0 8px rgba(0,0,0,0.5)); }
  .hero .container { position: relative; z-index: 2; }
  .hero-grid { grid-template-columns: auto 1fr; grid-template-areas: "portrait signature" "content content"; column-gap: 18px; row-gap: 22px; align-items: center; }
  .hero-portrait { width: 110px; height: 110px; }
  .hero-signature { align-self: center; }
  .hero-signature img { max-width: 180px; margin-bottom: 4px; }
  .hero-signature .sig-title { font-size: 10px; }
  .hero-content { max-width: 100%; }
  /* Experience panel — stack meta on mobile */
  .experience-panel { padding: 22px 20px; margin-top: 24px; }
  .exp-header { flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 30px; margin-bottom: 12px; }
  .exp-meta { text-align: left; white-space: normal; }
  .exp-title { font-size: 19px; }
  .logo-tag .logo-hint { display: block; margin-left: 0; margin-top: 10px; }
  .impact-passion { grid-template-columns: 1fr; }
  .section-half { padding: 50px 24px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .art-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer { flex-direction: column; text-align: center; padding: 28px 24px; }
  .footer-links { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .footer-quote { text-align: center; }
}
@media (max-width: 500px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
}
