:root {
  --background: #ffffff;
  --foreground: #1f1f1f;
  --muted: #6d6d6d;
  --border: #e4e4e4;
  --soft: #f7f7f7;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body { margin: 0; overflow-x: clip; background: var(--background); color: var(--foreground); font-family: var(--body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { color: inherit; font: inherit; }
::selection { background: var(--foreground); color: var(--background); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; transform: translateY(-160%); background: var(--foreground); color: white; padding: 9px 14px; font-size: 14px; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 48px), 1160px); margin-inline: auto; }
.container-narrow { max-width: 790px; }
.container-contact { max-width: 690px; text-align: center; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(0, 0, 0, .025); }
.header-shell { width: min(calc(100% - 48px), 1160px); min-height: 105px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wordmark { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: .2em; line-height: 1; text-transform: uppercase; }
.site-nav { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 31px; }
.site-nav > a:not(.social-icon) { position: relative; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .2em; line-height: 1; text-transform: uppercase; transition: color .2s ease; }
.site-nav > a:not(.social-icon)::after { content: ""; position: absolute; inset: auto 100% -8px 0; height: 1px; background: var(--foreground); transition: right .25s ease; }
.site-nav > a:not(.social-icon):hover, .site-nav > a:not(.social-icon).is-active { color: var(--foreground); }
.site-nav > a:not(.social-icon):hover::after, .site-nav > a:not(.social-icon).is-active::after { right: 0; }
.social-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--muted); transition: color .2s ease; }
.social-icon:hover { color: var(--foreground); }
.social-icon svg { width: 16px; fill: currentColor; }
.social-label { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.menu-toggle span:not(.sr-only) { width: 21px; height: 1px; display: block; margin: 6px auto; background: currentColor; transition: transform .25s ease; }

.hero { min-height: 100svh; padding: 160px 24px 80px; display: grid; place-items: center; text-align: center; }
.hero-inner { width: min(100%, 790px); }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 31px 0 0; font-family: var(--display); font-size: clamp(58px, 7vw, 88px); font-weight: 500; letter-spacing: -.025em; line-height: 1.02; }
.hero-copy { max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.button { min-height: 46px; padding: 12px 30px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--foreground); font-size: 12px; font-weight: 500; letter-spacing: .18em; line-height: 1; text-transform: uppercase; transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-solid { background: var(--foreground); color: var(--background); }
.button-solid:hover { opacity: .84; }
.button-outline { background: transparent; color: var(--foreground); }
.button-outline:hover { background: var(--foreground); color: var(--background); }
.button-icon svg { width: 17px; fill: currentColor; }

.skill-marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--soft); }
.marquee-track { width: max-content; display: flex; animation: marquee 42s linear infinite; }
.marquee-group { min-height: 52px; padding-inline: 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee-group span { color: #585858; font-size: 12px; font-weight: 500; letter-spacing: .19em; text-transform: uppercase; }
.marquee-group i { width: 25px; height: 1px; background: #d8d8d8; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding-block: 126px; scroll-margin-top: 105px; }
.section-muted { border-block: 1px solid var(--border); background: var(--soft); }
.section-title { margin: 0; font-family: var(--display); font-size: clamp(42px, 4.5vw, 55px); font-weight: 500; letter-spacing: .025em; line-height: 1.1; text-align: center; }
.section-intro > p { max-width: 580px; margin: 20px auto 0; color: var(--muted); text-align: center; }

.about-grid { margin-top: 66px; display: grid; grid-template-columns: minmax(240px, 4fr) 7fr; align-items: start; gap: clamp(52px, 7vw, 86px); }
.portrait-wrap { width: 100%; max-width: 240px; margin: 0 auto; }
.portrait-wrap img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 44%; }
.portrait-wrap figcaption { margin-top: 13px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.about-copy { padding-top: 4px; }
.about-copy h3 { margin-bottom: 25px; font-family: var(--display); font-size: clamp(30px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.about-copy p { max-width: 630px; margin-bottom: 15px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.skill-pills { margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.skill-pills li { padding: 6px 12px; border: 1px solid var(--border); color: #5e5e5e; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.stats-grid { margin-top: 82px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); background: var(--border); gap: 1px; }
.stats-grid > div { min-height: 155px; padding: 31px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--background); text-align: center; }
.stats-grid strong { font-family: var(--display); font-size: 52px; font-weight: 500; line-height: 1; }
.stats-grid span { margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .13em; line-height: 1.45; text-transform: uppercase; }

.experience-list { margin-top: 61px; border-top: 1px solid var(--border); }
.experience-item { padding-block: 40px; border-bottom: 1px solid var(--border); }
.meta-label { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.experience-item h3, .project-card h3, .service-grid h3 { margin-bottom: 4px; font-family: var(--display); font-size: 31px; font-weight: 500; line-height: 1.2; }
.experience-item .company { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.experience-item > p:not(.meta-label):not(.company) { margin-bottom: 17px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.inline-tags, .project-tags { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; list-style: none; }
.inline-tags li, .project-tags li { color: #555; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.inline-tags li:not(:last-child)::after, .project-tags li:not(:last-child)::after { content: "·"; margin-inline: 10px; color: #c6c6c6; }

.project-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 32px; }
.project-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(31, 31, 31, .1); transition: transform .45s ease, filter .45s ease; }
.project-card:hover .project-media { transform: scale(1.008); filter: saturate(1.04); }
.project-media::after { content: ""; position: absolute; inset: 24% -10% auto; height: 1px; background: currentColor; opacity: .18; transform: rotate(-10deg); }
.project-media .media-kicker, .project-media .media-note { position: relative; z-index: 1; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.project-media strong { position: relative; z-index: 1; align-self: center; font-family: var(--display); font-size: clamp(54px, 6vw, 80px); font-weight: 500; letter-spacing: -.04em; line-height: .82; text-align: center; }
.media-loumar { background: #254e45; color: #f8f6f0; }
.media-meetingu { background: #153b38; color: #f7f1e7; }
.media-famora { background: #efe0d8; color: #563548; }
.media-vaulty { background: #e9e1b8; color: #18372f; }
.media-angloma { background: #17243d; color: #f5f5f7; }
.media-aura { background: #dba660; color: #27201c; }
.media-aura strong { letter-spacing: .12em; }
.media-sweater { background: #cdd8e1; color: #17243d; }
.media-sweater strong { font-size: clamp(50px, 5.5vw, 76px); }
.project-card > .meta-label { margin-top: 20px; }
.project-card h3 { margin-top: 0; }
.project-card h3 a span { display: inline-block; font-family: var(--body); font-size: .5em; transition: transform .2s ease; }
.project-card h3 a:hover span { transform: translate(3px, -3px); }
.project-card > p:not(.meta-label) { margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.78; }
.project-tags { margin-top: 16px; }
.project-tags li { color: #777; }
.projects-more { margin-top: 66px; text-align: center; }

.services-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.services-heading .section-title { text-align: left; }
.services-heading > a { color: var(--muted); border-bottom: 1px solid transparent; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease; }
.services-heading > a:hover { color: var(--foreground); border-color: currentColor; }
.service-grid { margin-top: 53px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); background: var(--border); gap: 1px; }
.service-grid article { min-height: 250px; padding: 38px 32px; background: var(--background); }
.service-grid h3 { margin-top: 0; font-size: 26px; }
.service-grid p { margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.78; }

.contact p { max-width: 525px; margin: 24px auto 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.contact-button { margin-top: 37px; padding-inline: 40px; }
.contact-links { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 32px; }
.contact-links a { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: color .2s ease; }
.contact-links a:hover { color: var(--foreground); }
.site-footer { border-top: 1px solid var(--border); padding-block: 47px; text-align: center; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer p + p { margin-top: 3px; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .header-shell { min-height: 76px; flex-direction: row; justify-content: space-between; }
  .wordmark { font-size: 22px; }
  .menu-toggle { position: relative; z-index: 62; display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: 60; margin: 0; padding: 124px 32px 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; background: var(--background); transform: translateY(-105%); transition: transform .42s cubic-bezier(.7, 0, .2, 1); }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav > a:not(.social-icon) { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--foreground); font-family: var(--display); font-size: 33px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
  .site-nav > a:not(.social-icon)::after { display: none; }
  .social-icon { width: auto; height: auto; margin-top: 26px; display: inline-flex; gap: 9px; }
  .social-icon + .social-icon { margin-top: 14px; }
  .social-label { display: inline; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
  .hero { padding-top: 130px; }
  .about-grid { grid-template-columns: minmax(220px, 4fr) 7fr; gap: 45px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container, .header-shell { width: min(calc(100% - 32px), 1160px); }
  .wordmark { max-width: 230px; font-size: 19px; letter-spacing: .16em; }
  .hero { min-height: 88svh; padding: 130px 20px 65px; }
  .eyebrow { font-size: 11px; letter-spacing: .22em; line-height: 1.8; }
  h1 { margin-top: 25px; font-size: clamp(50px, 16vw, 68px); }
  .hero-copy { font-size: 17px; }
  .hero-actions { margin-top: 36px; flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .marquee-group { min-height: 48px; gap: 20px; }
  .section { padding-block: 91px; }
  .section-title { font-size: 44px; }
  .about-grid { margin-top: 48px; grid-template-columns: 1fr; gap: 42px; }
  .portrait-wrap { max-width: 220px; }
  .portrait-wrap img { aspect-ratio: 4 / 5; }
  .about-copy h3 { font-size: 32px; }
  .about-copy p { font-size: 16px; }
  .stats-grid { margin-top: 60px; }
  .stats-grid > div { min-height: 137px; padding: 25px 12px; }
  .stats-grid strong { font-size: 44px; }
  .stats-grid span { font-size: 11px; letter-spacing: .1em; }
  .experience-list { margin-top: 47px; }
  .experience-item { padding-block: 32px; }
  .experience-item h3 { font-size: 28px; }
  .project-grid { margin-top: 51px; grid-template-columns: 1fr; gap: 64px; }
  .project-media { padding: 22px; }
  .project-media strong { font-size: clamp(48px, 15vw, 68px); }
  .media-sweater strong { font-size: clamp(50px, 16vw, 72px); }
  .projects-more .button { width: auto; }
  .services-heading { align-items: center; flex-direction: column; text-align: center; }
  .services-heading .section-title { text-align: center; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 235px; }
  .contact-links { flex-direction: column; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* A compact language selector remains available outside the mobile menu. */
.header-shell { position: relative; }
.language-control { position: absolute; right: 0; top: 18px; }
.language-control select { max-width: 120px; min-height: 40px; padding: 6px 23px 6px 10px; border: 1px solid var(--border); border-radius: 0; background: white; color: var(--foreground); font: 13px var(--body); cursor: pointer; }
.language-control select:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }
.hero { min-height: 72svh; }
.hero .eyebrow { line-height: 1.9; }
.hero-copy { margin-top: 30px; }
.site-nav { gap: 23px; }
@media (max-width: 960px) {
  .header-shell { flex-wrap: wrap; padding-block: 15px; column-gap: 12px; }
  .language-control { position: static; margin-left: auto; z-index: 62; }
  .menu-toggle { flex-shrink: 0; }
  .site-nav { overflow-y: auto; justify-content: flex-start; gap: 0; }
}
@media (max-width: 480px) {
  .header-shell { justify-content: flex-start; }
  .wordmark { flex-basis: 100%; max-width: none; margin-bottom: 12px; text-align: center; }
  .language-control { margin-left: 0; }
  .menu-toggle { margin-left: auto; }
  .hero { min-height: 72svh; padding-top: 170px; }
  .site-nav { padding-top: 145px; }
}
