@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-deep: #ebe5da;
  --sand: #d8c7ae;
  --stone: #746255;
  --stone-dark: #53483e;
  --ink: #282622;
  --muted: #817a70;
  --line: #d7d0c5;
  --clay: #c17857;
  --olive: #828477;
  --white: #fbf9f5;
  --font: 'Noto Kufi Arabic', 'Arial', sans-serif;
  --shell: min(1220px, calc(100% - 88px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.9; }
body.is-locked { overflow: hidden; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { background: var(--sand); color: var(--ink); }

.site-header { width: var(--shell); height: 86px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 39px; height: 39px; fill: none; stroke: var(--stone); stroke-width: 1.4; stroke-linecap: round; }
.brand__mark circle { fill: var(--clay); stroke: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.45; }
.brand__text strong { font-size: 17px; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.brand__text small { color: var(--muted); font-size: 9px; letter-spacing: .03em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(25px, 4vw, 58px); color: #615b52; font-size: 12px; white-space: nowrap; }
.main-nav a { transition: color .25s ease; }
.main-nav a:hover { color: var(--clay); }

.section-shell { width: var(--shell); margin-inline: auto; }
.hero { min-height: 625px; position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(36px, 7vw, 90px); padding-block: 54px 84px; }
.hero__copy { max-width: 505px; padding-top: 12px; }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--stone); font-size: 10px; letter-spacing: .025em; white-space: nowrap; }
.eyebrow__line { width: 26px; height: 1px; background: var(--clay); }
.profile-kicker { margin: 0 0 14px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.profile-kicker span { color: var(--clay); padding-inline: 3px; }
.hero h1 { max-width: 500px; margin: 0; color: var(--stone-dark); font-size: clamp(36px, 4.15vw, 60px); font-weight: 500; line-height: 1.55; letter-spacing: -.055em; }
.hero__intro { max-width: 385px; margin: 13px 0 25px; color: var(--muted); font-size: 12px; line-height: 2.2; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 9px 17px; border: 1px solid transparent; border-radius: 2px; font-size: 10px; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--stone); color: var(--white); }
.button--primary:hover { background: var(--stone-dark); }
.button--outline { border-color: #c9c0b2; color: var(--stone-dark); }
.button--outline:hover { border-color: var(--stone); background: rgba(216, 199, 174, .23); }
.button__icon { color: var(--sand); font-size: 15px; line-height: 1; }
.hero__meta { display: flex; align-items: center; gap: 8px; margin-top: 32px; color: #948b7f; font-size: 9px; }
.meta-mark { color: var(--clay); font-size: 15px; }
.hero__visual { margin: 0; }
.hero__image-frame { height: clamp(370px, 41vw, 510px); position: relative; overflow: hidden; background: var(--paper-deep); }
.hero__image-frame::after { position: absolute; inset: 40% 0 0; content: ''; background: linear-gradient(transparent, rgba(31, 28, 23, .46)); pointer-events: none; }
.hero__image-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; animation: reveal-image .9s var(--ease) both; }
.image-index { position: absolute; z-index: 1; top: 18px; inset-inline-start: 18px; color: var(--white); direction: ltr; font-size: 11px; }
.image-index i { padding-inline: 6px; color: #ddd1c2; font-style: normal; }
.hero__caption { position: absolute; z-index: 1; inset-inline: 22px; bottom: 20px; display: flex; align-items: center; gap: 16px; color: #fff; font-size: 10px; }
.caption-rule { width: 45px; height: 1px; background: rgba(255,255,255,.75); }
.hero__visual figcaption { margin-top: 7px; color: #948b7f; font-size: 9px; }
.hero__side-note { position: absolute; inset-inline-end: -34px; top: 46%; display: flex; align-items: center; gap: 12px; color: #9a9185; font-size: 8px; direction: ltr; transform: rotate(-90deg) translateX(50%); transform-origin: right center; }
.side-note__rule { width: 34px; height: 1px; background: var(--clay); }

.intro-strip { min-height: 123px; display: grid; grid-template-columns: 1fr 2.5fr auto; align-items: center; gap: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-number { color: var(--muted); font-size: 9px; }
.intro-strip p { margin: 0; color: var(--stone-dark); font-size: clamp(15px, 1.7vw, 21px); font-weight: 400; }
.intro-strip em { color: var(--clay); font-style: normal; }
.strip-spark { color: var(--clay); font-size: 21px; }

.moodboards { padding-block: 68px 78px; border-bottom: 1px solid var(--line); }
.moodboards .section-heading { margin-bottom: 28px; }
.moodboard-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 24px 18px; }
.moodboard-card { min-width: 0; cursor: zoom-in; }
.moodboard-visual { width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 8px; background: var(--white); }
.moodboard-visual img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; transition: filter .4s ease; }
.moodboard-visual:hover img { transform: none; filter: brightness(.97); }
.moodboard-meta { align-items: start; gap: 8px; padding-top: 10px; }
.moodboard-meta h3 { max-width: 240px; font-size: 11px; line-height: 1.9; }
.moodboard-meta .work-category { font-size: 8px; }

.works { padding-block: 114px 124px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 47px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2, .contact-intro h2 { margin: 0; color: var(--stone-dark); font-size: clamp(31px, 3.4vw, 45px); font-weight: 500; line-height: 1.65; letter-spacing: -.04em; }
.section-heading__note { margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 2.1; }
.mobile-break { display: none; }
.gallery-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.gallery-tab { min-height: 46px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); background: rgba(251, 249, 245, .45); color: #777065; font-size: 10px; text-decoration: none; transition: background .2s ease, border .2s ease, color .2s ease; }
.gallery-tab span { color: #aa9b89; direction: ltr; font: 9px Arial, sans-serif; }
.gallery-tab:hover { border-color: #c9bba8; background: #eee9df; color: var(--stone-dark); }
.gallery-panel { padding-top: 31px; scroll-margin-top: 86px; }
.gallery-panel + .gallery-panel { margin-top: 58px; padding-top: 38px; border-top: 1px solid var(--line); }
.work-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 21px; }
.work-section-heading__title { display: flex; align-items: center; gap: 16px; }
.work-section-heading__title > div { display: grid; gap: 3px; }
.work-section-heading__title h3 { margin: 0; color: var(--stone-dark); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.55; }
.work-section-index { color: var(--clay); direction: ltr; font: 10px Arial, sans-serif; letter-spacing: .05em; }
.work-section-heading > p { max-width: 370px; margin: 0 0 4px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.final-gallery { display: grid; grid-template-columns: 1.08fr .88fr; gap: 48px 30px; align-items: start; }
.work-card, .technical-card { min-width: 0; cursor: zoom-in; }
.work-card--large { padding-top: 57px; }
.work-card--tall { margin-inline-start: 28px; }
.work-card--offset { padding-top: 27px; }
.work-visual { width: 100%; min-height: 200px; position: relative; display: block; overflow: hidden; padding: 0; border: 0; background: var(--paper-deep); cursor: zoom-in; text-align: start; }
.work-visual img { width: 100%; height: 100%; min-height: 260px; display: block; object-fit: cover; transition: transform .7s var(--ease), filter .5s ease; }
.work-card--large .work-visual img { min-height: 392px; }
.work-card--tall .work-visual img { min-height: 366px; }
.work-card--offset .work-visual img { min-height: 315px; }
.moodboard-visual { min-height: 0; aspect-ratio: 1 / 1; padding: 8px; }
.moodboard-visual img { height: 100%; min-height: 0; object-fit: contain; }
.work-visual:hover img { transform: scale(1.035); }
.visual-expand { width: 36px; height: 36px; position: absolute; z-index: 1; inset-inline-start: 13px; bottom: 13px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(42, 38, 32, .22); color: #fff; font-size: 16px; backdrop-filter: blur(5px); transition: background .2s ease, transform .2s ease; }
.work-visual:hover .visual-expand { background: var(--stone); transform: rotate(45deg); }
.work-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.work-category { display: block; color: #988d7e; font-size: 9px; }
.work-meta h3, .tour-caption h3, .technical-caption h3 { margin: 3px 0 0; color: var(--stone-dark); font-size: 14px; font-weight: 500; }
.moodboard-card:hover .moodboard-meta h3, .work-card:hover .work-meta h3, .technical-card:hover .technical-caption h3 { color: var(--stone); }
.work-number { color: #9b9183; direction: ltr; font: 10px Arial, sans-serif; }

.tour-card { background: #e8e1d5; }
.panorama-stage { height: min(54vw, 470px); min-height: 270px; position: relative; overflow: hidden; background: #c4b9a8; touch-action: pan-y; }
.panorama-image { width: 100%; height: 100%; background-image: url('/manus-storage/project-residence_c352a0a1.jpg'); background-repeat: no-repeat; background-position: 50% center; background-size: 190% auto; cursor: grab; transition: filter .2s ease; }
.panorama-image:active { cursor: grabbing; }
.panorama-stage::after { position: absolute; inset: 0; content: ''; border: 1px solid rgba(255,255,255,.5); pointer-events: none; }
.panorama-hint { position: absolute; z-index: 1; bottom: 19px; inset-inline-start: 19px; display: flex; align-items: center; gap: 8px; padding: 6px 11px; background: rgba(36, 34, 29, .52); color: #fff; font-size: 9px; }
.panorama-hint span { font-size: 16px; }
.tour-stamp { position: absolute; z-index: 1; top: 18px; inset-inline-end: 20px; display: grid; place-items: center; width: 61px; height: 61px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff; font: 14px Arial, sans-serif; }
.tour-stamp i { margin-top: -18px; font-size: 6px; font-style: normal; letter-spacing: .08em; }
.tour-caption { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 19px 22px 21px; }
.tour-caption p { max-width: 425px; margin: 0; color: var(--muted); font-size: 9px; line-height: 2; }

.technical-card { border: 1px solid var(--line); background: #eee9df; }
.technical-visual { min-height: 290px; aspect-ratio: 1.8 / 1; background: #f4f0e8; }
.technical-visual svg { width: 100%; height: 100%; min-height: 290px; display: block; }
.technical-caption { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-top: 1px solid var(--line); }
.drawing-scale { color: #91887d; font: 9px Arial, sans-serif; direction: ltr; }

.contact-section { min-height: 480px; position: relative; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 60px; padding-block: 80px 91px; border-top: 1px solid var(--line); }
.contact-intro { align-self: center; }
.contact-intro .eyebrow { margin-bottom: 17px; }
.contact-intro h2 { font-size: clamp(36px, 4vw, 53px); line-height: 1.6; }
.contact-intro > p:not(.eyebrow) { margin: 10px 0 22px; color: var(--muted); font-size: 11px; }
.vcard-button { min-height: 42px; }
.vcard-button > span { color: var(--sand); font-size: 15px; }
.contact-card { padding: 23px 28px 22px; border: 1px solid var(--line); background: rgba(251, 249, 245, .45); }
.contact-card__top { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.contact-card__mark { color: var(--clay); font-size: 14px; }
.contact-row { min-height: 69px; display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid #e1dbd1; transition: padding .2s ease, color .2s ease; }
.contact-row:hover { padding-inline: 4px; color: var(--clay); }
.contact-row__icon { color: #a39481; direction: ltr; font: 9px Arial, sans-serif; }
.contact-row > span:nth-child(2) { display: grid; }
.contact-row small { color: #9a9081; font-size: 8px; }
.contact-row strong { color: var(--stone-dark); font-size: 10px; font-weight: 500; }
.contact-row__arrow { color: var(--clay); font-size: 15px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px 21px; padding-top: 18px; }
.social-links a { color: var(--stone); font-size: 9px; direction: ltr; }
.social-links a span { color: var(--clay); }
.social-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-footer { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #938a7e; font-size: 8px; }
.brand--footer { gap: 0; color: var(--stone); }
.brand--footer .brand__text strong { font-size: 14px; }
.brand--footer .brand__text small { font-size: 8px; }
.site-footer p { margin: 0; }
.site-footer > span { direction: ltr; }

.lightbox { position: fixed; z-index: 20; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 52px); padding: 54px 42px; background: rgba(34, 31, 27, .94); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__content { max-width: min(82vw, 1040px); max-height: 82vh; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.lightbox__visual { width: 100%; max-height: 72vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox__visual img, .lightbox__visual svg { max-width: 100%; max-height: 72vh; object-fit: contain; }
.lightbox__caption { align-self: stretch; color: #eee8de; }
.lightbox__caption span { color: #c9b89f; font-size: 9px; }
.lightbox__caption h2 { margin: 2px 0 0; font-size: 15px; font-weight: 400; }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.15); }
.lightbox__close { top: 20px; inset-inline-end: 23px; width: 42px; height: 42px; font-size: 25px; }
.lightbox__nav { width: 43px; height: 43px; font-size: 18px; }
.lightbox__nav--prev { inset-inline-start: 32px; }
.lightbox__nav--next { inset-inline-end: 32px; }
.toast { position: fixed; z-index: 30; right: 50%; bottom: 26px; max-width: calc(100% - 36px); padding: 10px 17px; background: var(--stone-dark); color: #fff; font-size: 10px; opacity: 0; pointer-events: none; transform: translate(50%, 8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }

@keyframes reveal-image { from { opacity: .65; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) { :root { --shell: min(1320px, calc(100% - 120px)); } }
@media (max-width: 950px) {
  :root { --shell: min(100% - 48px, 760px); }
  .site-header { height: 74px; }
  .hero { min-height: 0; grid-template-columns: .92fr 1.08fr; gap: 28px; padding-block: 48px 64px; }
  .hero__image-frame { height: 415px; }
  .hero h1 { font-size: clamp(34px, 5.2vw, 48px); }
  .hero__side-note { display: none; }
  .final-gallery { gap: 38px 22px; }
  .moodboard-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-card--large .work-visual img { min-height: 330px; }
  .work-card--tall .work-visual img { min-height: 320px; }
  .contact-section { gap: 32px; }
}
@media (max-width: 640px) {
  :root { --shell: calc(100% - 36px); }
  html { scroll-padding-top: 70px; }
  .site-header { height: 67px; }
  .brand { gap: 7px; }
  .brand__mark { width: 33px; height: 33px; }
  .brand__text strong { font-size: 15px; }
  .main-nav { gap: 8px; font-size: 8px; }
  .main-nav a[href="#about"] { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding-block: 38px 49px; }
  .hero__copy { order: 1; max-width: none; padding-top: 0; }
  .hero__visual { order: 2; }
  .hero__image-frame { height: min(92vw, 400px); }
  .eyebrow { margin-bottom: 15px; font-size: 9px; }
  .profile-kicker { margin-bottom: 8px; font-size: 9px; }
  .hero h1 { font-size: clamp(33px, 9vw, 43px); line-height: 1.55; }
  .hero__intro { max-width: 100%; margin: 9px 0 17px; font-size: 10px; }
  .button { min-height: 41px; padding: 8px 12px; font-size: 9px; }
  .hero__meta { margin-top: 19px; font-size: 8px; }
  .hero__visual figcaption { font-size: 8px; }
  .intro-strip { min-height: 100px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .strip-number { font-size: 8px; }
  .intro-strip p { font-size: 13px; line-height: 1.9; }
  .strip-spark { font-size: 16px; }
  .moodboards { padding-block: 48px 58px; }
  .moodboards .section-heading { margin-bottom: 18px; }
  .moodboard-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .moodboard-meta { padding-top: 7px; }
  .moodboard-meta .work-category { font-size: 7px; }
  .moodboard-meta h3 { font-size: 9px; }
  .works { padding-block: 76px 81px; }
  .section-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 24px; }
  .section-heading h2 { font-size: 31px; line-height: 1.55; }
  .section-heading__note { font-size: 9px; }
  .mobile-break { display: block; }
  .gallery-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0 0 16px; }
  .gallery-tab { min-height: 43px; padding: 8px 9px; gap: 7px; font-size: 8px; white-space: normal; }
  .gallery-panel { padding-top: 23px; }
  .gallery-panel + .gallery-panel { margin-top: 38px; padding-top: 28px; }
  .work-section-heading { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  .work-section-heading__title { gap: 12px; }
  .work-section-heading__title h3 { font-size: 21px; }
  .work-section-heading > p { font-size: 9px; }
  .final-gallery { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .work-card--large, .work-card--offset { padding-top: 0; }
  .work-card--tall { margin-inline-start: 0; }
  .work-visual { min-height: 180px; }
  .work-visual img, .work-card--large .work-visual img, .work-card--tall .work-visual img, .work-card--offset .work-visual img { min-height: 0; height: clamp(190px, 58vw, 285px); }
  .work-card--large .work-visual img { height: clamp(225px, 69vw, 320px); }
  .moodboard-visual { min-height: 0; aspect-ratio: 1 / 1; }
  .moodboard-visual img { height: 100%; min-height: 0; object-fit: contain; }
  .work-meta { padding-top: 8px; }
  .work-category { font-size: 7px; }
  .work-meta h3 { font-size: 10px; }
  .work-number { font-size: 8px; }
  .visual-expand { width: 30px; height: 30px; inset-inline-start: 8px; bottom: 8px; font-size: 13px; }
  .panorama-stage { height: 62vw; min-height: 240px; }
  .tour-caption { align-items: start; flex-direction: column; gap: 8px; padding: 14px; }
  .tour-caption h3, .technical-caption h3 { font-size: 11px; }
  .tour-caption p { font-size: 8px; }
  .technical-visual { aspect-ratio: 1.25 / 1; min-height: 235px; }
  .technical-visual svg { min-height: 235px; }
  .technical-caption { align-items: start; flex-direction: column; gap: 7px; padding: 13px; }
  .contact-section { min-height: 0; grid-template-columns: 1fr; gap: 26px; padding-block: 65px 77px; }
  .contact-intro h2 { font-size: 38px; }
  .contact-card { padding: 16px 17px; }
  .contact-row { min-height: 63px; }
  .site-footer { min-height: 75px; gap: 7px; font-size: 7px; }
  .site-footer p { display: none; }
  .lightbox { gap: 7px; padding: 48px 14px; }
  .lightbox__content { max-width: calc(100vw - 68px); max-height: 80vh; }
  .lightbox__visual img, .lightbox__visual svg { max-width: 100%; max-height: 66vh; }
  .lightbox__nav { width: 32px; height: 32px; font-size: 13px; }
  .lightbox__nav--prev { inset-inline-start: 5px; }
  .lightbox__nav--next { inset-inline-end: 5px; }
  .lightbox__close { top: 10px; inset-inline-end: 10px; width: 35px; height: 35px; }
}

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


/* Language switch */
.language-toggle {
  min-width: 43px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--stone-dark);
  font: 600 10px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.language-toggle:hover { border-color: var(--stone); background: rgba(216, 199, 174, .24); }
.language-toggle span { color: var(--clay); }
html[lang="en"] body { font-family: 'DM Sans', Arial, sans-serif; line-height: 1.75; }
html[lang="en"] .eyebrow, html[lang="en"] .work-category { letter-spacing: .06em; }
html[lang="en"] .profile-kicker, html[lang="en"] .site-footer { letter-spacing: .01em; }

/* Real shared 360-degree tours */
.tour-viewer {
  height: min(58vw, 570px);
  min-height: 310px;
  position: relative;
  overflow: hidden;
  background: #e8e1d5;
}
.tour-viewer iframe { width: 100%; height: 100%; min-height: 310px; display: block; border: 0; background: #e8e1d5; }
.tour-loading {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #e8e1d5;
  color: var(--stone-dark);
  font-size: 11px;
  text-align: center;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility .3s ease;
}
.tour-loading.is-hidden { opacity: 0; visibility: hidden; }
.tour-loading__mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--stone); border-radius: 50%; color: var(--stone); font: 12px 'DM Sans', sans-serif; }
.tour-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.tour-projects { display: flex; flex-wrap: wrap; gap: 7px; }
.tour-project { min-height: 34px; padding: 6px 12px; border: 1px solid #cfc5b7; background: transparent; color: var(--stone-dark); font-size: 9px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.tour-project:hover { border-color: var(--stone); }
.tour-project.is-active { border-color: var(--stone); background: var(--stone); color: #fff; }
.tour-open { display: inline-flex; align-items: center; gap: 9px; flex: none; border-bottom: 1px solid var(--stone); color: var(--stone-dark); font-size: 9px; }
.tour-open span:last-child { color: var(--clay); font-size: 14px; }

/* Technical drawing previews from the supplied PDFs */
.technical-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 26px 22px; }
.technical-visual { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.65 / 1; min-height: 250px; background: #fff; cursor: zoom-in; }
.technical-visual img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; object-position: center; background: #fff; }
.technical-visual:hover img { transform: scale(1.015); }
.gallery-tab bdi { direction: ltr; white-space: nowrap; }
.shop-card { max-width: 860px; margin-inline: auto; }
.shop-visual { aspect-ratio: 1.55 / 1; }
.shop-gallery { margin-top: 22px; }
.shop-gallery .shop-card { max-width: none; margin: 0; }
.shop-gallery .shop-visual { aspect-ratio: 1 / 1; min-height: 300px; padding: 12px; }
.shop-gallery .technical-caption { min-height: 67px; }
.contact-row strong { direction: ltr; text-align: start; unicode-bidi: isolate; }

@media (max-width: 950px) {
  .tour-viewer { height: 54vw; min-height: 290px; }
  .technical-gallery { gap: 20px 16px; }
}
@media (max-width: 640px) {
  .tour-viewer { height: 62vw; min-height: 250px; }
  .tour-viewer iframe { min-height: 250px; }
  .tour-controls { align-items: stretch; flex-direction: column; gap: 12px; padding: 12px; }
  .tour-projects { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .tour-project { flex: 0 0 auto; padding-inline: 10px; }
  .tour-open { align-self: flex-start; }
  .technical-gallery { grid-template-columns: 1fr; gap: 18px; }
  .technical-visual { aspect-ratio: 1.35 / 1; min-height: 220px; }
  .shop-visual { aspect-ratio: 1.25 / 1; }
  .shop-gallery .shop-visual { aspect-ratio: 1 / 1; min-height: 280px; padding: 8px; }
}


/* Portfolio film and readability refinements */
:root {
  --muted: #655d53;
  --clay: #925035;
}

.reel-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
  padding-block: 66px 72px;
  border-bottom: 1px solid var(--line);
}
.reel-copy { max-width: 560px; }
.reel-copy .eyebrow { margin-bottom: 15px; }
.reel-copy h2 {
  max-width: 540px;
  margin: 0;
  color: var(--stone-dark);
  font-size: clamp(31px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.04em;
}
.reel-copy > p:not(.eyebrow) {
  max-width: 465px;
  margin: 15px 0 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.1;
}
.reel-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 21px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reel-sequence li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stone-dark);
  font-size: 11px;
}
.reel-sequence li span {
  color: var(--clay);
  direction: ltr;
  font: 10px 'DM Sans', Arial, sans-serif;
}
.reel-sequence b { font-weight: 500; }
.reel-figure { width: min(100%, 250px); justify-self: center; margin: 0; }
.reel-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  box-shadow: 0 18px 48px rgba(48, 40, 31, .12);
}
.reel-video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--paper-deep);
  object-fit: contain;
}
.reel-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 10px; text-align: center; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Darker text tones keep the warm palette while meeting readable contrast on ivory surfaces. */
.hero__meta,
.hero__visual figcaption,
.hero__side-note,
.site-footer { color: #655d53; }
.gallery-tab,
.gallery-tab span,
.work-category,
.work-number,
.drawing-scale,
.contact-row__icon,
.contact-row small { color: #695e52; }
.contact-row small { font-size: 9px; }
.site-footer { font-size: 9px; }

@media (max-width: 950px) {
  .reel-section {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 225px);
    gap: 26px;
    padding-block: 56px 62px;
  }
  .reel-copy h2 { font-size: clamp(30px, 4vw, 39px); }
}

@media (max-width: 640px) {
  .main-nav { gap: 8px; font-size: 9px; }
  .profile-kicker { font-size: 10px; }
  .hero__intro { font-size: 11px; }
  .button { font-size: 10px; }
  .hero__meta, .hero__visual figcaption { font-size: 9px; }
  .reel-section { grid-template-columns: 1fr; gap: 16px; padding-block: 42px 50px; }
  .reel-copy h2 { font-size: 31px; line-height: 1.55; }
  .reel-copy > p:not(.eyebrow) { margin: 10px 0 17px; font-size: 11px; }
  .reel-sequence { gap: 8px 13px; }
  .reel-sequence li { gap: 6px; font-size: 10px; }
  .reel-figure { width: min(42vw, 165px); }
  .reel-figure figcaption { font-size: 9px; }
  .moodboard-meta .work-category { font-size: 8px; }
  .moodboard-meta h3 { font-size: 10px; }
  .section-heading__note { font-size: 10px; }
  .gallery-tab { font-size: 9px; }
  .work-category { font-size: 8px; }
  .work-meta h3 { font-size: 11px; }
  .work-number { font-size: 9px; }
  .tour-caption p { font-size: 9px; }
  .site-footer { font-size: 8px; }
}


@media (max-width: 640px) {
  .site-header {
    height: auto;
    min-height: 92px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    gap: 8px 14px;
    padding-block: 9px 8px;
  }
  .brand { order: 1; }
  .language-toggle {
    order: 2;
    min-width: 46px;
    min-height: 36px;
    gap: 4px;
    padding: 5px 9px;
    font-size: 10px;
  }
  .language-toggle span { font-size: 10px; }
  .main-nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: space-between;
    gap: 7px;
    min-height: 28px;
    font-size: 10px;
  }
}
