:root {
  --orange: #EA4800;
  --orange-hover: #E85102;
  --ink: #000003;
  --dark: #16161A;
  --muted: #4B4B4B;
  --canvas: #F2F0FA;
  --panel: #F1EEFE;
  --divider: #E3DFF5;
  --white: #fff;
  --max-width: 1680px;
  --page-pad: clamp(32px, 7.55vw, 145px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Instrument Sans", Inter, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.shell {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width));
  margin-inline: auto;
}

/* LIQUID GLASS NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  isolation: isolate;
  border-bottom: 1px solid rgba(255,255,255,.56);
  transition: height .28s ease, box-shadow .28s ease;
}
.glass-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,246,255,.46)),
    radial-gradient(650px 120px at 50% -20%, rgba(255,255,255,.96), rgba(255,255,255,0) 70%);
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.glass-layer::before,
.glass-layer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.glass-layer::before {
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.08), rgba(255,255,255,.42) 42%, rgba(255,255,255,.06) 74%);
  mix-blend-mode: screen;
}
.glass-layer::after {
  left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
}
.site-header.is-scrolled {
  height: 86px;
  box-shadow: 0 12px 30px rgba(43,34,67,.08);
}
.nav-wrap {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo,
.footer-logo {
  font-size: 32px;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}
.logo strong,
.footer-logo strong { font-weight: 700; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 18px;
  font-weight: 700;
}
.nav a { transition: color .2s ease, transform .2s ease; }
.nav a:hover { color: var(--orange); transform: translateY(-1px); }
.nav-divider {
  width: 1px;
  height: 78px;
  background: #111;
  transform: rotate(18deg);
  transform-origin: center;
  margin: -16px 2px;
}
.language {
  justify-self: end;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  padding: 10px 0;
}

/* HERO */
.hero {
  min-height: 840px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 30px;
  align-items: center;
  padding-top: 54px;
}
.hero-copy {
  align-self: start;
  padding-top: 60px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin: 0 0 34px;
  font-size: clamp(54px, 4.2vw, 80px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 700;
}
.hero p {
  margin: 0 0 42px;
  font-size: clamp(20px, 1.36vw, 28px);
  line-height: 1.13;
  letter-spacing: -.02em;
}
.hero-buttons { display: flex; gap: 16px; }
.button {
  min-height: 54px;
  padding: 13px 23px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: .22s ease;
}
.button-primary { background: var(--orange); color: var(--white); }
.button-primary:hover { background: var(--orange-hover); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(234,72,0,.22); }
.button-outline { border: 1.5px solid var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-3px); }
.hero-visual {
  width: min(790px, 100%);
  justify-self: end;
  align-self: end;
  margin-right: -16px;
  transform-origin: 58% 74%;
}
.hero-visual img { width: 100%; }
.hero-visual.is-visible { animation: heroFloat 7.5s ease-in-out 1.1s infinite; }
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(.02deg); }
  50% { transform: translateY(-12px) rotate(-.22deg); }
}

/* PORTFOLIO */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 155px;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: .815 / 1;
  border-radius: 14px;
  background: #fff;
  isolation: isolate;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.48));
  opacity: 0;
  transition: opacity .35s ease;
}
.project-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: .35s ease;
}
.project-card:hover img { transform: scale(1.035); }
.project-card:hover::after { opacity: 1; }
.project-card:hover .project-label { opacity: 1; transform: translateY(0); }

/* ABOUT */
.about {
  position: relative;
  min-height: 920px;
  padding-bottom: 150px;
}
.about-cards {
  width: 68.5%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 2;
}
.about-card {
  background: rgba(241,238,254,.7);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 26px 28px 28px;
}
.about-card-wide { width: 100%; }
.about-card-mid { width: 84%; }
.about-card-name { width: 103.5%; }
.about-card h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 2vw, 36px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.about-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 24px;
  align-items: start;
}
.about-row p {
  margin: 0;
  font-size: clamp(17px, 1.1vw, 21px);
  line-height: 1.2;
  letter-spacing: -.014em;
}
.slash {
  width: 10px;
  height: 92px;
  margin-left: 11px;
  background: var(--orange);
  transform: skewX(-19deg);
}
.orbit-wrap {
  position: absolute;
  top: -35px;
  right: -325px;
  width: 720px;
  height: 720px;
  pointer-events: none;
}
.orbit {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin 23s linear infinite;
}
.orbit text {
  fill: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.02em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* FOOTER */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 66px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.12fr;
  gap: 70px;
}
.footer-brand {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo { font-size: 32px; }
.footer-brand > span { font-size: 17px; }
.footer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-block h3 { margin: 7px 0 22px; font-size: 18px; }
.footer-block a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 18px;
  transition: opacity .2s ease, transform .2s ease;
}
.footer-block a:hover { opacity: .65; transform: translateX(3px); }
.footer-icon, .footer-svg { width: 24px; height: 24px; flex: 0 0 24px; display: inline-grid; place-items: center; }
.footer-svg svg { width: 100%; height: 100%; display: block; stroke: currentColor; }

/* ANIMATIONS */
.reveal,
.pop-up {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  transition:
    opacity .78s cubic-bezier(.2,.7,.2,1),
    transform .82s cubic-bezier(.2,.7,.2,1);
}
.from-left { transform: translateX(-34px); }
.from-right { transform: translateX(44px) scale(.99); }
.reveal.is-visible,
.pop-up.is-visible { opacity: 1; transform: none; }
.portfolio .project-card:nth-child(2) { transition-delay: .08s; }
.portfolio .project-card:nth-child(3) { transition-delay: .16s; }
.about-card:nth-child(2) { transition-delay: .08s; }
.about-card:nth-child(3) { transition-delay: .14s; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  :root { --page-pad: 56px; }
  .site-header { height: 88px; }
  .hero { min-height: 760px; }
  .about-cards { width: 72%; }
  .orbit-wrap { right: -365px; }
}

@media (max-width: 900px) {
  :root { --page-pad: 24px; }
  .site-header,
  .site-header.is-scrolled { height: 76px; }
  .logo { font-size: 25px; }
  .nav { font-size: 16px; gap: 16px; }
  .nav-divider { height: 58px; margin: -10px 0; }
  .language { font-size: 15px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }
  .hero-copy { padding-top: 28px; }
  .hero-visual { width: min(650px, 96%); margin: -16px auto 0; }
  .portfolio { grid-template-columns: 1fr; gap: 14px; padding-bottom: 90px; }
  .project-card { aspect-ratio: 1 / 1.02; }
  .about { min-height: auto; padding-bottom: 100px; }
  .about-cards { width: 100%; }
  .about-card-mid,
  .about-card-name { width: 100%; }
  .orbit-wrap {
    position: relative;
    top: auto;
    right: auto;
    width: 430px;
    height: 430px;
    margin: 12px -155px -20px auto;
  }
  .orbit text { font-size: 31px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
  .footer-brand { grid-row: span 2; }
}

@media (max-width: 600px) {
  :root { --page-pad: 14px; }
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .language { grid-column: 2; }
  .hero h1 { font-size: 49px; }
  .hero p { font-size: 19px; }
  .desktop-break { display: none; }
  .hero-buttons { gap: 10px; }
  .button { min-height: 48px; padding: 11px 18px; font-size: 17px; }
  .hero-visual { width: 112%; margin-left: -6%; }
  .about-card { padding: 22px 18px; border-radius: 18px; }
  .about-row { grid-template-columns: 28px 1fr; gap: 13px; }
  .about-row p { font-size: 16px; line-height: 1.27; }
  .slash { width: 8px; height: 75px; margin-left: 7px; }
  .orbit-wrap { width: 330px; height: 330px; margin-right: -125px; }
  .orbit text { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-row: auto; min-height: 112px; }
  .footer-block h3 { margin-bottom: 12px; }
  .footer-block a { font-size: 16px; }
}

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

/* SHARED INNER PAGES */
.nav a.active { color: var(--orange); }
.page-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.page-reveal.is-visible { opacity: 1; transform: none; }

/* CONTACTS */
.contact-page { padding-top: 1px; }
.contact-intro {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 92px;
}
.contact-copy { max-width: 810px; }
.eyebrow {
  color: var(--orange);
  font-size: 22px;
  margin: 0 0 26px;
}
.contact-copy h1 {
  max-width: 820px;
  font-size: clamp(34px, 2.65vw, 50px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 28px;
}
.contact-lead {
  max-width: 780px;
  font-size: clamp(18px, 1.2vw, 23px);
  line-height: 1.22;
  margin: 0 0 34px;
}
.contact-meta { display: grid; gap: 26px; }
.contact-meta h2 { color: var(--orange); margin: 0 0 10px; font-size: 22px; font-weight: 500; }
.contact-meta a { display: flex; align-items: center; gap: 10px; width: fit-content; font-size: 22px; margin: 8px 0; }
.line-icon { width: 25px; text-align: center; font-size: 24px; }
.portrait-card { margin: 0; justify-self: center; text-align: center; }
.portrait-card img { width: min(430px, 34vw); aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(1); box-shadow: none; border: 0; outline: 0; }
.portrait-card figcaption { color: var(--orange); margin-top: 20px; font-size: 20px; }

.collab {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 64px;
  align-items: start;
  padding-top: 12px;
  padding-bottom: 96px;
}
.collab-copy h2 {
  color: var(--orange);
  margin: 0 0 24px;
  font-size: clamp(48px, 4vw, 72px);
  line-height: .95;
  letter-spacing: -.045em;
}
.collab-copy p { max-width: 520px; margin: 0; font-size: 19px; line-height: 1.45; }
.contact-form {
  background: rgba(241,238,254,.72);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 8px 8px 22px rgba(22,22,26,.08);
}
.contact-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1.5px solid #222;
  border-radius: 9px;
  background: rgba(255,255,255,.15);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { min-height: 132px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--orange); background: rgba(255,255,255,.42); box-shadow: 0 0 0 3px rgba(234,72,0,.1); }
.upload-label { font-size: 14px; margin-bottom: 8px; }
.upload-label span { color: #666; font-weight: 400; }
.drop-zone {
  min-height: 92px;
  border: 1.5px dashed #444;
  border-radius: 10px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  margin: 0 0 14px !important;
  font-weight: 400 !important;
  transition: border-color .2s, background .2s;
}
.drop-zone.is-dragover { border-color: var(--orange); background: rgba(234,72,0,.05); }
.drop-zone input { display: none; }
.drop-zone small { color: #6c6c6c; }
.clip { font-size: 22px; transform: rotate(-45deg); display: inline-block; }
.file-name { font-size: 13px; margin-bottom: 12px; min-height: 18px; color: #555; }
.submit-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(234,72,0,.18);
  transition: background .2s, transform .2s;
}
.submit-button:hover { background: var(--orange-hover); transform: translateY(-2px); }
.form-note { margin: 12px 0 0; min-height: 20px; font-size: 14px; }

/* PORTFOLIO PAGE */
.portfolio-page { padding-top: 1px; padding-bottom: 120px; position: relative; }
.portfolio-head { padding: 98px 0 86px; }
.portfolio-head h1 { margin: 0 0 24px; font-size: clamp(60px, 5vw, 88px); line-height: .95; letter-spacing: -.05em; }
.portfolio-head p { margin: 0 0 76px; font-size: clamp(23px, 1.9vw, 34px); line-height: 1.12; font-weight: 500; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; }
.filter {
  border: 1.5px solid #111;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 9px 20px;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.filter:hover { transform: translateY(-1px); }
.filter.is-active { background: #000; color: #fff; }

/* Portfolio is built on the same 4-column frame used in the Figma file.
   4 equal columns / 20px gutter. Large visuals span 2 columns; smaller visuals use 1. */
.portfolio-grid { display: flex; flex-direction: column; gap: 54px; }
.portfolio-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}
.portfolio-item.is-hidden { display: none; }
.portfolio-item .media { overflow: hidden; background: #e8e7ef; min-width: 0; }
.portfolio-item .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.portfolio-item .media:hover img { transform: scale(1.018); }
.project-copy { min-width: 0; align-self: start; padding-top: 2px; }
.project-copy h2 { color: var(--orange); font-size: 22px; margin: 0 0 2px; line-height: 1; }
.project-copy p { margin: 0; font-size: 22px; line-height: 1.12; font-weight: 600; max-width: 430px; }
.project-copy small { display: block; margin-top: 6px; font-size: 15px; font-style: italic; }

/* 4-column compositions */
.project-renatus .main { grid-column: 1 / span 2; grid-row: 1 / span 2; aspect-ratio: 1.14 / 1; }
.project-renatus .small-a { grid-column: 3; grid-row: 1; aspect-ratio: 1 / 1; }
.project-renatus .small-b { grid-column: 4; grid-row: 1; aspect-ratio: 1 / 1; }
.project-renatus .project-copy { grid-column: 3 / span 2; grid-row: 2; }

.project-designweek .a { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; }
.project-designweek .project-copy { grid-column: 2; grid-row: 1; }
.project-designweek .b { grid-column: 2; grid-row: 2; aspect-ratio: 1 / 1; }
.project-designweek .c { grid-column: 3 / span 2; grid-row: 1 / span 2; aspect-ratio: 1 / 1.08; }

.project-gateris .main { grid-column: 1 / span 2; aspect-ratio: 1.38 / 1; }
.project-gateris .side { grid-column: 3; aspect-ratio: 1 / 1; }
.project-gateris .project-copy { grid-column: 4; }

.project-urban .a { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; }
.project-urban .b { grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; }
.project-urban .c { grid-column: 3 / span 2; grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
.project-urban .project-copy { grid-column: 1 / span 2; grid-row: 2; }

.project-shirts .a { grid-column: 1 / span 2; aspect-ratio: 1.3 / 1; }
.project-shirts .b { grid-column: 3 / span 2; aspect-ratio: 1.3 / 1; }

.project-garage .a { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; }
.project-garage .project-copy { grid-column: 2; grid-row: 1; }
.project-garage .b { grid-column: 2; grid-row: 2; aspect-ratio: 1 / 1; }
.project-garage .c { grid-column: 3 / span 2; grid-row: 1 / span 2; aspect-ratio: 1 / 1.05; }

.project-naturals .a { grid-column: 1 / span 2; aspect-ratio: 1 / 1; }
.project-naturals .b { grid-column: 3; aspect-ratio: 1 / 1; }
.project-naturals .project-copy { grid-column: 4; }

.project-dublis .a { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; }
.project-dublis .b { grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; }
.project-dublis .c { grid-column: 3 / span 2; grid-row: 1 / span 2; aspect-ratio: 1 / 1.05; }
.project-dublis .project-copy { grid-column: 1 / span 2; grid-row: 2; }

.project-social .a { grid-column: 1 / span 2; aspect-ratio: 1.35 / 1; background: transparent; }
.project-social .b { grid-column: 3 / span 2; aspect-ratio: 1.35 / 1; background: transparent; }
.project-social .media img { object-fit: contain; }

.project-hope .a { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; }
.project-hope .b { grid-column: 2; grid-row: 2; aspect-ratio: 1 / 1; }
.project-hope .c { grid-column: 3 / span 2; grid-row: 1 / span 2; aspect-ratio: 1 / 1.03; }
.project-hope .project-copy { grid-column: 2; grid-row: 1; }

.project-app .a { grid-column: 1 / span 2; aspect-ratio: 1.2 / 1; }
.project-app .b { grid-column: 3 / span 2; aspect-ratio: 1.2 / 1; }

.project-stars .a { grid-column: 1 / span 2; grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
.project-stars .b { grid-column: 3; grid-row: 1; aspect-ratio: 1 / 1; }
.project-stars .project-copy { grid-column: 4; grid-row: 1; }

.project-water .a { grid-column: 1 / span 2; grid-row: 1; aspect-ratio: 1.35 / 1; }
.project-water .b { grid-column: 3 / span 2; grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
.project-water .project-copy { grid-column: 1 / span 2; grid-row: 2; }

.project-skin .a { grid-column: 1 / span 2; grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
.project-skin .b { grid-column: 3; grid-row: 1; aspect-ratio: 1 / 1; }
.project-skin .c { grid-column: 4; grid-row: 1; aspect-ratio: 1 / 1; }
.project-skin .project-copy { grid-column: 3 / span 2; grid-row: 2; }

.back-top {
  position: sticky;
  bottom: 28px;
  margin: 60px 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(234,72,0,.2);
}

@media (max-width: 1100px) {
  .contact-intro { grid-template-columns: 1fr .7fr; gap: 40px; }
  .collab { grid-template-columns: 1fr; }
  .contact-form { max-width: none; }
  .portfolio-grid { gap: 34px; }
  .project-copy h2 { font-size: 18px; }
  .project-copy p { font-size: 18px; }
  .project-renatus .main,
  .project-gateris .main,
  .project-naturals .a,
  .project-skin .a { min-height: 420px; }
  .project-designweek .c,
  .project-garage .c,
  .project-urban .c,
  .project-dublis .c,
  .project-hope .c { min-height: 500px; }
}

@media (max-width: 800px) {
  .contact-intro { grid-template-columns: 1fr; padding-top: 54px; }
  .portrait-card { order: -1; }
  .portrait-card img { width: min(320px, 78vw); }
  .contact-copy h1 { font-size: 38px; }
  .contact-meta a { font-size: 18px; }
  .contact-form { padding: 24px 20px; }
  .portfolio-head { padding: 56px 0 50px; }
  .portfolio-head p { margin-bottom: 42px; }
  .filter { font-size: 15px; padding: 8px 14px; }

  .portfolio-item,
  .project-renatus,
  .project-designweek,
  .project-gateris,
  .project-urban,
  .project-shirts,
  .project-garage,
  .project-naturals,
  .project-dublis,
  .project-social,
  .project-hope,
  .project-app,
  .project-stars,
  .project-water,
  .project-skin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .portfolio-item .media,
  .project-renatus .main,.project-renatus .small-a,.project-renatus .small-b,
  .project-designweek .a,.project-designweek .b,.project-designweek .c,
  .project-gateris .main,.project-gateris .side,
  .project-urban .a,.project-urban .b,.project-urban .c,
  .project-garage .a,.project-garage .b,.project-garage .c,
  .project-naturals .a,.project-naturals .b,
  .project-dublis .a,.project-dublis .b,.project-dublis .c,
  .project-hope .a,.project-hope .b,.project-hope .c,
  .project-stars .a,.project-stars .b,
  .project-water .a,.project-water .b,
  .project-skin .a,.project-skin .b,.project-skin .c {
    grid-column: auto; grid-row: auto; min-height: 0; aspect-ratio: 1 / 1;
  }
  .portfolio-item .project-copy,
  .project-renatus .project-copy,.project-designweek .project-copy,.project-gateris .project-copy,.project-urban .project-copy,
  .project-garage .project-copy,.project-naturals .project-copy,.project-dublis .project-copy,.project-hope .project-copy,
  .project-stars .project-copy,.project-water .project-copy,.project-skin .project-copy {
    grid-column: 1 / -1; grid-row: auto; margin: 0; padding: 0; max-width: none;
  }
  .project-social .media, .project-app .media, .project-shirts .media { min-height: 0; aspect-ratio: 1 / 1; }
  .project-copy p { max-width: 100%; }
}

@media (max-width: 560px) {
  .contact-copy h1 { font-size: 31px; }
  .eyebrow, .contact-meta h2 { font-size: 18px; }
  .contact-lead { font-size: 17px; }
  .collab-copy h2 { font-size: 48px; }
  .portfolio-head h1 { font-size: 54px; }
  .portfolio-head p { font-size: 21px; }
  .filters { gap: 8px; }
  .filter { font-size: 14px; padding: 7px 12px; }
  .portfolio-grid { gap: 28px; }
  .portfolio-item,
  .project-renatus,.project-designweek,.project-gateris,.project-urban,.project-shirts,.project-garage,.project-naturals,.project-dublis,.project-social,.project-hope,.project-app,.project-stars,.project-water,.project-skin { grid-template-columns: 1fr; }
  .portfolio-item .project-copy { grid-column: 1; }
  .back-top { width: 52px; height: 52px; font-size: 28px; }
}

/* Final portfolio responsive overrides: preserve the 4-column desktop frame. */
@media (max-width: 1100px) and (min-width: 801px) {
  .portfolio-item { gap: 16px; }
  .project-copy h2 { font-size: 17px; }
  .project-copy p { font-size: 17px; }
  .project-copy small { font-size: 13px; }
}
@media (max-width: 800px) {
  .portfolio-item,
  .project-renatus,.project-designweek,.project-gateris,.project-urban,.project-shirts,.project-garage,.project-naturals,.project-dublis,.project-social,.project-hope,.project-app,.project-stars,.project-water,.project-skin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .portfolio-item .media, .portfolio-item .project-copy { grid-column: auto; grid-row: auto; }
  .project-renatus .main,.project-designweek .c,.project-gateris .main,.project-urban .c,.project-shirts .a,.project-shirts .b,.project-garage .c,.project-naturals .a,.project-dublis .c,.project-social .a,.project-social .b,.project-hope .c,.project-app .a,.project-app .b,.project-stars .a,.project-water .a,.project-water .b,.project-skin .a { grid-column: 1 / -1; }
  .portfolio-item .project-copy { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .portfolio-item,
  .project-renatus,.project-designweek,.project-gateris,.project-urban,.project-shirts,.project-garage,.project-naturals,.project-dublis,.project-social,.project-hope,.project-app,.project-stars,.project-water,.project-skin { grid-template-columns: 1fr; gap: 10px; }
  .portfolio-item .media, .portfolio-item .project-copy { grid-column: 1 !important; grid-row: auto !important; }
}


/* ===== CU/ONE polish v4 ===== */
/* Use the supplied official logo artwork instead of typeset text. */
.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: 137px;
  height: auto;
  object-fit: contain;
}
.brand-logo-footer {
  filter: invert(1);
}

/* Landing typography hover detail requested in the prototype. */
.home-page .hero h1,
.home-page .about-card h2 {
  transition: color .22s ease;
}
.home-page .hero h1:hover,
.home-page .about-card h2:hover {
  color: var(--orange);
}

/* Portfolio captions always anchor to the true top-left of their grid slot. */
.portfolio-item .project-copy {
  place-self: start stretch;
  align-self: start;
  justify-self: start;
  text-align: left;
  padding: 0;
  margin: 0;
}
.portfolio-item .project-copy h2,
.portfolio-item .project-copy p,
.portfolio-item .project-copy small {
  text-align: left;
  margin-left: 0;
}

/* The generic social-media phone showcase was removed from the HTML. */

@media (max-width: 900px) {
  .brand-logo { width: 118px; }
}
@media (max-width: 600px) {
  .brand-logo { width: 108px; }
}


/* ===== CU/ONE polish v5 ===== */
/* Keep all three landing-page information cards aligned to one clean right edge. */
.home-page .about-card-wide,
.home-page .about-card-mid,
.home-page .about-card-name {
  width: 100%;
}

/* Official CU/ONE logo turns into the brand orange on hover. */
.brand-logo {
  transition: filter .22s ease, transform .22s ease;
}
.logo:hover .brand-logo,
.footer-logo:hover .brand-logo-footer {
  filter: invert(35%) sepia(99%) saturate(4517%) hue-rotate(8deg) brightness(98%) contrast(102%);
}
.logo:hover .brand-logo {
  transform: translateY(-1px);
}

/* Real Instagram mark in the contact-page social link. */
.contact-svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: inline-grid;
  place-items: center;
}
.contact-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* ===== CU/ONE launch polish v6 ===== */
/* Every portfolio caption starts in the top-left corner of the space assigned to it. */
.portfolio-item .project-copy {
  align-self: start !important;
  justify-self: start !important;
  place-self: start !important;
  text-align: left !important;
  padding: 0 !important;
  margin: 0 !important;
}
.portfolio-item .project-copy > * {
  margin-left: 0 !important;
  text-align: left !important;
}

/* Dublis: keep the caption attached to the two small visuals instead of allowing
   the tall image in the opposite half to push the caption down. */
.project-dublis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
.project-dublis .dublis-left {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.project-dublis .dublis-small-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-dublis .dublis-small-grid .media {
  aspect-ratio: 1 / 1;
}
.project-dublis .c {
  grid-column: 3 / span 2;
  grid-row: 1;
  aspect-ratio: 1 / 1.05;
}
.project-dublis .project-copy {
  width: 100%;
}

/* Use the supplied lossless leisure-site artwork. */
.project-water .a img {
  image-rendering: auto;
}

@media (max-width: 800px) {
  .project-dublis .dublis-left,
  .project-dublis .c {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  .project-dublis .dublis-small-grid { gap: 12px; }
}
@media (max-width: 560px) {
  .project-dublis .dublis-small-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ===== CU/ONE polish v7 ===== */
/* Language switch behaves like the other navigation controls. */
.language {
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.language:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

/* Portfolio copy: every description is pinned to the top-left of its own local composition block. */
.portfolio-item .project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  align-self: flex-start !important;
  justify-self: stretch !important;
  width: 100%;
  min-height: 0;
}

/* Renatus — large image left, two small images + caption grouped on the right. */
.project-renatus .main {
  grid-column: 1 / span 2;
  grid-row: 1;
  aspect-ratio: 1.14 / 1;
}
.project-renatus .renatus-right {
  grid-column: 3 / span 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.renatus-right-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-renatus .renatus-right .media { aspect-ratio: 1 / 1; }
.project-renatus .renatus-right .project-copy { grid-column: auto; grid-row: auto; }

/* Urban Sushi — two small images + caption grouped on the left. */
.project-urban .urban-left {
  grid-column: 1 / span 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.urban-left-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-urban .urban-left .media { aspect-ratio: 1 / 1; }
.project-urban .c {
  grid-column: 3 / span 2;
  grid-row: 1;
  aspect-ratio: 1 / 1;
}
.project-urban .urban-left .project-copy { grid-column: auto; grid-row: auto; }

/* Leisure website — caption stays directly below the left image, unaffected by the tall right image. */
.project-water .water-left {
  grid-column: 1 / span 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.project-water .water-left > .media { aspect-ratio: 1.35 / 1; }
.project-water .b {
  grid-column: 3 / span 2;
  grid-row: 1;
  aspect-ratio: 1 / 1;
}
.project-water .water-left .project-copy { grid-column: auto; grid-row: auto; }

/* Skin Elegance — large image left, two small images + caption grouped on the right. */
.project-skin .a {
  grid-column: 1 / span 2;
  grid-row: 1;
  aspect-ratio: 1 / 1;
}
.project-skin .skin-right {
  grid-column: 3 / span 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.skin-right-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-skin .skin-right .media { aspect-ratio: 1 / 1; }
.project-skin .skin-right .project-copy { grid-column: auto; grid-row: auto; }

@media (max-width: 800px) {
  .project-renatus .renatus-right,
  .project-urban .urban-left,
  .project-water .water-left,
  .project-skin .skin-right {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    gap: 12px;
  }
  .renatus-right-media-grid,
  .urban-left-media-grid,
  .skin-right-media-grid { gap: 12px; }
  .project-renatus .main,
  .project-urban .c,
  .project-water .b,
  .project-skin .a {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 560px) {
  .renatus-right-media-grid,
  .urban-left-media-grid,
  .skin-right-media-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .project-renatus .renatus-right,
  .project-urban .urban-left,
  .project-water .water-left,
  .project-skin .skin-right { gap: 10px; }
}

/* ===== CU/ONE portfolio grid system v8 =====
   One source of truth for portfolio spacing.
   Desktop: 4 equal columns, 20px everywhere.
   Tablet:  2 columns, 16px everywhere.
   Mobile:  1 column, 12px everywhere.
   Replace an image file inside an existing .media slot and the composition stays aligned. */
.portfolio-page {
  --portfolio-gap: 20px;
}

/* The outer stack uses exactly the same spacing as every internal composition. */
.portfolio-grid {
  gap: var(--portfolio-gap) !important;
}

/* Every project is the same four-column frame. */
.portfolio-item,
.project-renatus,
.project-designweek,
.project-gateris,
.project-urban,
.project-shirts,
.project-garage,
.project-naturals,
.project-dublis,
.project-hope,
.project-app,
.project-stars,
.project-water,
.project-skin {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--portfolio-gap) !important;
  row-gap: var(--portfolio-gap) !important;
  align-items: start;
  margin: 0;
}

/* Nested two-column groups use the same grid unit and the same gap. */
.renatus-right-media-grid,
.urban-left-media-grid,
.dublis-small-grid,
.skin-right-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--portfolio-gap) !important;
}

/* Grouped image + caption stacks also use exactly the same vertical gap. */
.project-renatus .renatus-right,
.project-urban .urban-left,
.project-dublis .dublis-left,
.project-water .water-left,
.project-skin .skin-right {
  gap: var(--portfolio-gap) !important;
  margin: 0;
}

/* Remove historical minimum heights that produced random-looking empty bands. */
.portfolio-item .media,
.project-renatus .main,
.project-designweek .c,
.project-gateris .main,
.project-urban .c,
.project-garage .c,
.project-naturals .a,
.project-dublis .c,
.project-hope .c,
.project-stars .a,
.project-water .a,
.project-water .b,
.project-skin .a {
  min-height: 0 !important;
}

/* Media slots are predictable: image always fills the slot and never creates baseline gaps. */
.portfolio-item .media {
  display: block;
  min-width: 0;
  line-height: 0;
}
.portfolio-item .media img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Captions always begin at the exact top-left of their assigned grid cell. */
.portfolio-item .project-copy {
  place-self: start stretch !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Standard slot vocabulary. Existing project-specific selectors decide which slot is used.
   These ratios keep replacements predictable without hard-coded pixel heights. */
.portfolio-item .media.a,
.portfolio-item .media.b,
.portfolio-item .media.side,
.portfolio-item .media.small-a,
.portfolio-item .media.small-b,
.renatus-right-media-grid .media,
.urban-left-media-grid .media,
.dublis-small-grid .media,
.skin-right-media-grid .media {
  aspect-ratio: 1 / 1;
}

/* Keep the designed large-feature shapes while all surrounding spacing stays on-grid. */
.project-renatus .main { aspect-ratio: 1.14 / 1; }
.project-designweek .c { aspect-ratio: 1 / 1.08; }
.project-gateris .main { aspect-ratio: 1.38 / 1; }
.project-urban .c { aspect-ratio: 1 / 1; }
.project-shirts .a,
.project-shirts .b { aspect-ratio: 1.3 / 1; }
.project-garage .c { aspect-ratio: 1 / 1.05; }
.project-naturals .a { aspect-ratio: 1 / 1; }
.project-dublis .c { aspect-ratio: 1 / 1.05; }
.project-hope .c { aspect-ratio: 1 / 1.03; }
.project-app .a,
.project-app .b { aspect-ratio: 1.2 / 1; }
.project-stars .a { aspect-ratio: 1 / 1; }
.project-water .water-left > .media { aspect-ratio: 1.35 / 1; }
.project-water .b { aspect-ratio: 1 / 1; }
.project-skin .a { aspect-ratio: 1 / 1; }

@media (max-width: 800px) {
  .portfolio-page { --portfolio-gap: 16px; }

  .portfolio-item,
  .project-renatus,
  .project-designweek,
  .project-gateris,
  .project-urban,
  .project-shirts,
  .project-garage,
  .project-naturals,
  .project-dublis,
  .project-hope,
  .project-app,
  .project-stars,
  .project-water,
  .project-skin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-renatus .renatus-right,
  .project-urban .urban-left,
  .project-dublis .dublis-left,
  .project-water .water-left,
  .project-skin .skin-right,
  .project-renatus .main,
  .project-urban .c,
  .project-dublis .c,
  .project-water .b,
  .project-skin .a {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 560px) {
  .portfolio-page { --portfolio-gap: 12px; }

  .portfolio-item,
  .project-renatus,
  .project-designweek,
  .project-gateris,
  .project-urban,
  .project-shirts,
  .project-garage,
  .project-naturals,
  .project-dublis,
  .project-hope,
  .project-app,
  .project-stars,
  .project-water,
  .project-skin,
  .renatus-right-media-grid,
  .urban-left-media-grid,
  .dublis-small-grid,
  .skin-right-media-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== CU/ONE Portfolio Grid System v9 =====
   Figma reference at 1920 px viewport:
   outer margins: 120 px / content: 1680 px
   4 columns: 405 px each / gutters: 20 px
   large cell: 830 x 830 (2 columns + 1 gutter)
   small cell: 405 x 405
   Every project is composed only from these cells, so swapping images later
   does not require recalculating widths or spacing. */
.portfolio-page.shell {
  width: min(calc(100% - 240px), 1680px);
  max-width: 1680px;
}
.portfolio-page {
  --portfolio-gap: 20px;
  --portfolio-cols: 4;
  --portfolio-cell: calc((100% - (var(--portfolio-gap) * 3)) / 4);
}
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: var(--portfolio-gap);
}
.portfolio-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--portfolio-cell);
  gap: var(--portfolio-gap);
  align-items: stretch;
  width: 100%;
}
.portfolio-item > .media,
.portfolio-item > .project-copy {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.portfolio-item > .media {
  overflow: hidden;
  aspect-ratio: auto !important;
}
.portfolio-item > .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-item > .project-copy {
  display: block;
  place-self: stretch;
  align-self: stretch;
  justify-self: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
}
.portfolio-item > .project-copy h2,
.portfolio-item > .project-copy p,
.portfolio-item > .project-copy small {
  margin-left: 0;
  text-align: left;
}

/* Exact cell placements. L = 830x830, S = 405x405 at 1920. */
.project-renatus .main      { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.project-renatus .small-a   { grid-column: 3; grid-row: 1; }
.project-renatus .small-b   { grid-column: 4; grid-row: 1; }
.project-renatus .project-copy { grid-column: 3; grid-row: 2; }

.project-designweek .a      { grid-column: 1; grid-row: 1; }
.project-designweek .project-copy { grid-column: 2; grid-row: 1; }
.project-designweek .b      { grid-column: 2; grid-row: 2; }
.project-designweek .c      { grid-column: 3 / span 2; grid-row: 1 / span 2; }

.project-gateris .main      { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.project-gateris .side      { grid-column: 3; grid-row: 1; }
.project-gateris .project-copy { grid-column: 4; grid-row: 1; }

.project-urban .a           { grid-column: 1; grid-row: 1; }
.project-urban .b           { grid-column: 2; grid-row: 1; }
.project-urban .c           { grid-column: 3 / span 2; grid-row: 1 / span 2; }
.project-urban .project-copy { grid-column: 1; grid-row: 2; }

.project-shirts .a          { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.project-shirts .b          { grid-column: 3 / span 2; grid-row: 1 / span 2; }

.project-garage .a          { grid-column: 1; grid-row: 1; }
.project-garage .project-copy { grid-column: 2; grid-row: 1; }
.project-garage .b          { grid-column: 2; grid-row: 2; }
.project-garage .c          { grid-column: 3 / span 2; grid-row: 1 / span 2; }

.project-naturals .a        { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.project-naturals .b        { grid-column: 3; grid-row: 1; }
.project-naturals .project-copy { grid-column: 4; grid-row: 1; }

.project-dublis .a          { grid-column: 1; grid-row: 1; }
.project-dublis .b          { grid-column: 2; grid-row: 1; }
.project-dublis .c          { grid-column: 3 / span 2; grid-row: 1 / span 2; }
.project-dublis .project-copy { grid-column: 1; grid-row: 2; }

.project-hope .a            { grid-column: 1; grid-row: 1; }
.project-hope .project-copy { grid-column: 2; grid-row: 1; }
.project-hope .b            { grid-column: 2; grid-row: 2; }
.project-hope .c            { grid-column: 3 / span 2; grid-row: 1 / span 2; }

.project-app .a             { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.project-app .b             { grid-column: 3 / span 2; grid-row: 1 / span 2; }

.project-stars .a           { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.project-stars .b           { grid-column: 3; grid-row: 1; }
.project-stars .project-copy { grid-column: 4; grid-row: 1; }

.project-water .a           { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.project-water .b           { grid-column: 3 / span 2; grid-row: 1 / span 2; }
.project-water .project-copy { grid-column: 1; grid-row: 3; }

.project-skin .a            { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.project-skin .b            { grid-column: 3; grid-row: 1; }
.project-skin .c            { grid-column: 4; grid-row: 1; }
.project-skin .project-copy { grid-column: 3; grid-row: 2; }

/* Keep the grid usable on smaller screens while retaining the same cell logic. */
@media (max-width: 1439px) {
  .portfolio-page.shell { width: min(calc(100% - 120px), 1680px); }
}
@media (max-width: 1000px) {
  .portfolio-page.shell { width: min(calc(100% - 48px), 1680px); }
  .portfolio-page { --portfolio-gap: 16px; --portfolio-cell: calc((100% - var(--portfolio-gap)) / 2); }
  .portfolio-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: var(--portfolio-cell);
    gap: var(--portfolio-gap);
  }
  .portfolio-item > .media,
  .portfolio-item > .project-copy {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .portfolio-item > .media.main,
  .portfolio-item > .media.c,
  .project-shirts > .media,
  .project-app > .media,
  .project-stars > .media.a,
  .project-water > .media,
  .project-skin > .media.a,
  .project-naturals > .media.a {
    grid-column: 1 / -1 !important;
    grid-row: span 2 !important;
  }
  .portfolio-item > .project-copy { padding-top: 0; }
}
@media (max-width: 600px) {
  .portfolio-page.shell { width: calc(100% - 32px); }
  .portfolio-page { --portfolio-gap: 12px; --portfolio-cell: calc(100vw - 32px); }
  .portfolio-item { grid-template-columns: 1fr; grid-auto-rows: auto; gap: var(--portfolio-gap); }
  .portfolio-item > .media { aspect-ratio: 1 / 1 !important; height: auto; }
  .portfolio-item > .project-copy { height: auto; min-height: 0; padding: 4px 0 18px; }
  .portfolio-item > .media,
  .portfolio-item > .project-copy { grid-column: 1 !important; grid-row: auto !important; }
}


/* ===== CU/ONE Portfolio Grid System v10 =====
   Keep the v9 spacing/grid, but prevent visual cropping.
   Every portfolio slot remains a 405x405 or 830x830 square module,
   while the artwork inside is shown whole instead of being cut off. */
.portfolio-item > .media {
  background: #e8e7ef;
}
.portfolio-item > .media img {
  object-fit: contain !important;
  object-position: center center;
  background: #e8e7ef;
}
.portfolio-item > .project-copy {
  overflow: visible !important;
}


/* ===== CU/ONE Portfolio Mosaic System v11 =====
   Canonical project module:
   - 4 equal columns
   - 2 equal rows
   - 20px gap
   - 1 large 2x2 square (830x830 at 1920)
   - 4 small 1x1 squares (405x405 at 1920)
   Small cells may contain an image, copy, or remain intentionally empty.
   This is the only portfolio layout rule to edit when changing future work. */

.portfolio-page.shell {
  width: min(calc(100% - 240px), 1680px) !important;
  max-width: 1680px !important;
}

.portfolio-page {
  --portfolio-gap: 20px;
  --portfolio-cell: calc((100% - (var(--portfolio-gap) * 3)) / 4);
}

.portfolio-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--portfolio-gap) !important;
}

.portfolio-item.portfolio-mosaic {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, var(--portfolio-cell)) !important;
  grid-auto-rows: unset !important;
  gap: var(--portfolio-gap) !important;
  width: 100% !important;
  height: calc((var(--portfolio-cell) * 2) + var(--portfolio-gap)) !important;
  min-height: 0 !important;
  margin: 0 !important;
  align-items: stretch !important;
}

.portfolio-mosaic .mosaic-large,
.portfolio-mosaic .mosaic-small {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

.portfolio-mosaic.big-left .mosaic-large {
  grid-column: 1 / span 2 !important;
  grid-row: 1 / span 2 !important;
}
.portfolio-mosaic.big-left .slot-1 { grid-column: 3 !important; grid-row: 1 !important; }
.portfolio-mosaic.big-left .slot-2 { grid-column: 4 !important; grid-row: 1 !important; }
.portfolio-mosaic.big-left .slot-3 { grid-column: 3 !important; grid-row: 2 !important; }
.portfolio-mosaic.big-left .slot-4 { grid-column: 4 !important; grid-row: 2 !important; }

.portfolio-mosaic.big-right .mosaic-large {
  grid-column: 3 / span 2 !important;
  grid-row: 1 / span 2 !important;
}
.portfolio-mosaic.big-right .slot-1 { grid-column: 1 !important; grid-row: 1 !important; }
.portfolio-mosaic.big-right .slot-2 { grid-column: 2 !important; grid-row: 1 !important; }
.portfolio-mosaic.big-right .slot-3 { grid-column: 1 !important; grid-row: 2 !important; }
.portfolio-mosaic.big-right .slot-4 { grid-column: 2 !important; grid-row: 2 !important; }

.portfolio-mosaic .media {
  display: block !important;
  overflow: hidden !important;
  background: #f2f0f8 !important;
  line-height: 0 !important;
}
.portfolio-mosaic .media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.portfolio-mosaic .project-copy {
  display: block !important;
  place-self: stretch !important;
  text-align: left !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.portfolio-mosaic .project-copy > * {
  margin-left: 0 !important;
  text-align: left !important;
}
.portfolio-mosaic .mosaic-empty {
  background: transparent !important;
  pointer-events: none;
}

/* Tablet: large square spans full width, 4 small cells remain a 2x2 matrix below. */
@media (max-width: 1000px) {
  .portfolio-page.shell {
    width: min(calc(100% - 48px), 1680px) !important;
  }
  .portfolio-page {
    --portfolio-gap: 16px;
    --portfolio-cell: calc((100% - var(--portfolio-gap)) / 2);
  }
  .portfolio-item.portfolio-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, var(--portfolio-cell)) !important;
    height: auto !important;
  }
  .portfolio-mosaic .mosaic-large {
    grid-column: 1 / -1 !important;
    grid-row: 1 / span 2 !important;
  }
  .portfolio-mosaic .slot-1 { grid-column: 1 !important; grid-row: 3 !important; }
  .portfolio-mosaic .slot-2 { grid-column: 2 !important; grid-row: 3 !important; }
  .portfolio-mosaic .slot-3 { grid-column: 1 !important; grid-row: 4 !important; }
  .portfolio-mosaic .slot-4 { grid-column: 2 !important; grid-row: 4 !important; }
}

/* Mobile: one clean column; empty cells disappear. */
@media (max-width: 600px) {
  .portfolio-page.shell {
    width: calc(100% - 32px) !important;
  }
  .portfolio-page { --portfolio-gap: 12px; }
  .portfolio-item.portfolio-mosaic {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--portfolio-gap) !important;
    height: auto !important;
  }
  .portfolio-mosaic .mosaic-large,
  .portfolio-mosaic .mosaic-small.media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
  .portfolio-mosaic .project-copy {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 4px 0 18px !important;
  }
  .portfolio-mosaic .mosaic-empty { display: none !important; }
}


/* ===== v12 fix =====
   Keep all portfolio cells perfectly square, but never crop artwork vertically or horizontally.
   User-provided square images should scale proportionally inside 405x405 and 830x830 modules. */
.portfolio-mosaic .mosaic-large.media img,
.portfolio-mosaic .mosaic-small.media img {
  object-fit: contain !important;
  object-position: center center !important;
}


/* ===== v13 portfolio system =====
   Reusable layouts based on the approved references: 
   1) feature grid = one 830x830 square + four 405x405 cells
   2) double grid = two 830x830 squares side by side */
.portfolio-item.portfolio-double {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--portfolio-gap) !important;
  width: 100% !important;
  margin: 0 !important;
  align-items: stretch !important;
}

.portfolio-item.portfolio-double .double-cell {
  min-width: 0 !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
}

.portfolio-item.portfolio-double .media {
  display: block !important;
  overflow: hidden !important;
  background: #f2f0f8 !important;
  line-height: 0 !important;
}

.portfolio-item.portfolio-double .media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.portfolio-mosaic .project-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

@media (max-width: 1000px) {
  .portfolio-item.portfolio-double {
    grid-template-columns: 1fr !important;
  }
}


/* ===== CU/ONE Portfolio Layout v14 =====
   Layout structure adapted from the final reference code supplied by the designer.
   IMPORTANT: this block changes layout only. Existing CU/ONE colors, typography,
   button styling, navigation, hover language and visual UI remain untouched. */

.portfolio-page {
  margin: 0 120px !important;
  padding: 80px 0 120px !important;
  position: relative;
}

@media (min-width: 1921px) {
  .portfolio-page {
    width: 1680px !important;
    margin: 0 auto !important;
  }
}

.portfolio-hero {
  max-width: 720px;
}

/* Preserve existing CU/ONE type styles, only normalize layout spacing. */
.portfolio-head {
  padding: 0 !important;
}
.portfolio-head p {
  margin-bottom: 0 !important;
}

.portfolio-filters {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin-top: 92px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: flex-start;
  width: 100%;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.portfolio-filters::-webkit-scrollbar { display: none; }
.portfolio-filter { flex: 0 0 auto; }


/* =========================
   PORTFOLIO MATERIAL LAYOUT
   ========================= */

.portfolio-sections {
  display: grid !important;
  gap: 48px !important;
  margin-top: 44px !important;
}


/* 2 COLUMN LAYOUT */

.portfolio-section--dual,
.portfolio-section__top-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 830px)) !important;
  gap: 20px !important;
  justify-content: start !important;
}


/* FEATURE GRID */

.portfolio-section--feature-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 830px) minmax(0, 830px) !important;
  gap: 20px !important;
  justify-content: start !important;
}


/* SQUARE BLOCK */

.portfolio-square-block {
  width: min(100%, 830px) !important;
}


/* 2 × 2 GRID */

.portfolio-square-block--grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  aspect-ratio: 1 / 1 !important;
}


/* BANNER GROUP */

.portfolio-section--dual-banner {
  display: grid !important;
  gap: 20px !important;
}


/* CARD BASE */

.portfolio-card {
  position: relative;
  overflow: hidden;
}


/* SQUARE CARD */

.portfolio-card--square {
  width: min(100%, 830px) !important;
  aspect-ratio: 1 / 1 !important;
}


/* FULL WIDTH BANNER */

.portfolio-card--banner {
  width: min(100%, 1680px) !important;
  min-height: 240px;
}


/* GRID TILE */

.portfolio-card--grid-tile {
  min-width: 0;
  min-height: 0;
}


/* TILE SPANNING 2 COLUMNS */

.portfolio-card--span-two {
  grid-column: span 2;
}

.portfolio-card--span-two-mobile {
  grid-column: auto;
}


/* PLACEHOLDER FOR GRID STRUCTURE */

.portfolio-card--placeholder {
  visibility: hidden !important;
  pointer-events: none !important;
}


/* Preserve CU/ONE UI and show square artwork without cropping. */
.portfolio-card picture {
  display: block;
  width: 100%;
}

.portfolio-card__image,
.portfolio-card.media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.portfolio-card--text {
  overflow: visible;
}

.portfolio-card__text-block {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
  padding-top: 2px !important;
}


/* =========================
   TABLET
   ========================= */

@media (min-width: 769px) and (max-width: 1024px) {

  .portfolio-sections,
  .portfolio-section--dual,
  .portfolio-section--feature-grid,
  .portfolio-section__top-row,
  .portfolio-section--dual-banner {
    gap: clamp(16px, 2vw, 20px) !important;
  }

  .portfolio-sections {
    margin-top: clamp(28px, 4vw, 40px) !important;
    gap: clamp(24px, 3vw, 32px) !important;
  }

  .portfolio-section--feature-grid {
    grid-template-columns:
      repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important;

    justify-content: stretch !important;
  }

  .portfolio-section--dual,
  .portfolio-section__top-row {
    grid-template-columns:
      repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;

    justify-content: stretch !important;
  }

  .portfolio-square-block--grid {
    grid-template-rows: none !important;
    gap: clamp(16px, 2vw, 20px) !important;
    aspect-ratio: auto !important;
  }

  .portfolio-card--square,
  .portfolio-card--banner,
  .portfolio-square-block {
    width: 100% !important;
    max-width: none !important;
  }

  .portfolio-card--grid-tile {
    aspect-ratio: 1 / 1 !important;
  }

  .portfolio-card--span-two {
    aspect-ratio: 2 / 1 !important;
  }

  .portfolio-card--banner {
    min-height: 0;
    aspect-ratio: 1.45 / 1 !important;
  }

  .portfolio-card--text.portfolio-card--square,
  .portfolio-card--text.portfolio-card--grid-tile,
  .portfolio-card--text.portfolio-card--span-two {
    aspect-ratio: auto !important;
    height: auto !important;
  }

  .portfolio-card--placeholder {
    display: none !important;
  }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

  .portfolio-sections,
  .portfolio-section--dual,
  .portfolio-section--feature-grid,
  .portfolio-section__top-row,
  .portfolio-section--dual-banner {
    gap: 12px !important;
  }

  .portfolio-sections {
    gap: 20px !important;
    margin-top: 28px !important;
  }

  .portfolio-section--dual,
  .portfolio-section--feature-grid,
  .portfolio-section__top-row {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: center !important;
  }

  .portfolio-square-block {
    width: 100% !important;
    max-width: none !important;
  }

  .portfolio-square-block--grid {
    grid-template-rows: none !important;
    gap: 12px !important;
    aspect-ratio: auto !important;
  }

  .portfolio-card--square {
    width: 100% !important;
    max-width: none !important;
  }

  .portfolio-card--banner {
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 1.15 / 1 !important;
    min-height: 0;
  }

  .portfolio-card--banner-mobile-alt {
    width: min(100%, 321px) !important;
    margin: 0 auto !important;
    aspect-ratio: 321 / 434 !important;
  }

  .portfolio-card--grid-tile {
    aspect-ratio: 1 / 1 !important;
  }

  .portfolio-card--span-two {
    aspect-ratio: 2 / 1 !important;
  }

  .portfolio-card--span-two-mobile {
    grid-column: span 2 !important;
  }

  .portfolio-card--text.portfolio-card--square,
  .portfolio-card--text.portfolio-card--grid-tile,
  .portfolio-card--text.portfolio-card--span-two,
  .portfolio-card--text.portfolio-card--span-two-mobile {
    aspect-ratio: auto !important;
    height: auto !important;
  }

  .portfolio-card--placeholder {
    display: block !important;
    visibility: hidden !important;
    pointer-events: none !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }
}


/* ==========================================================
   CU/ONE PORTFOLIO LAYOUT v16 — SINGLE SOURCE OF TRUTH
   Layout follows the supplied PORTFOLIO MATERIAL LAYOUT.
   Legacy .portfolio-item/.media/.project-copy rules no longer
   apply because portfolio markup no longer uses those classes.
   ========================================================== */

.portfolio-sections {
  display: grid;
  gap: 48px;
  margin-top: 44px;
}

.portfolio-section--dual,
.portfolio-section__top-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 830px));
  gap: 20px;
  justify-content: start;
}

.portfolio-section--feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 830px) minmax(0, 830px);
  gap: 20px;
  justify-content: start;
}

.portfolio-square-block {
  width: min(100%, 830px);
}

.portfolio-square-block--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
  aspect-ratio: 1 / 1;
}

.portfolio-section--dual-banner {
  display: grid;
  gap: 20px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
}

.portfolio-card--text {
  overflow: visible;
}

.portfolio-card--square {
  width: min(100%, 830px);
  aspect-ratio: 1 / 1;
}

.portfolio-card--banner {
  width: min(100%, 1680px);
  min-height: 240px;
}

.portfolio-card--grid-tile {
  min-width: 0;
  min-height: 0;
}

.portfolio-card--span-two {
  grid-column: span 2;
}

.portfolio-card--span-two-mobile {
  grid-column: auto;
}

.portfolio-card--placeholder {
  visibility: hidden;
  pointer-events: none;
}

/* CU/ONE visual styling only — layout above stays untouched. */
.portfolio-card picture,
.portfolio-card > img {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform .45s ease, filter .45s ease;
}

.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.portfolio-card__text-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding-top: 2px;
  text-align: left;
}

.portfolio-card__text-title,
.portfolio-card__text-copy,
.portfolio-card__text-note {
  margin: 0;
  text-align: left;
}

/* Keep existing CU/ONE typography/color rather than importing the dark demo UI. */
.portfolio-card__text-title {
  color: var(--orange);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 500;
  text-transform: uppercase;
}
.portfolio-card__text-copy {
  color: var(--black);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 600;
}
.portfolio-card__text-note {
  color: var(--black);
  font-size: 15px;
  line-height: 1.2;
  font-style: italic;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .portfolio-sections,
  .portfolio-section--dual,
  .portfolio-section--feature-grid,
  .portfolio-section__top-row,
  .portfolio-section--dual-banner {
    gap: clamp(16px, 2vw, 20px);
  }

  .portfolio-sections {
    margin-top: clamp(28px, 4vw, 40px);
    gap: clamp(24px, 3vw, 32px);
  }

  .portfolio-section--feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    justify-content: stretch;
  }

  .portfolio-section--dual,
  .portfolio-section__top-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    justify-content: stretch;
  }

  .portfolio-square-block--grid {
    grid-template-rows: none;
    gap: clamp(16px, 2vw, 20px);
    aspect-ratio: auto;
  }

  .portfolio-card--square,
  .portfolio-card--banner,
  .portfolio-square-block {
    width: 100%;
    max-width: none;
  }

  .portfolio-card--grid-tile { aspect-ratio: 1 / 1; }
  .portfolio-card--span-two { aspect-ratio: 2 / 1; }

  .portfolio-card--banner {
    min-height: 0;
    aspect-ratio: 1.45 / 1;
  }

  .portfolio-card--text.portfolio-card--square,
  .portfolio-card--text.portfolio-card--grid-tile,
  .portfolio-card--text.portfolio-card--span-two {
    aspect-ratio: auto;
    height: auto;
  }

  .portfolio-card--placeholder { display: none; }
}

@media (max-width: 768px) {
  .portfolio-sections,
  .portfolio-section--dual,
  .portfolio-section--feature-grid,
  .portfolio-section__top-row,
  .portfolio-section--dual-banner {
    gap: 12px;
  }

  .portfolio-sections {
    gap: 20px;
    margin-top: 28px;
  }

  .portfolio-section--dual,
  .portfolio-section--feature-grid,
  .portfolio-section__top-row {
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
  }

  .portfolio-square-block,
  .portfolio-card--square {
    width: 100%;
    max-width: none;
  }

  .portfolio-square-block--grid {
    grid-template-rows: none;
    gap: 12px;
    aspect-ratio: auto;
  }

  .portfolio-card--banner {
    width: 100%;
    max-width: none;
    aspect-ratio: 1.15 / 1;
    min-height: 0;
  }

  .portfolio-card--banner-mobile-alt {
    width: min(100%, 321px);
    margin: 0 auto;
    aspect-ratio: 321 / 434;
  }

  .portfolio-card--grid-tile { aspect-ratio: 1 / 1; }
  .portfolio-card--span-two { aspect-ratio: 2 / 1; }
  .portfolio-card--span-two-mobile { grid-column: span 2; }

  .portfolio-card--text.portfolio-card--square,
  .portfolio-card--text.portfolio-card--grid-tile,
  .portfolio-card--text.portfolio-card--span-two,
  .portfolio-card--text.portfolio-card--span-two-mobile {
    aspect-ratio: auto;
    height: auto;
  }

  .portfolio-card--placeholder {
    display: block;
    visibility: hidden;
    pointer-events: none;
    aspect-ratio: 1 / 1;
    height: auto;
  }
}


/* ===== v17 portfolio filter fix =====
   v16 moved projects from .portfolio-item to .portfolio-section.
   Hidden state must therefore apply to the new section class. */
.portfolio-section.is-hidden,
.portfolio-section[hidden] {
  display: none !important;
}


/* =========================================================
   v18 RESPONSIVE POLISH
   ========================================================= */

.nav-wrap {
  position: relative;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 0, 3, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color .2s ease,
    background-color .2s ease,
    transform .2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--orange);
  background: rgba(255,255,255,.5);
  outline: none;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease, background-color .2s ease;
}

.site-header.menu-open .menu-toggle {
  color: var(--orange);
}

.site-header.menu-open .menu-toggle span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-header,
  .site-header.is-scrolled {
    overflow: visible;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto auto !important;
    gap: 12px;
  }

  .language {
    grid-column: auto !important;
    justify-self: end;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav {
    position: absolute !important;
    z-index: 20;
    top: calc(100% - 5px);
    left: 0;
    right: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.88), rgba(245,242,255,.78));
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    box-shadow: 0 18px 45px rgba(43,34,67,.13);
    font-size: 18px !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
    transform-origin: top center;
    transition:
      opacity .22s ease,
      visibility .22s ease,
      transform .25s cubic-bezier(.2,.7,.2,1);
  }

  .site-header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav a.active {
    background: rgba(234,72,0,.07);
    color: var(--orange);
    transform: none;
    outline: none;
  }

  .nav-divider {
    width: 100% !important;
    height: 1px !important;
    margin: 1px 0 !important;
    background: rgba(0,0,3,.12) !important;
    transform: none !important;
  }

  .orbit-wrap {
    display: none !important;
  }

  .home-page .about {
    min-height: auto;
    padding-bottom: 92px;
  }

  .home-page .about-cards {
    width: 100%;
  }

  .hero {
    row-gap: 14px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .contact-intro {
    grid-template-columns: 1fr !important;
    gap: 42px;
    align-items: start;
  }

  .contact-copy {
    order: 1;
    max-width: 800px;
  }

  .portrait-card {
    order: 2 !important;
    justify-self: start;
    margin-top: 2px;
  }

  .portrait-card img {
    width: min(360px, 58vw);
  }
}

@media (max-width: 600px) {
  .nav-wrap {
    grid-template-columns: 1fr auto auto !important;
    gap: 8px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .nav {
    top: calc(100% - 2px);
    padding: 8px;
    border-radius: 18px;
  }

  .nav a {
    padding: 13px 14px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 56px);
  }

  .hero-visual {
    width: 106%;
    margin-left: -3%;
  }

  .contact-intro {
    gap: 32px;
    padding-top: 42px;
    padding-bottom: 68px;
  }

  .portrait-card {
    justify-self: center;
    width: 100%;
  }

  .portrait-card img {
    width: min(300px, 76vw);
    margin-inline: auto;
  }

  .portrait-card figcaption {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .menu-toggle,
  .menu-toggle span {
    transition: none !important;
  }
}


/* =========================================================
   v19 RESPONSIVE FIX
   - language switch lives inside burger on tablet/mobile
   - mobile portfolio becomes one simple full-width vertical stream
   ========================================================= */

.language-mobile {
  display: none;
}

@media (max-width: 900px) {
  .language-desktop {
    display: none !important;
  }

  .language-mobile {
    display: block !important;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: left;
  }

  .language-mobile:hover,
  .language-mobile:focus-visible {
    background: rgba(234,72,0,.07);
    color: var(--orange);
    outline: none;
  }

  .nav-divider-language {
    display: block !important;
  }

  /* Logo + burger only in the top row. */
  .nav-wrap {
    grid-template-columns: 1fr auto !important;
  }
}

/* On mobile, ignore the desktop mosaic geometry.
   Every project image becomes a full-width square, one after another.
   Visuals should bleed from edge to edge of the viewport. */
@media (max-width: 768px) {
  .portfolio-sections {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    width: calc(100% + 24px) !important;
    margin-top: 28px !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
  }

  .portfolio-section,
  .portfolio-section--dual,
  .portfolio-section--feature-grid,
  .portfolio-section__top-row,
  .portfolio-section--dual-banner {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    gap: 12px !important;
  }

  /* Flatten the internal 2×2 block so its cards join the same vertical flow. */
  .portfolio-square-block,
  .portfolio-square-block--grid {
    display: contents !important;
  }

  .portfolio-card,
  .portfolio-card--square,
  .portfolio-card--grid-tile,
  .portfolio-card--span-two,
  .portfolio-card--span-two-mobile,
  .portfolio-card--banner {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Every image/material tile is a clean full-width square. */
  .portfolio-card:not(.portfolio-card--text):not(.portfolio-card--placeholder) {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
  }

  .portfolio-card picture,
  .portfolio-card__image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .portfolio-card__image {
    object-fit: contain !important;
    object-position: center center !important;
  }

  /* Text should flow naturally between the images, not reserve a square. */
  .portfolio-card--text,
  .portfolio-card--text.portfolio-card--square,
  .portfolio-card--text.portfolio-card--grid-tile,
  .portfolio-card--text.portfolio-card--span-two,
  .portfolio-card--text.portfolio-card--span-two-mobile {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 4px 12px 8px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* No blank structural cells are needed in a one-column mobile layout. */
  .portfolio-card--placeholder {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .language-mobile {
    padding: 13px 14px;
  }

  .portfolio-sections {
    gap: 24px !important;
  }
}


/* =========================================================
   v21 MOBILE PORTFOLIO WIDTH FIX
   Desktop 120px margins must not leak into mobile.
   Mobile copy keeps safe padding; project visuals bleed edge-to-edge.
   ========================================================= */
@media (max-width: 768px) {
  .portfolio-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 32px 0 72px !important;
    box-sizing: border-box !important;
  }

  .portfolio-hero,
  .portfolio-head {
    width: 100% !important;
    max-width: none !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  .portfolio-title {
    max-width: 100% !important;
  }

  .portfolio-intro {
    max-width: 100% !important;
  }

  .portfolio-filters {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .portfolio-sections {
    width: 100% !important;
    max-width: none !important;
    margin: 28px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .portfolio-section,
  .portfolio-section--dual,
  .portfolio-section--feature-grid,
  .portfolio-section__top-row,
  .portfolio-section--dual-banner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .portfolio-card,
  .portfolio-card--square,
  .portfolio-card--grid-tile,
  .portfolio-card--span-two,
  .portfolio-card--span-two-mobile,
  .portfolio-card--banner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .portfolio-card:not(.portfolio-card--text):not(.portfolio-card--placeholder) {
    aspect-ratio: 1 / 1 !important;
  }

  .portfolio-card picture,
  .portfolio-card__image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .portfolio-card__image {
    object-fit: contain !important;
    object-position: center center !important;
  }

  .portfolio-card--text {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 420px) {
  .portfolio-hero,
  .portfolio-head {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .portfolio-card--text {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* =========================================================
   v22 FINAL MOBILE POLISH
   - remove extra nav divider
   - horizontally scrollable portfolio filters on mobile
   ========================================================= */

.nav-divider-language {
  display: none !important;
}

@media (max-width: 768px) {
  .portfolio-head {
    overflow: visible !important;
  }

  .portfolio-filters,
  .filters.portfolio-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    margin-right: -10px !important;
    padding-right: 20px !important;
    padding-bottom: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-filters::-webkit-scrollbar,
  .filters.portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filter,
  .filter.portfolio-filter {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
  }
}


/* =========================================================
   v23 — playful STRETCH TEXT experiment for landing H1
   ========================================================= */

.home-page .stretch-title {
  width: max-content;
  max-width: 100%;
  cursor: default;
}

.home-page .stretch-line {
  display: block;
  width: max-content;
  max-width: 100%;
  transform-origin: left center;
  will-change: transform;
  backface-visibility: hidden;
}

/* Existing orange hover stays, but now the letters also move. */
.home-page .stretch-title:hover {
  color: var(--orange);
}

.home-page .stretch-title.is-stretching .stretch-line--top {
  animation: cuoneStretchTop .72s cubic-bezier(.2,.82,.22,1);
}

.home-page .stretch-title.is-stretching .stretch-line--bottom {
  animation: cuoneStretchBottom .78s .035s cubic-bezier(.2,.82,.22,1);
}

@keyframes cuoneStretchTop {
  0%   { transform: scaleX(1) scaleY(1) translateX(0); }
  24%  { transform: scaleX(.92) scaleY(1.045) translateX(0); }
  48%  { transform: scaleX(1.13) scaleY(.965) translateX(0); }
  68%  { transform: scaleX(1.045) scaleY(.99) translateX(0); }
  84%  { transform: scaleX(.99) scaleY(1.006) translateX(0); }
  100% { transform: scaleX(1) scaleY(1) translateX(0); }
}

@keyframes cuoneStretchBottom {
  0%   { transform: scaleX(1) scaleY(1) translateX(0); }
  22%  { transform: scaleX(1.16) scaleY(.96) translateX(0); }
  46%  { transform: scaleX(.9) scaleY(1.055) translateX(0); }
  66%  { transform: scaleX(1.07) scaleY(.985) translateX(0); }
  84%  { transform: scaleX(.985) scaleY(1.008) translateX(0); }
  100% { transform: scaleX(1) scaleY(1) translateX(0); }
}

/* Keep the effect controlled on smaller screens. */
@media (max-width: 900px) {
  .home-page .stretch-title {
    width: 100%;
  }

  .home-page .stretch-line {
    width: fit-content;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .stretch-title.is-stretching .stretch-line {
    animation: none !important;
  }
}


/* =========================================================
   v24 MOBILE POLISH
   - back-to-top button gets safe edge spacing
   - copyright moves to the very bottom of footer on mobile
   ========================================================= */

@media (max-width: 768px) {
  .back-top {
    right: 18px !important;
    bottom: 18px !important;
  }

  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  .footer-brand {
    display: contents !important;
  }

  .footer-logo {
    order: 1;
  }

  .footer-block:nth-of-type(2) {
    order: 2;
  }

  .footer-block:nth-of-type(3) {
    order: 3;
  }

  .footer-brand > span {
    order: 4;
    margin-top: 8px !important;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .back-top {
    right: 16px !important;
    bottom: 16px !important;
  }
}


/* =========================================================
   v25 — PORTFOLIO STRETCH + ORANGE FOLLOW CURSOR
   ========================================================= */
.portfolio-page .stretch-title {
  width: max-content;
  max-width: 100%;
  cursor: default;
  transition: color .2s ease;
}
.portfolio-page .stretch-title .stretch-line {
  display: block;
  width: max-content;
  max-width: 100%;
  transform-origin: left center;
  will-change: transform;
  backface-visibility: hidden;
}
.portfolio-page .stretch-title:hover { color: var(--orange); }
.portfolio-page .stretch-title.is-stretching .stretch-line--top {
  animation: cuoneStretchTop .72s cubic-bezier(.2,.82,.22,1);
}
.cuone-cursor {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); pointer-events: none; opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(1);
  will-change: transform, left, top, opacity;
  transition: width .22s ease, height .22s ease, opacity .18s ease;
}
.cuone-cursor.is-interactive { width: 28px; height: 28px; opacity: .82; }
.cuone-cursor.is-visible { opacity: 1; }
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .cuone-cursor { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-page .stretch-title.is-stretching .stretch-line { animation: none !important; }
}


/* =========================================================
   v26 — logo slash divider + back-to-top CTA motion
   ========================================================= */

/* Use the actual "/" cropped from the CU/ONE logo instead of a drawn line. */
.nav-divider.nav-divider-logo {
  width: 17px;
  height: 35px;
  object-fit: contain;
  background: transparent;
  transform: none;
  transform-origin: center;
  margin: 0 2px;
  flex: 0 0 auto;
}

/* Give floating back-to-top the same lift/shadow language as primary CTAs. */
.back-top {
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.back-top:hover,
.back-top:focus-visible {
  background: var(--orange-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(234,72,0,.22);
  outline: none;
}

.back-top:active {
  transform: translateY(-1px);
}

/* In the burger menu the slash is no longer needed as a separator. */
@media (max-width: 900px) {
  .nav-divider.nav-divider-logo {
    display: none !important;
  }
}


/* =========================================================
   v27 — Projects & Collaborations marquee
   ========================================================= */

.collaborations-section {
  padding: 72px 0 92px;
  overflow: hidden;
}

.collaborations-heading h2 {
  margin: 0 0 42px;
  color: rgba(0, 0, 3, .68);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: cuoneLogoMarquee 42s linear infinite;
}

.logo-marquee:hover .logo-marquee__track {
  animation-play-state: paused;
}

.logo-marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.logo-item {
  display: flex;
  flex: 0 0 174px;
  width: 174px;
  height: 66px;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  opacity: .94;
  transition:
    opacity .2s ease,
    transform .25s ease;
}

.logo-item--tall img {
  max-height: 62px;
}

.logo-item--portrait img {
  max-height: 72px;
  max-width: 116px;
}

.logo-item:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes cuoneLogoMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 1024px) {
  .collaborations-section {
    padding: 58px 0 74px;
  }

  .collaborations-heading h2 {
    margin-bottom: 32px;
    font-size: 18px;
  }

  .logo-marquee__group {
    gap: 40px;
    padding-right: 40px;
  }

  .logo-item {
    flex-basis: 150px;
    width: 150px;
    height: 58px;
  }

  .logo-item img {
    max-height: 44px;
  }

  .logo-item--tall img {
    max-height: 52px;
  }

  .logo-item--portrait img {
    max-height: 60px;
    max-width: 96px;
  }

  .logo-marquee__track {
    animation-duration: 46s;
  }
}

@media (max-width: 768px) {
  .collaborations-section {
    padding: 48px 0 62px;
  }

  .collaborations-heading {
    padding-left: 20px;
    padding-right: 20px;
  }

  .collaborations-heading h2 {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .logo-marquee {
    mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  }

  .logo-marquee__group {
    gap: 28px;
    padding-right: 28px;
  }

  .logo-item {
    flex-basis: 124px;
    width: 124px;
    height: 50px;
  }

  .logo-item img {
    max-height: 36px;
  }

  .logo-item--tall img {
    max-height: 44px;
  }

  .logo-item--portrait img {
    max-height: 50px;
    max-width: 78px;
  }

  .logo-marquee__track {
    animation-duration: 52s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .logo-marquee::-webkit-scrollbar {
    display: none;
  }

  .logo-marquee__track {
    animation: none !important;
  }

  .logo-marquee__group[aria-hidden="true"] {
    display: none;
  }
}


/* =========================================================
   v28 — collaborations marquee polish
   - bring the section closer to the About content
   - give tall logos enough vertical breathing room
   ========================================================= */

.collaborations-section {
  padding-top: 26px !important;
  padding-bottom: 76px !important;
}

.collaborations-heading h2 {
  margin-bottom: 28px !important;
}

.logo-marquee {
  padding-block: 10px;
}

.logo-item {
  height: 82px !important;
}

.logo-item img {
  max-height: 56px !important;
}

.logo-item--tall img {
  max-height: 68px !important;
}

.logo-item--portrait {
  height: 92px !important;
}

.logo-item--portrait img {
  max-height: 82px !important;
  max-width: 124px !important;
}

@media (max-width: 1024px) {
  .collaborations-section {
    padding-top: 22px !important;
    padding-bottom: 64px !important;
  }

  .collaborations-heading h2 {
    margin-bottom: 24px !important;
  }

  .logo-item {
    height: 72px !important;
  }

  .logo-item img {
    max-height: 48px !important;
  }

  .logo-item--tall img {
    max-height: 58px !important;
  }

  .logo-item--portrait {
    height: 80px !important;
  }

  .logo-item--portrait img {
    max-height: 70px !important;
    max-width: 104px !important;
  }
}

@media (max-width: 768px) {
  .collaborations-section {
    padding-top: 18px !important;
    padding-bottom: 52px !important;
  }

  .collaborations-heading h2 {
    margin-bottom: 20px !important;
  }

  .logo-marquee {
    padding-block: 8px;
  }

  .logo-item {
    height: 62px !important;
  }

  .logo-item img {
    max-height: 40px !important;
  }

  .logo-item--tall img {
    max-height: 48px !important;
  }

  .logo-item--portrait {
    height: 70px !important;
  }

  .logo-item--portrait img {
    max-height: 60px !important;
    max-width: 88px !important;
  }
}





/* =========================================================
   v30 — marquee / footer spacing
   Use section padding instead of external margin so the
   carousel visually sits higher while keeping the same page background.
   ========================================================= */

.collaborations-section {
  margin-bottom: 0 !important;
  padding-bottom: 124px !important;
}

@media (max-width: 1024px) {
  .collaborations-section {
    padding-bottom: 96px !important;
  }
}

@media (max-width: 768px) {
  .collaborations-section {
    padding-bottom: 72px !important;
  }
}


/* =========================================================
   v31 — hero copy + glass secondary CTA polish
   ========================================================= */

.hero .button-outline {
  border: 1px solid rgba(0, 0, 3, .34);
  background: rgba(255, 255, 255, .24);
  color: var(--ink);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 4px 14px rgba(43,34,67,.04);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease,
    color .22s ease;
}

.hero .button-outline:hover,
.hero .button-outline:focus-visible {
  border-color: rgba(234, 72, 0, .72);
  background: rgba(255, 255, 255, .68);
  color: var(--orange);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 12px 26px rgba(234,72,0,.12);
  outline: none;
}

.hero .button-outline:active {
  transform: translateY(-1px);
}


/* v31 form delivery + validation */

.form-note.is-success {
  color: #1f6b43;
}

.file-name.is-error {
  color: #b42318;
}

.submit-button:disabled {
  opacity: .72;
  cursor: wait;
  transform: none !important;
}
