@font-face {
  font-family: "Portfolio Serif";
  src: url("/fonts/editorial.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Portfolio Serif";
  src: url("/fonts/editorial-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Portfolio Sans";
  src: url("/fonts/interface.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f8f2e9;
  --ink: #1a1916;
  --muted: #5e5850;
  --line: #dfd5c7;
  --accent: #d44a2b;
  --pad: clamp(1.25rem, 4.2vw, 5rem);
  --serif: "Portfolio Serif", "Times New Roman", serif;
  --sans: "Portfolio Sans", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b63a24; outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: #f3b59f; color: #1b1815; }
.skip { position: fixed; left: 1rem; top: -8rem; z-index: 20; background: white; padding: .7rem 1.1rem; }
.skip:focus { top: .6rem; }
.icon { display: inline-block; width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.arrow { width: .95rem; height: .95rem; stroke-width: 1.8; transition: transform .24s var(--ease); }
.site-header { position: sticky; top: 0; z-index: 10; min-height: clamp(62px,5.45vw,83px); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .55rem var(--pad); background: #f8f2e9f5; border-bottom: 1px solid #e2d9cd88; }
.brand { font-size: clamp(.85rem,1.1vw,1.1rem); font-weight: 700; letter-spacing: -.058em; line-height: 1; display: inline-flex; align-items: flex-start; white-space: nowrap; }
.brand b { margin: 0 0 0 .14em; color: var(--accent); font-size: .9em; }
.nav, .nav-actions, .hero-links, .contact-actions { display: flex; align-items: center; }
.nav { gap: clamp(1.1rem,2.45vw,2.6rem); }
.nav a, .locale, .menu, .filter, .more-work, .card-link, .eyebrow, .hero-stamp { font-size: .69rem; font-weight: 680; letter-spacing: .035em; text-transform: uppercase; }
.nav a, .locale, .more-work { position: relative; padding-block: .4rem; }
.nav a::after, .locale::after, .more-work::after { content: ""; position: absolute; left: 0; right: 0; bottom: .12rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.nav a[aria-current]::after, .locale::after, .more-work::after { transform: scaleX(1); }
.nav-actions { gap: 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .62rem; min-height: 43px; padding: .68rem 1.25rem; border: 1px solid var(--ink); border-radius: 5rem; background: var(--ink); color: #fff; font: 680 .68rem/1.15 var(--sans); letter-spacing: .025em; text-transform: uppercase; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s, transform .22s var(--ease); }
.button.ghost { background: transparent; color: var(--ink); border-color: #81786b; }
.button.light { background: #faf5ed; color: #211a15; border-color: #faf5ed; }
.button.outline-light { color: #fff; background: #180f0844; border-color: #dad0bd; }
.button:active, .work-card:active { transform: translateY(1px); }
.menu { display: none; border: 0; background: none; padding: .65rem .35rem; cursor: pointer; }
.eyebrow { display: inline-flex; align-items: center; gap: .62rem; line-height: 1.35; }
.eyebrow::before { content: ""; width: .48rem; height: .48rem; border-radius: 50%; background: #ec5532; flex: none; }
.eyebrow::after { content: ""; width: 2.5rem; height: 1px; margin-left: .2rem; background: currentColor; opacity: .18; }
.hero-copy > .eyebrow::after, .contact-banner .eyebrow::after { display: none; }
.hero { display: grid; grid-template-columns: 1.04fr .96fr; min-height: clamp(550px,54vw,790px); padding-left: var(--pad); gap: clamp(1rem,2.5vw,3.1rem); }
.hero-copy { position: relative; align-self: center; padding: clamp(2.8rem,4.5vw,5rem) .6rem clamp(2.4rem,4vw,4.7rem) 0; min-width: 0; }
.hero h1 { font: 400 clamp(3.75rem,7.05vw,7.8rem)/.875 var(--serif); letter-spacing: -.044em; margin: 1.05rem 0 1.45rem; }
.hero h1 em { color: var(--accent); font-style: italic; font-weight: 400; white-space: nowrap; letter-spacing: -.053em; }
html[lang="fr"] .hero h1 { font-size: clamp(3.25rem,5.7vw,6.4rem); line-height: .93; }
.lede { color: var(--muted); max-width: 28em; margin: 0 0 1.6rem; font-size: clamp(.91rem,1.08vw,1.08rem); }
.hero-links, .contact-actions { flex-wrap: wrap; gap: .72rem; }
.hero-brief { display: flex; gap: clamp(.8rem,2.7vw,3.5rem); margin-top: clamp(2rem,3.9vw,4.5rem); max-width: 87%; }
.hero-brief div { color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.35; max-width: 115px; }
.hero-brief strong { display: block; color: var(--ink); font: 400 clamp(1.5rem,2.1vw,2.2rem)/1 var(--serif); letter-spacing: -.025em; text-transform: none; margin-bottom: .4rem; }
.scroll-link { position: absolute; right: .85rem; bottom: clamp(2.4rem,4vw,4.7rem); display: grid; place-items: center; height: 35px; width: 35px; border: 1px solid #9b9181; border-radius: 50%; transition: color .2s, background .2s; }
.scroll-link .icon { width: 16px; height: 16px; }
.hero-visual { isolation: isolate; position: relative; overflow: hidden; min-width: 0; background: #885532; }
.courtyard { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 61% center; }
.hero-stamp { position: absolute; top: 9%; right: 8%; border-left: 1px solid #fcf0dd80; padding-left: .85rem; color: #fff8ee; font-size: .62rem; line-height: 1.8; text-shadow: 0 1px 5px #211109; }
.project-pill { position: absolute; display: flex; align-items: center; gap: .72rem; right: clamp(1rem,2.4vw,2.7rem); bottom: clamp(1.1rem,2.7vw,3.2rem); max-width: calc(100% - 2rem); padding: .65rem .75rem; border-radius: .45rem; color: #191713; background: #fcf7efd9; backdrop-filter: blur(8px); box-shadow: 0 6px 22px #2f180f3d; transition: background .2s, transform .25s var(--ease); }
.mini-art { height: 51px; width: 51px; object-fit: cover; object-position: 58% 50%; border-radius: .2rem; }
.project-pill small { display: block; font-size: .64rem; line-height: 1.45; }
.project-pill small:first-child { font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.project-pill strong { font: 400 1.2rem/1.25 var(--serif); }
.pill-arrow { width: 29px; height: 29px; padding: 7px; margin-left: clamp(.35rem,1.3vw,1.25rem); color: white; background: var(--ink); border-radius: 50%; }
.section { padding: clamp(3.5rem,6.4vw,6.5rem) var(--pad); }
.section + .section { border-top: 1px solid #e8dfd2; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.45rem; }
.section-title { font: 400 clamp(2.8rem,4.4vw,4.7rem)/.94 var(--serif); letter-spacing: -.047em; margin: .75rem 0 1rem; }
.section-title { max-width: 12em; }
#work .section-top .section-title { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.filters { display: flex; gap: clamp(.4rem,1.25vw,1.3rem); flex-wrap: wrap; }
.filter { position: relative; cursor: pointer; font-size: .65rem; border: 0; background: transparent; padding: .5rem .2rem; }
.filter.active { color: var(--ink); }
.filter.active::before { content: ""; display: inline-block; width: .42rem; height: .42rem; background: var(--accent); border-radius: 50%; margin: 0 .33rem .07rem 0; }
.work-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(.32rem,.65vw,.65rem); }
.work-card { --rot:0deg; --zoom:1; grid-column: span 2; position: relative; isolation: isolate; overflow: hidden; min-height: clamp(225px,23vw,365px); padding: clamp(1.1rem,2vw,2.1rem); display: flex; flex-direction: column; color: #fffaf3; background: var(--art,#30251c); }
.work-card.large { grid-column: span 3; min-height: clamp(260px,26.5vw,420px); }
.work-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(92deg,#0f0c0aaf 0%,#110d0945 49%,#100b0808 76%),linear-gradient(0deg,#0f0b0c80,transparent 34%); }
.work-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: rotate(var(--rot)) scale(var(--zoom)); transition: transform .55s var(--ease); }
.work-card.mark .work-image, .work-card.poster .work-image { inset: auto; top: 50%; right: 4%; object-fit: contain; width: 55%; height: auto; max-height: 115%; transform: translateY(-50%) rotate(var(--rot)) scale(var(--zoom)); }
.work-card.poster .work-image { --rot: 4deg; width: 55%; height: 109%; object-fit: contain; filter: drop-shadow(0 .55rem .7rem #08050880); }
.card-morocco { background: linear-gradient(115deg,#50321c,#aa7950); }
.card-morocco .work-image { --rot: 4deg; box-shadow: 0 .6rem 1rem #291a1380; }
.card-casablanca { background: linear-gradient(115deg,#201222,#3d1d54 80%,#170f23); }
.card-alfadila { background: linear-gradient(120deg,#18342d,#536c50); }
.card-zayna { background: #2b241e; }
.card-zayna.mark .work-image { width: 58%; right: 4%; }
.card-climaitrise { background: linear-gradient(115deg,#242828,#70716b); }
.card-climaitrise .work-image { --rot: -7deg; box-shadow: 0 .6rem 1rem #17171480; }
.card-no { font: 400 clamp(1.35rem,2.05vw,2.1rem)/1 var(--serif); }
.work-card h3 { font: 400 clamp(1.55rem,2.6vw,2.95rem)/.94 var(--serif); letter-spacing: -.035em; margin: .45rem 0; max-width: 8.75em; }
.work-card p { margin: 0; font-size: .75rem; max-width: 15em; color: #fffaf3; }
.card-info { margin-bottom: auto; }
.card-link { display: inline-flex; align-items: center; gap: .3rem; align-self: start; font-size: .62rem; margin-top: 1.2rem; padding-bottom: .17rem; border-bottom: 1px solid #fff9; }
.card-link .arrow { width: .82rem; height: .82rem; }
.more-work { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.15rem; }
.services { display: grid; grid-template-columns: .85fr 1.4fr; align-items: start; gap: clamp(2rem,6vw,7rem); }
.services .section-title { max-width: 9.8em; }
.services .lede { max-width: 27em; }
.service-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.service-card { min-height: clamp(150px,13.4vw,210px); display: flex; flex-direction: column; align-items: flex-start; padding: clamp(.95rem,1.55vw,1.65rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .22s; }
.service-icon { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #29241f; }
.service-icon > .icon { width: 20px; height: 20px; }
.service-number { font: 400 1.04rem/1 var(--serif); color: #887e6f; }
.service-card h3 { font: 650 .85rem/1.3 var(--sans); margin: .9rem 0 .4rem; }
.service-card p { font-size: .78rem; line-height: 1.5; color: var(--muted); margin: 0; }
.service-arrow { width: 15px; height: 15px; margin-top: auto; padding-top: 0; transition: transform .23s var(--ease),color .23s; }
.service-card p { margin-bottom: .85rem; }
.contact-banner { position: relative; isolation: isolate; color: #fff9f0; background: #34241a; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,6vw,6rem); align-items: center; padding: clamp(3.2rem,5.5vw,6.4rem) var(--pad); }
.contact-banner::before, .contact-banner::after { position: absolute; content: ""; inset: 0; z-index: -1; pointer-events: none; }
.contact-banner::before { background: url("/media/courtyard.webp") center 63% / cover; }
.contact-banner::after { background: linear-gradient(90deg,rgba(16,12,9,.84),rgba(30,16,8,.53) 48%,rgba(16,12,9,.84)); }
.contact-banner h2 { font: 400 clamp(2.8rem,4.85vw,5.4rem)/.91 var(--serif); letter-spacing: -.035em; text-transform: uppercase; margin: 1rem 0 0; }
.contact-copy p { color: #f2e8da; max-width: 30em; margin: 0 0 1.3rem; }
.contact-actions .button { border-radius: .38rem; min-height: 44px; text-transform: none; font-size: .8rem; }
.contact-banner a:focus-visible, .work-card:focus-visible { outline-color: #ff9c73; }
.work-card:focus-visible { outline-offset: -4px; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2.4rem var(--pad); font-size: .69rem; font-weight: 650; }
.site-footer small { display: block; color: var(--muted); font-weight: 400; margin-top: .5rem; }
.page-hero { padding: clamp(4rem,9vw,8.5rem) var(--pad) 3rem; border-bottom: 1px solid var(--line); }
.crumbs { color: var(--muted); font-size: .7rem; font-weight: 650; text-transform: uppercase; margin-bottom: 2.4rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { font: 400 clamp(3.3rem,8vw,8rem)/.91 var(--serif); letter-spacing: -.05em; max-width: 17ch; margin: .55rem 0 0; }
.page-hero p { font-size: 1rem; max-width: 580px; color: var(--muted); margin: 1.5rem 0 0; }
.case-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; padding: 4rem var(--pad); }
.case-meta { font-size: .72rem; text-transform: uppercase; font-weight: 650; line-height: 1.8; }
.case-copy { font-size: 1.1rem; max-width: 640px; }
.case-copy p { margin-top: 0; }
.case-gallery { padding: 0 var(--pad) 5rem; display: grid; grid-template-columns: 2fr 1fr; gap: 5px; }
.case-image { min-height: 360px; background: var(--art); position: relative; }
.case-image::after { content: attr(data-label); position: absolute; left: 16px; bottom: 16px; background: #fff; padding: .45rem .65rem; font-size: .65rem; font-weight: 650; text-transform: uppercase; }
.case-image.tall { min-height: 490px; }
.project-next { padding: 3rem var(--pad); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.empty { padding: 2rem 0; color: var(--muted); }
.nav a:focus-visible::after, .more-work:focus-visible::after { transform: scaleX(1); }
.service-card:focus-visible { background: #f0e6d9; outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); }
  .nav a:hover, .more-work:hover, .filter:hover, .locale:hover { color: #a6341c; }
  .button:hover { background: #39312a; border-color: #39312a; transform: translateY(-2px); }
  .button.ghost:hover { background: #2e2822; color: #fff; border-color: #2e2822; }
  .button.light:hover { background: #f1d7bc; border-color: #f1d7bc; color: #201812; }
  .button.outline-light:hover { background: #f9efe3; color: #281f18; border-color: #f9efe3; }
  .button:hover .arrow, .more-work:hover .arrow, .work-card:hover .arrow { transform: translate(2px,-2px); }
  .project-pill:hover { background: #fff9ed; transform: translateY(-3px); }
  .scroll-link:hover { color: #fff; background: var(--ink); }
  .work-card:hover { --zoom: 1.045; }
  .service-card:hover { background: #f0e6d9; }
  .service-card:hover .service-arrow { transform: translateX(4px); color: var(--accent); }
}
@keyframes arrive { from { opacity: .25; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { transform: scale(1.035); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: arrive .55s var(--ease) both; }
  .hero-links { animation: arrive .52s .08s var(--ease) both; }
  .courtyard { animation: settle 1.15s var(--ease) both; }
  .entered { animation: arrive .5s var(--ease) both; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .service-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-brief { gap: 1rem; }
  .scroll-link { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .site-header { min-height: 61px; gap: .5rem; }
  .site-header:has(.menu) .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: .6rem var(--pad) 1rem; border-bottom: 1px solid var(--line); }
  .site-header:has(.menu) .nav.open { display: flex; }
  .site-header:has(.menu) .nav a { padding: .8rem 0; }
  .site-header:not(:has(.menu)) .nav { gap: .55rem; flex-wrap: wrap; }
  .site-header:not(:has(.menu)) .nav a { font-size: .61rem; }
  .menu { display: block; order: 3; }
  .nav-actions { margin-left: auto; }
  .nav-actions > .button { display: none; }
  .hero { grid-template-columns: 1fr; padding: 0; gap: 0; min-height: 0; }
  .hero-copy { padding: 2.85rem var(--pad) 1.85rem; }
  .hero h1 { font-size: clamp(3.5rem,11.9vw,5.5rem); margin: .85rem 0 1.15rem; }
  html[lang="fr"] .hero h1 { font-size: clamp(3.05rem,10.5vw,5.1rem); }
  .hero-brief { max-width: calc(100% - 2.5rem); gap: clamp(.7rem,3.5vw,1.6rem); margin-top: 1.7rem; }
  .hero-brief div { font-size: .56rem; }
  .scroll-link { right: var(--pad); bottom: 1.9rem; width: 30px; height: 30px; }
  .hero-visual { min-height: 290px; height: clamp(290px,70vw,410px); }
  .courtyard { object-position: center 63%; }
  .section-top { flex-direction: column; align-items: start; gap: .55rem; margin-bottom: 1rem; }
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
  .work-card, .work-card.large { grid-column: span 1; min-height: clamp(235px,45vw,310px); }
  .services, .contact-banner, .case-intro { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-footer { flex-wrap: wrap; }
  .case-intro { gap: 1.2rem; padding-block: 2.5rem; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-image, .case-image.tall { min-height: 270px; }
  .contact-banner::before { background-image: url("/media/courtyard-760.webp"); }
  .contact-banner::after { background: linear-gradient(90deg,#160e08db,#26160daf); }
}
@media (max-width: 525px) {
  .work-grid { grid-template-columns: minmax(0,1fr); }
  .work-card, .work-card.large { min-height: clamp(230px,62vw,300px); }
  .work-card h3 { font-size: 2rem; }
  .site-footer { flex-direction: column; gap: 1rem; }
}
@media (max-width: 22rem) {
  .hero h1 { font-size: clamp(2.65rem,15vw,3.2rem); }
  html[lang="fr"] .hero h1 { font-size: clamp(2.2rem,12.4vw,2.7rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .work-card:hover { --zoom: 1; }
  .button:hover, .button:hover .arrow, .project-pill:hover, .service-card:hover .service-arrow, .more-work:hover .arrow, .work-card:hover .arrow { transform: none; }
}
.inquiry { width: min(100%, 44rem); margin: 0 auto; padding: clamp(3rem,6vw,6.5rem) var(--pad); }
.inquiry h1 { font: 400 clamp(3rem,6vw,5.8rem)/.94 var(--serif); letter-spacing: -.045em; margin: 1rem 0; }
.inquiry p { color: var(--muted); }
.inquiry form { display: grid; gap: 1.15rem; margin-top: 2rem; }
.inquiry label { display:grid; gap:.35rem; font-size:.82rem; font-weight:600; }
.inquiry input, .inquiry textarea { width:100%; border:1px solid #a89a86; border-radius:4px; background:#fffaf2; color:var(--ink); font-size:1rem; padding:.7rem; }
.inquiry textarea { resize:vertical; }
.inquiry .button { justify-self:start; }
.inquiry .trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.inquiry [role=alert] { color:#9e2d18; }
