/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --ink:        #1c2228;
  --paper:      #f3f4f2;
  --cream:      #e5e8e6;
  --accent:     #3a6b8a;
  --accent-dim: #b8cfd9;
  --muted:      #6a737a;
  --rule:       #cdd4d8;

  --font-display: 'Syne', sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --max-w: 860px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   WRAPPER
   ============================================================ */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   HEADER / HERO
   ============================================================ */
.site-header {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: 'Design';
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.header-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  animation: fadeUp 0.7s ease both;
}

.header-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.75rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.header-contact a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.header-contact a:hover { color: var(--accent); }

/* ============================================================
   SUMMARY STRIP
   ============================================================ */
.summary-strip {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  animation: fadeUp 0.7s 0.25s ease both;
}

.summary-strip p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  max-width: 680px;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-content {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  animation: fadeUp 0.6s ease both;
}

.primary-col .section:last-child { border-bottom: none; }

.primary-col {
  border-right: 1px solid var(--rule);
  padding-right: 3rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-item {
  margin-bottom: 2.5rem;
}
.exp-item:last-child { margin-bottom: 0; }

.exp-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  margin-bottom: 0.25rem;
  gap: 1rem;
}

.exp-company {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.exp-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.exp-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-highlights li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 1.1rem;
  position: relative;
}
.exp-highlights li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-weight: 300;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-item { margin-bottom: 1.5rem; }
.edu-institution {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.edu-degree {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0.2rem 0;
}
.edu-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   RECOGNITION
   ============================================================ */
.recognition-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.recognition-list li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 1.1rem;
  position: relative;
}
.recognition-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.3em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-col {
  padding: 2.5rem 0 2.5rem 2.5rem;
}

.sidebar-section {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s ease both;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.skill-group {
  margin-bottom: 1.4rem;
}
.skill-group-name {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.skill-tag {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--cream);
  transition: padding-left 0.2s, color 0.2s;
  cursor: default;
}
.skill-tag:hover {
  padding-left: 0.4rem;
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.download-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.download-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section:nth-child(1) { animation-delay: 0.3s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.5s; }
.sidebar-section:nth-child(1) { animation-delay: 0.35s; }
.sidebar-section:nth-child(2) { animation-delay: 0.45s; }
.sidebar-section:nth-child(3) { animation-delay: 0.55s; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  body::before { display: none; }
  .site-header::after { display: none; }
  .download-btn { display: none; }
  .site-header, .summary-strip, .section, .sidebar-section {
    animation: none !important;
    opacity: 1 !important;
  }
  .main-content { grid-template-columns: 1fr 200px; }
  body { font-size: 0.9rem; }
  .wrapper { max-width: 100%; padding: 0 2rem; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 1.5cm 2cm; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .primary-col {
    border-right: none;
    padding-right: 0;
  }
  .sidebar-col {
    border-top: 1px solid var(--rule);
    padding: 2rem 0;
  }
  .header-inner {
    grid-template-columns: 1fr;
  }
  .header-contact {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
  }
  .site-header::after { display: none; }
  .site-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-item {
  margin-bottom: 1.25rem;
}
.cert-item:last-child { margin-bottom: 0; }

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.15rem;
}

.cert-issuer {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cert-name {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}

/* ============================================================
   LANGUAGE TAGS
   ============================================================ */
.lang-tag {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
}

.lang-name {
  font-size: 0.82rem;
  color: var(--ink);
}

.lang-level {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
}
