/* =========================
   TOKENS
========================= */
:root {
  --bg: #f0eee8;
  --surface: #e6e1d8;
  --surface-2: #dad4ca;
  --text: #111111;
  --muted: #67645e;
  --line: rgba(17, 17, 17, 0.16);
  --accent: #d43c2f;
  --header-bg: rgba(240, 238, 232, 0.88);
  --max: 1480px;
  --pad: clamp(18px, 2.5vw, 36px);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.75,.2,1);
}

html[data-theme="dark"] {
  --bg: #111111;
  --surface: #181818;
  --surface-2: #1e1e1e;
  --text: #eceae4;
  --muted: #a29e95;
  --line: rgba(236, 234, 228, 0.16);
  --accent: #f05244;
  --header-bg: rgba(17, 17, 17, 0.88);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

.mono {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.serif {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section-kicker {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 44px);
}
.section-kicker.no-gap { margin-bottom: 18px; }

.section-title {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .88;
  text-transform: uppercase;
}
.section-title--medium { font-size: clamp(42px, 5.2vw, 88px); }
.section-title--small { font-size: clamp(34px, 4vw, 64px); max-width: 12ch; }

.prose {
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.48;
}
.prose p { margin: 0 0 1.1em; }

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), backdrop-filter .25s var(--ease);
}
.site-header.is-scrolled {
  height: 62px;
  border-color: var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}
.brand {
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-name {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 15px;
  letter-spacing: -.02em;
}
.brand-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: clamp(18px, 2.3vw, 38px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding-block: 10px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 5px;
  height: 1px;
  background: var(--accent);
  transition: right .25s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.theme-toggle__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
html[data-theme="dark"] .theme-toggle__dot {
  background: var(--accent);
  transform: translateX(2px);
}

/* =========================
   HERO
========================= */
.hero {
  padding-top: clamp(26px, 4vw, 58px);
  padding-bottom: clamp(86px, 10vw, 130px);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: clamp(34px, 6vw, 84px);
}
.hero-stack {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-title {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(60px, 7vw, 106px);
  line-height: .88;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.hero-title span {
  display: block;
  white-space: nowrap;
}
.hero-subtitle {
  margin: 28px 0 0;
  width: 100%;
  max-width: 1000px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
  text-align: center;
}
.hero-subtitle__line {
  display: block;
}
.hero-subtitle__line--first {
  white-space: nowrap;
}
.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.55;
}
.hero-cta {
  margin-top: 28px;
}
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease);
  transform-origin: left;
}
.text-link:hover::after { transform: scaleX(.45); }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(4px, 4px); }
.hero-rule {
  margin-top: clamp(58px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}
/* =========================
   ABOUT
========================= */
.about {
  padding-top: clamp(70px, 10vw, 120px);
  padding-bottom: clamp(90px, 12vw, 150px);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(26px, 3vw, 52px);
}
.about-right {
  display: grid;
  gap: 34px;
}
.about-copy { max-width: 40ch; }
.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 6px;
}
.about-point {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.about-point span {
  display: inline-block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 10px;
}
.about-point p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* =========================
   SERVICES
========================= */
.services { padding-bottom: clamp(90px, 12vw, 150px); }
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.2fr) minmax(280px, .8fr) 30px;
  gap: 20px;
  align-items: start;
  min-height: 120px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.service-row:hover {
  padding-left: 10px;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.service-index {
  font-size: 10px;
  padding-top: 6px;
  color: var(--muted);
}
.service-row h3 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(26px, 3vw, 48px);
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.service-row p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  max-width: 38ch;
}
.service-arrow {
  justify-self: end;
  padding-top: 4px;
  font-size: 18px;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.service-row:hover .service-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

/* =========================
   PROJECTS
========================= */
.work { padding-bottom: clamp(100px, 12vw, 160px); }
.work-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 32px;
}
.work-head .section-kicker { grid-column: 1 / -1; margin-bottom: 10px; }
.work-support {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.5;
}
.carousel-controls {
  display: flex;
  gap: 10px;
}
.carousel-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.carousel-controls button:hover {
  background: var(--text);
  color: var(--bg);
}
.project-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 30vw);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 10px;
}
.project-carousel::-webkit-scrollbar { display: none; }

.project-card {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  outline: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  background-color: var(--surface);
}
.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 14px 28px rgba(0,0,0,.06);
}
.project-card__meta {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-size: 9px;
}
.project-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 20px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.30), transparent);
  color: #f6f3ed;
}
.project-card__body h3 {
  margin: 0 0 10px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: .93;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.project-card__body p {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.08;
  max-width: 18ch;
}

.cover-01 {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.12), transparent 18%),
    linear-gradient(160deg, #ee5949, #cf3427 62%, #911f17);
}
.cover-01::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 68%, rgba(255,255,255,.08) 68% 69%, transparent 69% 100%);
}
.cover-01::after {
  content: "I L H É U S";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: rgba(255,255,255,.68);
  letter-spacing: .24em;
}

.cover-02 {
  background:
    radial-gradient(circle at 74% 18%, rgba(162,124,90,.94) 0 10%, transparent 11%),
    radial-gradient(circle at 60% 72%, rgba(95,67,49,.58) 0 20%, transparent 21%),
    radial-gradient(circle at 30% 20%, rgba(152,114,83,.48) 0 8%, transparent 9%),
    linear-gradient(180deg, #171412, #0f0d0c);
}
.cover-02::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.10);
}

.cover-02 .project-card__meta,
.cover-04 .project-card__meta {
  color: rgba(255,255,255,.82);
}

.cover-03 {
  background:
    linear-gradient(rgba(0,0,0,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.10) 1px, transparent 1px),
    linear-gradient(150deg, #dedfd9, #cdd0ca);
  background-size: 48px 48px, 48px 48px, auto;
}
.cover-03::before {
  content: "V";
  position: absolute;
  right: 16px;
  top: 22px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 140px;
  line-height: 1;
  color: rgba(17,17,17,.08);
}
html[data-theme="dark"] .cover-03::before {
  color: rgba(17,17,17,.08);
}
.cover-03 .project-card__body {
  color: #fff;
}
.cover-03 .project-card__meta {
  color: #111;
}

.cover-04 {
  background:
    linear-gradient(135deg, #1b1b1b, #0f1012);
}
.cover-04::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 18px;
  height: 104px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 25%, rgba(255,255,255,.12) 25% calc(25% + 1px), transparent calc(25% + 1px) 50%, rgba(255,255,255,.12) 50% calc(50% + 1px), transparent calc(50% + 1px) 75%, rgba(255,255,255,.12) 75% calc(75% + 1px), transparent calc(75% + 1px));
}
.cover-04::after {
  content: none;
}

/* =========================
   EXPERIENCE
========================= */
.experience { padding-bottom: clamp(100px, 12vw, 160px); }
.experience-stack {
  display: grid;
  gap: 28px;
}
.experience-copy {
  width: 100%;
  max-width: none;
}
.highlight-word {
  display: inline-block;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.08em;
  letter-spacing: -.05em;
  color: var(--accent);
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials { padding-bottom: clamp(100px, 12vw, 160px); }
.testimonial-head { margin-bottom: 26px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.testimonial-card {
  margin: 0;
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.testimonial-card blockquote {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.08;
}
.testimonial-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}
.testimonial-card strong {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}
.testimonial-card .mono {
  color: var(--muted);
  font-size: 9px;
}

/* =========================
   CONTACT
========================= */
.contact { padding-bottom: clamp(80px, 9vw, 120px); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.contact-copy-block .section-title { max-width: 11ch; }
.contact-intro {
  margin: 18px 0 0;
  font-size: clamp(19px, 1.6vw, 27px);
  line-height: 1.38;
  max-width: 28ch;
}
.contact-actions {
  padding-top: 10px;
}
.contact-small {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 34ch;
}
.contact-links {
  border-top: 1px solid var(--line);
}
.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(24px, 2.5vw, 38px);
  text-transform: uppercase;
  transition: padding .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.contact-links a:hover {
  padding-inline: 10px;
  background: var(--text);
  color: var(--bg);
}
.contact-links a span:last-child {
  transition: transform .25s var(--ease);
}
.contact-links a:hover span:last-child {
  transform: translate(4px, -4px);
}

/* =========================
   FOOTER
========================= */
.footer {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 12px;
}
.footer .mono {
  font-size: 9px;
  color: var(--muted);
}

/* =========================
   MODAL
========================= */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.project-modal.is-open { display: block; }
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.project-modal__panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(760px, 92vw);
  height: 100%;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 60px);
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .48s var(--ease);
}
.project-modal.is-open .project-modal__panel { transform: translateX(0); }
.project-modal__close {
  position: sticky;
  top: 0;
  float: right;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 9px 11px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  z-index: 2;
}
.project-modal__meta {
  clear: both;
  padding-top: 100px;
  color: var(--muted);
  font-size: 9px;
}
.project-modal h2 {
  margin: 24px 0 18px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.project-modal__subtitle {
  margin: 0 0 32px;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.06;
}
.project-modal__body {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.project-modal__body p {
  margin: 0 0 1.05em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 9px;
}
.project-tags li::before {
  content: "•";
  color: var(--accent);
  margin-right: 7px;
}

/* =========================
   REVEAL
========================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .about-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .brand-role { display: none; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    width: min(100%, 760px);
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-title span {
    white-space: normal;
  }

  .service-row {
    grid-template-columns: 42px 1fr 24px;
  }
  .service-row p {
    grid-column: 2 / 4;
    max-width: 60ch;
  }

  .project-carousel {
    grid-auto-columns: 68vw;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 24px;
  }
}

@media (max-width: 640px) {
  :root { --pad: 16px; }

  .hero {
    padding-top: 20px;
    padding-bottom: 90px;
  }

  .hero-meta {
    margin-bottom: 24px;
  }

  .hero-stack {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(44px, 13.4vw, 68px);
  }

  .hero-subtitle {
    font-size: 22px;
    max-width: 28ch;
    margin-top: 22px;
  }

  .hero-subtitle__line--first {
    white-space: normal;
  }

  .hero-note {
    max-width: 30ch;
  }

  .project-carousel {
    grid-auto-columns: 86vw;
  }

  .project-card {
    min-height: 390px;
  }

  .project-card__body h3 {
    font-size: 30px;
  }

  .project-card__body p {
    font-size: 20px;
  }

  .project-modal__panel {
    width: 100%;
  }

  .contact-links a {
    min-height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


.experience .prose {
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.5;
}

.experience .prose p {
  max-width: none;
}


/* Experience width correction */
.experience-stack {
  width: 100%;
}

.experience-copy {
  width: 100%;
  max-width: none !important;
}

.experience-copy.prose {
  max-width: none !important;
}

.experience-copy.prose p {
  width: 100%;
  max-width: none !important;
}


/* Experience section refinement */
.experience-stack {
  width: min(100%, 1120px);
  margin: 0 auto;
  gap: 30px;
}

.experience .section-title {
  text-align: center;
}

.experience-copy {
  width: 100%;
  max-width: none !important;
  margin: 0 auto;
}

.experience-copy.prose {
  max-width: none !important;
}

.experience-copy.prose p {
  width: 100%;
  max-width: none !important;
}

.experience .prose {
  font-size: clamp(18px, 1.42vw, 24px);
  line-height: 1.52;
}


/* Experience paragraph alignment */
.experience-copy,
.experience-copy.prose,
.experience-copy.prose p {
  text-align: center;
}


/* Experience justified text, centered block */
.experience-copy,
.experience-copy.prose {
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.experience-copy.prose p {
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
}
