/* RGBbox � minimal studio */
:root {
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: #ececec;
  --paper: #ffffff;
  --white: #ffffff;
  --accent: #03a7ca;
  --max: 1200px;
  --nav-h: 88px;
  --font: "Jost", "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll; /* fallback: always reserve scrollbar gutter */
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  background: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* Inline content links — readable as links by default */
a.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}
a.text-link:hover { color: var(--accent); }
.muted a.text-link { color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: #fff; padding: 0.5rem 0.8rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 1.5rem, 1480px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  width: 168px;
  height: auto;
  shape-rendering: geometricPrecision;
}
.nav-end { display: flex; align-items: center; gap: 1.1rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.lang-switch {
  position: relative;
  margin-left: 0.35rem;
  flex-shrink: 0;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}
.lang-current::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-15%) rotate(45deg);
  opacity: 0.55;
}
.lang-switch.is-open .lang-current::after {
  transform: translateY(20%) rotate(225deg);
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: var(--muted);
}
.lang-menu a:hover,
.lang-menu a.is-active {
  background: #f4f4f4;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 16px; height: 1.5px;
  margin: 4px auto; background: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    z-index: 45;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.85rem 1rem; }
}

/* Hero — lead + CTA; portfolio grid carries visuals */
.hero {
  padding: 0;
}
.hero-top {
  width: min(100% - 2.5rem, var(--max));
  margin: 3.5rem auto 1rem;
}
.hero-lead {
  max-width: none;
  width: 100%;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff !important;
}
.btn-primary:hover {
  background: #222;
  color: #fff !important;
}
.btn-ghost {
  background: transparent;
  border-color: #d0d0d0;
  color: var(--ink) !important;
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink) !important;
}

/* Sections */
.section { padding: 5rem 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2,
.page-title {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-transform: none;
}
.section-head p,
.lede {
  max-width: 36rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.page-hero { padding: 3.25rem 0 1.75rem; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}
.filter-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 550;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* Portfolio grid � image-led, minimal meta */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 1.25rem;
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; gap: 2.25rem; }
}
.work-card {
  display: block;
  color: inherit;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.work-card.is-in { opacity: 1; transform: none; }
.work-card figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ececec;
  width: 100%;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s var(--ease);
}
.work-card:hover img { transform: scale(1.03); }
.work-card:hover { color: inherit; }
.work-card .meta { padding: 0.85rem 0 0.5rem; }
.work-card .cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.work-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Services — no cards, just list */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; gap: 1.5rem; }
}
.service {
  padding: 0;
  background: none;
  border: 0;
}
.services a.service {
  color: inherit;
  display: block;
}
.services a.service:hover { color: inherit; }
.services a.service:hover h3 { color: var(--accent); }
.services a.service h3 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}
.service h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 1.75rem 2.5rem;
  justify-content: start;
  margin: 0 0 3rem;
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: minmax(0, 200px); }
}
.person-card {
  display: block;
  color: inherit;
  max-width: 220px;
}
.person-card:hover { color: inherit; }
.person-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  background: #ececec;
}
.person-card .meta { padding: 0.75rem 0 0; }
.person-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.person-card span { color: var(--muted); font-size: 0.88rem; }

.team {
  display: grid;
  gap: 0.85rem;
}
a.person, .person {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: center;
  color: inherit;
  padding: 0.35rem 0;
}
a.person:hover { color: inherit; }
a.person:hover strong { color: var(--accent); }
.person img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  background: #ececec;
}
.person strong { display: block; font-weight: 600; letter-spacing: -0.02em; }
.person span { color: var(--muted); font-size: 0.88rem; }

.profile-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}
@media (max-width: 800px) {
  .profile-hero { grid-template-columns: 1fr; gap: 1.5rem; }
}
.profile-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  background: #ececec;
}
.profile-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}
.profile-role {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 1rem;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}
.profile-links a {
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.resume {
  max-width: 42rem;
  padding-bottom: 4rem;
}
.resume h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.resume h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.resume p, .resume li {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
.resume ul { margin: 0; padding-left: 1.1rem; }
.resume li + li { margin-top: 0.35rem; }
.resume .job-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.resume .job-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}
.prose { max-width: 40rem; font-size: 1.125rem; line-height: 1.65; }
.prose p + p { margin-top: 0.95rem; }
.prose h2, .prose h3 {
  letter-spacing: -0.03em;
  font-weight: 650;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 1rem 0 4rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.contact-card a {
  display: block;
  margin: 0.3rem 0;
  font-weight: 550;
}
.contact-card a:hover { color: var(--accent); }

.rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 700px) {
  .rates { grid-template-columns: 1fr; }
}
.rate {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.rate strong {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  margin-top: 0.25rem;
}

.project-hero { padding: 2rem 0 1rem; }
.project-hero .cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.project-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}
.project-cover {
  margin: 1.5rem 0 1.5rem;
  overflow: hidden;
  background: #f4f4f4;
}
.project-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
}
.gallery {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.gallery img {
  width: 100%;
  height: auto;
  background: #f4f4f4;
}

.work-card img,
.hero-visual img,
.person-card img,
.profile-photo {
  image-rendering: auto;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-meta { color: var(--muted); font-size: 0.9rem; }
.footer-meta a { font-weight: 550; color: var(--ink); }
.footer-meta a:hover { color: var(--accent); }

.muted { color: var(--muted); }
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
