/* ============================================
   ADAM KOPEĆ — Bauhaus Editorial Resume
   Restrained. Intentional. Every shape earns its place.
   ============================================ */

:root {
  --bg-dark: #2C2C2C;
  --bg-cream: #FAF3E8;
  --bg-warm-tan: #E8DBC9;
  --bg-teal: #2A6B6A;
  --accent-orange: #DA8244;
  --accent-mustard: #C4A435;
  --accent-sage: #5B8C6A;
  --accent-teal: #2A6B6A;
  --accent-teal-light: #3CA1A0;
  --text-cream: #FAF3E8;
  --text-dark: #2C2C2C;
  --text-muted: #B0AAA2;
  --text-secondary: #5E5954;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent-orange);
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  z-index: 200;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}
a:focus-visible { outline-offset: 3px; }

/* ---- Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================
   HERO — One circle, one name, that's it
   ============================================ */
/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav--scrolled {
  background: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(250, 243, 232, 0.06);
}

.nav__inner {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__home {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-cream);
  text-decoration: none;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.4s;
}
.nav--scrolled .nav__home { opacity: 1; }

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-cream);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.4s, color 0.3s;
  text-transform: uppercase;
}
.nav--scrolled .nav__links a { opacity: 0.7; }
.nav__links a:hover { opacity: 1; color: var(--accent-orange); }

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle svg { display: block; }

@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav__home { opacity: 0; }
  .nav--scrolled .nav__home { opacity: 1; }

  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(44, 44, 44, 0.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    align-items: flex-start;
    display: none;
  }
  .nav__links--open { display: flex; }
  .nav .nav__links--open a { opacity: 0.8; }
}

/* Hero: name dominates, then a supporting row below */
.hero {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  overflow: hidden;
}

.hero__inner {
  width: 100%;
  max-width: 1100px;
}

.hero__name-wrap {
  margin: 0;
  padding: 0;
  font: inherit;
}
.hero__name-reveal { display: block; }

.hero__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--accent-mustard);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(110px, 15vw, 260px);
  line-height: 0.82;
  letter-spacing: -2px;
  text-transform: uppercase;
}
.hero__name--first { color: var(--text-cream); }
.hero__name--last { color: var(--accent-orange); }

/* Below the name: summary left, photo right */
.hero__intro {
  display: flex;
  align-items: start;
  gap: 64px;
  margin-top: 56px;
}

.hero__intro-text {
  flex: 1;
  max-width: 560px;
}

.hero__summary {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__contact {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  align-items: center;
}
.hero__contact a, .hero__contact span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent-teal-light);
  text-decoration: none;
  transition: color 0.3s;
}
.hero__contact a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero__contact a:hover { color: var(--accent-orange); }
.hero__contact-dot { color: var(--text-secondary) !important; }

.hero__consulting {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}
.hero__consulting a {
  color: var(--accent-teal-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.3s;
}
.hero__consulting a:hover { color: var(--accent-orange); }

.hero__photo-wrap {
  position: relative;
  flex-shrink: 0;
  will-change: transform;
}

.hero__photo-circle {
  width: clamp(260px, 28vw, 420px);
  height: clamp(260px, 28vw, 420px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.hero__photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__accent {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  z-index: 1;
}

/* ============================================
   STATS — Color blocks ARE the geometry
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.stat-block {
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.stat-block--teal { background: var(--bg-teal); }
.stat-block--mustard { background: var(--accent-mustard); }
.stat-block--dark { background: var(--bg-dark); }

.stat-block__number {
  font-family: var(--font-display);
  font-size: clamp(72px, 7vw, 110px);
  line-height: 1;
}
.stat-block--teal .stat-block__number,
.stat-block--dark .stat-block__number { color: var(--text-cream); }
.stat-block--mustard .stat-block__number { color: var(--text-dark); }

.stat-block__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 12px;
  line-height: 1.7;
}
.stat-block--teal .stat-block__label,
.stat-block--dark .stat-block__label { color: var(--text-cream); opacity: 0.7; }
.stat-block--mustard .stat-block__label { color: var(--text-dark); opacity: 0.6; }

/* ============================================
   EXPERIENCE — Clean, confident, no decoration
   ============================================ */
.experience {
  background: var(--bg-cream);
  padding: 80px 48px;
}
.experience__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.experience__header {
  text-align: right;
  margin-bottom: 64px;
}

.experience__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 110px);
  color: var(--text-dark);
  line-height: 0.9;
}

.experience__subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent-orange);
  margin-top: 8px;
}

.exp-entry {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--bg-warm-tan);
}

.exp-entry--current {
  background: var(--bg-warm-tan);
  padding: 32px 40px;
  margin: 0 -40px;
  border-bottom: none;
  border-left: 4px solid var(--accent-orange);
}

.exp-entry__dates {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent-orange);
}
.exp-entry__location {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-top: 4px;
}

.exp-entry__company {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}
.exp-entry__role {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--accent-teal);
  margin-top: 4px;
}
.exp-entry__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 8px;
  max-width: 640px;
  text-wrap: pretty;
}

/* Tech symbols row */
.tech-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.tech-icon {
  position: relative;
  opacity: 0.65;
  transition: opacity 0.3s, transform 0.3s;
  cursor: default;
}
.tech-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}
.tech-icon__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-cream);
  background: var(--bg-dark);
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  clip: rect(0, 0, 0, 0); /* sr-only by default */
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
}
.tech-icon:hover .tech-icon__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  clip: auto;
  clip-path: none;
  overflow: visible;
  width: auto;
  height: auto;
}

/* Earlier roles */
.earlier-roles {
  background: var(--bg-dark);
  padding: 32px 40px;
  margin-top: 32px;
}

.earlier-roles__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-mustard);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.earlier-role {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 6px 0;
}
.earlier-role__date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent-orange);
  flex-shrink: 0;
  width: 120px;
}
.earlier-role__company {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-cream);
  white-space: nowrap;
}
.earlier-role__position {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

/* Certs inside education */
.edu-certs {}
.edu-certs__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.edu-certs__list {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cert {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cert__icon { flex-shrink: 0; }
.cert__name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
}
.cert__year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* ============================================
   EDUCATION — The split IS the geometry
   ============================================ */
.education {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 440px;
}

.education__left {
  background: var(--accent-mustard);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.education__big-text {
  font-family: var(--font-display);
  font-size: clamp(120px, 12vw, 200px);
  color: var(--text-dark);
  opacity: 0.15;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  letter-spacing: 10px;
  user-select: none;
}

.education__right {
  background: var(--bg-cream);
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.education__title {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.edu-entry__institution {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
}
.edu-entry__degree {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--accent-teal);
  margin-top: 2px;
}
.edu-entry__location {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-top: 2px;
}

.edu-divider {
  width: 40px;
  height: 2px;
  background: var(--accent-orange);
}

.languages__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.languages__list { display: flex; gap: 32px; }
.languages__item {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
}
.languages__level {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-left: 4px;
}

/* ============================================
   INTERESTS
   ============================================ */
.interests {
  background: var(--bg-dark);
  padding: 80px 48px;
  text-align: center;
}

.interests__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  color: var(--text-cream);
}

.interests__subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-mustard);
  margin-top: 8px;
  margin-bottom: 56px;
}

.interests__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.interest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: left;
}

.interest-card {
  padding: 32px;
  border-top: 3px solid;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.interest-card:hover { transform: translateY(-6px); }
.interest-card--guitar { border-color: var(--accent-orange); }
.interest-card--books { border-color: var(--accent-sage); }
.interest-card--it { border-color: var(--accent-teal); }

.interest-card__icon { margin-bottom: 16px; line-height: 0; }
.interest-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 8px;
}
.interest-card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-cream);
  padding: 32px 48px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__name {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-dark);
}
.footer__role {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.footer__links { display: flex; gap: 32px; }
.footer__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--accent-orange); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1400px) {
  .experience, .interests { padding: 64px 48px; }
}

@media (max-width: 900px) {
  .hero { padding: 48px 32px; min-height: auto; text-align: center; }
  .hero__intro { flex-direction: column; gap: 32px; align-items: center; }
  .hero__intro-text { text-align: center; }
  .hero__contact { justify-content: center; flex-wrap: wrap; }
  .hero__photo-wrap { order: -1; }
  .hero__accent { display: none; }
  .stats { grid-template-columns: 1fr; }
  .exp-entry { grid-template-columns: 1fr; gap: 12px; }
  .exp-entry--current { margin: 0; }
  .experience, .interests { padding: 48px 24px; }
  .education { grid-template-columns: 1fr; }
  .education__left { min-height: 160px; }
  .edu-certs__list { gap: 12px; }
  .languages__list { flex-wrap: wrap; gap: 16px; }
  .education__big-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 80px;
  }
  .education__right { padding: 48px 24px; }
  .interest-cards { grid-template-columns: 1fr; }
  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 40px 32px; }
  .hero__summary { font-size: 15px; }
  .hero__contact { flex-wrap: wrap; gap: 12px; }
  .earlier-role { flex-wrap: wrap; gap: 8px; }
  .earlier-role__date { width: auto; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media print {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  body { background: white; }
}
