/* =========================================================
   Katt Angelow – Art & Design Solutions
   Home page stylesheet (designed against 1152px prototype)
   ========================================================= */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --cyan: #00c8ff;
  --magenta: #e000ff;
  /* JS (main.js) animates --g1..--g3 so every gradient on the site shimmers; fallbacks keep it static without JS */
  --g1: #00c8ff;
  --g2: #7064ff;
  --g3: #e000ff;
  --gradient: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  --black: #000;
  --white: #fff;
  --text: #111;
  --muted: #333;

  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 46px);
  --max: 1152px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 2. Logo (image) ---------- */
.logo { display: inline-block; line-height: 0; }
.logo img { width: 100%; height: auto; }
.site-header .logo { width: clamp(120px, 14vw, 166px); }
.site-footer .logo { width: clamp(150px, 18vw, 200px); margin-left: 14px; }

/* ---------- 3. Header ---------- */
.site-header {
  background: var(--white);
  height: 111px;
  position: relative;
  z-index: 20;
}
.header-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 40px);
}
.main-nav a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #1a1a1a;
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover { color: var(--cyan); }

.main-nav a.active {
  color: var(--cyan);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
}

.main-nav a.btn-contact {
  color: var(--white);
  background: var(--gradient);
  padding: 11px 24px;
  border-radius: 999px;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.main-nav a.btn-contact:hover {
  color: var(--white);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* mobile menu (CSS-only toggle) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; cursor: pointer; padding: 12px; }
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-burger span::before { position: absolute; top: -8px; }
.nav-burger span::after  { position: absolute; top: 8px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

/* gradient outline pill: gradient border, solid fill inside */
.btn-outline {
  border: 3px solid transparent;
  color: var(--black);
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--gradient) border-box;
}
.hero .btn-outline {
  color: var(--white);
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    var(--gradient) border-box;
}
.btn-white {
  background: var(--white);
  color: var(--black);
  border: 3px solid var(--white);
}

/* ---------- 5. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 38.8% 1fr;
  background: var(--black);
  min-height: 424px;
  color: var(--white);
}
.hero-text {
  padding: 56px 28px 40px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 2.9vw, 2.15rem);
  font-weight: 500;
  line-height: 1.18;
}
.hero-text p {
  margin-top: 26px;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.35;
  max-width: 34em;
}
.hero-buttons {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.hero-buttons .btn { min-width: 146px; height: 40px; font-size: 0.85rem; }

.hero-video {
  position: relative;
  background: var(--black);
  overflow: hidden;
  margin-top: 6px;           /* thin black band above video, as in prototype */
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* play / pause control over the video */
.video-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(80px, 14vw, 176px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.video-toggle svg { width: 52%; height: 52%; fill: currentColor; }
.video-toggle .icon-play { display: none; }

/* show the control on hover / focus while playing, always when paused */
.hero-video:hover .video-toggle,
.video-toggle:focus-visible { opacity: 1; }
.hero-video.is-paused .video-toggle { opacity: 1; }
.hero-video.is-paused .icon-play { display: block; }
.hero-video.is-paused .icon-pause { display: none; }
.video-toggle:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- 6. Shared section titles ---------- */
.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 300;
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

/* ---------- 7. Projects ---------- */
.projects {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter) 80px;
}
.project-grid {
  margin-top: 78px;
  display: grid;
  grid-template-columns: 1fr 1.47fr 0.96fr;
  column-gap: 14px;
  align-items: start;
}
.project { display: block; }
.project img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.project h3 {
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.15;
  padding-right: 1em;
}
.project:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.project-brewnoir img { object-position: 50% 50%; }
.project-art { margin-left: 8px; }

.btn-more {
  margin-top: 36px;
  min-width: 182px;
  height: 52px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- 8. Toolbox ---------- */
.toolbox {
  background: var(--black);
  color: var(--white);
}
.toolbox-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--gutter) 70px;
}
.toolbox h2 {
  font-size: 2.1rem;
  font-weight: 300;
  line-height: 1.2;
}
.toolbox-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 210px;
}
.tool-col {
  padding: 2px 0 0 26px;
  border-left: 3px solid var(--white);
}
.tool-col:first-child { padding-left: 2px; border-left: 0; }
.tool-col h3 {
  font-size: 0.82rem;
  font-weight: 400;
  margin-bottom: 18px;
}
.tool-col li {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.3;
}

/* ---------- 9. Why choosing me ---------- */
.why {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
}
.why-grid {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-grid li {
  min-height: 134px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 10px;
  background: var(--white);
  border-radius: 38px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}
.why-grid p {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
}
.why-grid span {
  color: var(--cyan);
  font-weight: 500;
}

/* ---------- 10. How I work ---------- */
.process {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px var(--gutter) 0;
}
.process-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 220px;
}
.process-grid li {
  padding: 0 24px 0 20px;
  border-left: 1px solid #222;
}
.process-grid li:first-child { border-left: 0; padding-left: 16px; }
.process-grid img { width: 36px; height: 36px; object-fit: contain; }
.process-grid h3 {
  margin-top: 26px;
  font-size: 0.82rem;
  font-weight: 400;
}
.process-grid p {
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.3;
  max-width: 11.5em;
}

/* space between the last section and the footer, as in the prototype */
.process { padding-bottom: 230px; }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 66px var(--gutter) 130px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  column-gap: 20px;
  align-items: start;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a,
.footer-col li {
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
}
.footer-col a:hover { color: var(--cyan); }
/* contact details keep their natural case */
.footer-col:last-child a { text-transform: none; font-weight: 300; font-size: 0.85rem; overflow-wrap: anywhere; }
.footer-col:nth-child(2) { padding-top: 34px; }
.footer-col:nth-child(3),
.footer-col:nth-child(4) { padding-top: 0; }
.footer-col:nth-child(3) ul,
.footer-col:nth-child(4) ul { margin-top: 0; }

/* ---------- 12. Tablet ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 48px var(--gutter); }
  .hero-video { margin-top: 0; aspect-ratio: 16 / 9; }

  .project-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .project-art { margin-left: 0; }

  .toolbox-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .tool-col:nth-child(3) { border-left: 0; padding-left: 2px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-grid li:nth-child(3) { border-left: 0; padding-left: 16px; }

  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-col:nth-child(2) { padding-top: 0; }
}

/* ---------- 13. Mobile ---------- */
@media (max-width: 720px) {
  .site-header { height: 88px; }
  .nav-burger { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px var(--gutter) 28px;
  }
  .nav-toggle:checked ~ .main-nav { max-height: 420px; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { top: 0; transform: rotate(45deg); background: var(--black); }
  .nav-toggle:checked ~ .nav-burger span::after  { top: 0; transform: rotate(-45deg); background: var(--black); }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 3px solid var(--cyan); }

  .main-nav a.active::after { bottom: -2px; }

  .projects { padding-top: 56px; padding-bottom: 56px; }
  .project-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .project img { height: auto; aspect-ratio: 4 / 3; }

  .toolbox-grid { grid-template-columns: 1fr; }
  .tool-col,
  .tool-col:nth-child(3) {
    border-left: 3px solid var(--white);
    padding-left: 18px;
  }
  .tool-col:first-child { border-left: 3px solid var(--white); padding-left: 18px; }

  .why-grid { grid-template-columns: 1fr; margin-top: 36px; }

  .process { padding-top: 60px; padding-bottom: 80px; }
  .process-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .process-grid li,
  .process-grid li:first-child,
  .process-grid li:nth-child(3) {
    border-left: 1px solid #222;
    padding-left: 18px;
  }

  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* =========================================================
   ABOUT, PORTFOLIO & PROJECT PAGES
   ========================================================= */

/* hidden SVG that holds the shared arrow gradient */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 15. Shared: large right-aligned section titles ---------- */
.title-right {
  font-size: clamp(2.4rem, 5.8vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  text-align: right;
}

/* ---------- 16. About: hero ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 49.1% 1fr;
  background: var(--black);
  color: var(--white);
  min-height: 780px;
}
.about-text {
  padding: 62px 40px 60px var(--gutter);
}
.about-text h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
}
.about-copy {
  margin-top: 40px;
  max-width: 34rem;
}
.about-copy p {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.3;
}
.about-copy p + p { margin-top: 8px; }

.about-photo { position: relative; background: #eceef0; }
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

/* ---------- 17. About: design process ---------- */
.process-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--gutter) 114px;
}
.design-grid {
  margin-top: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.design-grid li {
  min-height: 250px;
  padding: 34px 20px 26px 23px;
  background: var(--white);
  border-radius: 40px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}
.design-grid img { width: 38px; height: 38px; object-fit: contain; }
.design-grid h3 {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}
.design-grid p {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--muted);
}

/* ---------- 18. About: core values ---------- */
.values {
  background: var(--black);
  color: var(--white);
}
.values-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px var(--gutter) 76px;
  display: grid;
  grid-template-columns: 25.4fr 38.8fr 35.8fr;
  align-items: start;
}
.values h2 {
  font-size: clamp(2.4rem, 5.8vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 5.2em;
}
.value-col { border-left: 1px solid var(--white); }
.value {
  min-height: 257px;
  padding: 8px 20px 0 23px;
}
.value:last-child { min-height: 190px; }
.value-col:last-child .value:last-child { min-height: 335px; }
.value h3 {
  font-size: 1rem;
  font-weight: 700;
}
.value p {
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.3;
  color: #d4d4d4;
  max-width: 26em;
}

/* ---------- 19. About: who do I help ---------- */
.who {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px var(--gutter) 175px;
}
.who-grid {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.who-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
}
.who-grid p {
  margin-top: 48px;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.3;
  max-width: 14em;
}

/* ---------- 20. Banner shared by Portfolio & project pages ---------- */
.page-banner {
  background: var(--black);
  color: var(--white);
  min-height: 351px;
  padding: 74px var(--gutter) 60px;
}
.banner-title {
  display: inline-block;
  font-size: clamp(2.2rem, 5.3vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
}
/* short gradient bar sits under the end of the heading */
.banner-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin: 12px 0 0 auto;
  border-radius: 4px;
  background: var(--gradient);
}

/* ---------- 21. Portfolio grid ---------- */
.portfolio-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 103px var(--gutter) 120px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 20px;
}
.portfolio-card { display: block; }
.portfolio-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ddd;
}
.card-caption {
  min-height: 118px;
  padding: 20px 38px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.card-caption h2 {
  max-width: 14em;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.2;
  margin-top: 4px;
}
.arrow {
  flex: none;
  width: 117px;
  height: auto;
  margin-top: 4px;
  transition: transform 0.25s ease;
}
.portfolio-card:hover .arrow,
.pager-next:hover .arrow { transform: translateX(8px); }
.portfolio-card:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 22. Project sub pages ---------- */
.project-banner { min-height: 300px; padding-bottom: 56px; }
.project-banner .banner-title { max-width: 14em; }

.back-link {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
}
.back-link .arrow { width: 54px; margin: 0; }
.back-link:hover { color: var(--cyan); }
.back-link:hover .arrow { transform: translateX(-6px); }
.arrow-back { transform: scaleX(-1); }
.back-link .arrow-back,
.pager-prev .arrow-back { transform: scaleX(-1); }
.back-link:hover .arrow-back { transform: scaleX(-1) translateX(6px); }

.project-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: start;
}
.project-main img,
.project-gallery img {
  width: 100%;
  height: auto;
  background: #ddd;
}
.project-info h2 {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.2;
}
.project-info p {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
  max-width: 32em;
}
.project-info h2:not(:first-child) { margin-top: 40px; }
.project-info ul { margin-top: 14px; }
.project-info li {
  padding: 10px 0 10px 18px;
  font-size: 0.92rem;
  font-weight: 400;
  border-bottom: 1px solid #e3e3e3;
  position: relative;
}
.project-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gradient);
}

.project-gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  display: grid;
  gap: 20px;
}

.project-pager {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px var(--gutter) 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.project-pager a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid #222;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.25;
}
.project-pager small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #555;
}
.pager-next { justify-content: space-between; }
.pager-prev .arrow,
.pager-next .arrow { width: 70px; margin: 0; }
.pager-prev:hover .arrow-back { transform: scaleX(-1) translateX(8px); }
.project-pager a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 23. Tablet ---------- */
@media (max-width: 960px) {
  .about-hero { grid-template-columns: 1fr; min-height: 0; }
  .about-text { padding: 56px var(--gutter); }
  .about-copy { max-width: none; }
  .about-photo { aspect-ratio: 4 / 5; max-height: 640px; }
  .about-photo img { object-position: 50% 20%; }

  .design-grid { grid-template-columns: repeat(2, 1fr); }

  .values-inner { grid-template-columns: 1fr 1fr; row-gap: 40px; padding-top: 80px; }
  .values h2 { grid-column: 1 / -1; max-width: none; }
  .value-col { margin-right: 20px; }
  .value { min-height: 200px; }
  .value:last-child,
  .value-col:last-child .value:last-child { min-height: 120px; }

  .who-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .who { padding-bottom: 160px; }

  .project-body { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .project-pager { grid-template-columns: 1fr; padding-bottom: 90px; }
}

/* ---------- 24. Mobile ---------- */
@media (max-width: 720px) {
  .page-banner { min-height: 0; padding: 48px var(--gutter) 44px; }
  .project-banner { padding-bottom: 44px; }

  .portfolio-section { padding-top: 48px; padding-bottom: 72px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-caption { min-height: 0; padding: 14px 0 24px; }
  .arrow { width: 80px; }

  .process-section { padding-top: 64px; padding-bottom: 64px; }
  .design-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .design-grid li { min-height: 0; }

  .values-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 56px; }
  .value-col { margin: 0 0 28px; }
  .value { min-height: 0; padding-bottom: 32px; }
  .value p { margin-top: 12px; }

  .who { padding-top: 64px; padding-bottom: 96px; }
  .who-grid { grid-template-columns: 1fr; margin-top: 40px; row-gap: 32px; }
  .who-grid p { margin-top: 14px; }
  .title-right { text-align: left; }
}

/* motion: keep arrow nudges off for reduced-motion visitors */
@media (prefers-reduced-motion: reduce) {
  .portfolio-card:hover .arrow,
  .pager-next:hover .arrow,
  .back-link:hover .arrow { transform: none; }
}

/* ============ 25. PROJECT GALLERIES ============ */
.gallery-group{max-width:var(--max);margin:0 auto;padding:clamp(24px,4vw,48px) var(--gutter) 0}
.gallery-group h2{font-size:clamp(22px,3vw,30px);font-weight:500;margin:0 0 20px}
.gallery-grid{display:grid;gap:clamp(14px,2vw,24px);align-items:start}
.gallery-tall{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.gallery-wide{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.gallery-logo{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.gallery-grid .shot{margin:0}
.gallery-grid .shot img{display:block;width:100%;height:auto;border-radius:8px;background:#f3f3f3}
.gallery-grid .shot figcaption{font-size:14px;color:#555;margin-top:8px}
@media (max-width:720px){
  .gallery-tall{grid-template-columns:repeat(2,1fr)}
  .gallery-wide{grid-template-columns:1fr}
  .gallery-logo{grid-template-columns:repeat(2,1fr)}
}
.gallery-logo .shot img{height:200px;object-fit:contain;background:#fff;border:1px solid #eee}
.gallery-tall .shot img{aspect-ratio:auto}


/* =========================================================
   DESKTOP HEADER: logo far left, navigation far right
   ========================================================= */
@media (min-width: 961px) {
  .header-inner { max-width: none; padding: 0 clamp(32px, 5vw, 96px) 0 clamp(24px, 4vw, 72px); }
}
.site-header { position: sticky; top: 0; transition: height .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { height: 78px; box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.site-header .logo { transition: width .3s ease; }
.site-header.is-scrolled .logo { width: clamp(104px, 11vw, 138px); }
.main-nav a:not(.btn-contact)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.main-nav a:not(.btn-contact):hover::after,
.main-nav a.active::after { transform: scaleX(1); }

/* ============ 26. Animation helpers (driven by js/main.js) ============ */
/* The transition lives on the VISIBLE state, so the hidden state is applied instantly
   (no flash) and the delay only applies to the reveal itself. */
[data-reveal] { opacity: 0; transform: translateY(32px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-visible { opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s); }

.scroll-progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; z-index: 60; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; pointer-events: none; }

.btn-outline, .btn-contact { background-size: 100% 100%, 100% 100%; }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn-contact { position: relative; overflow: hidden; }

/* ============ 27. Project pages (prototype layout) ============ */
.proj-hero img { width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; background: #eee; }
.proj-hero { overflow: hidden; }
.proj-hero-contain { text-align: center; padding-top: 16px; }
.proj-hero-contain img { width: min(720px, 100%); aspect-ratio: auto; margin: 0 auto; background: none; }

.proj-intro { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; }
.proj-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 300; line-height: 1.2; padding-right: 32px; }
.proj-text { border-left: 1px solid #222; padding: 70px 0 70px clamp(24px, 4vw, 48px); }
.proj-text p { font-size: .82rem; font-weight: 300; line-height: 1.55; color: #222; }
.proj-text p + p { margin-top: 12px; }
.proj-intro-rev { grid-template-columns: 1.15fr 1fr; padding-top: 24px; }
.proj-intro-rev .proj-text { border-left: 0; border-right: 1px solid #222; padding: 70px clamp(24px, 4vw, 48px) 70px 0; }
.proj-intro-rev .proj-title { text-align: right; padding: 0 0 0 32px; }

.proj-block { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 0; }
.block-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 300; margin-bottom: 28px; }
.block-title.align-right { text-align: right; }
.block-title.align-center { text-align: center; }
.block-text { font-size: .85rem; font-weight: 300; line-height: 1.6; max-width: 62ch; margin: 0 0 28px; }
.proj-block > .btn { margin-top: 28px; }

.logo-row { display: grid; gap: 20px; align-items: end; text-align: center; }
.logo-2 { grid-template-columns: repeat(2, 1fr); }
.logo-3 { grid-template-columns: repeat(3, 1fr); }
.logo-4 { grid-template-columns: repeat(4, 1fr); }
.logo-row li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo-row img { width: 100%; max-width: 230px; max-height: 150px; height: auto; object-fit: contain; }
.logo-row span { font-size: .9rem; font-weight: 300; }

.palette { display: flex; flex-wrap: wrap; gap: clamp(20px, 4.5vw, 64px); }
.palette li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .8rem; font-weight: 300; }
.swatch { width: clamp(64px, 9vw, 112px); aspect-ratio: 1; background: var(--c); border: 0; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform .25s ease, box-shadow .25s ease; }
.swatch:hover { transform: translateY(-6px) rotate(-3deg); box-shadow: 0 12px 22px rgba(0,0,0,.22); }

.media-grid { display: grid; gap: clamp(12px, 2vw, 22px); align-items: start; }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.media-grid .shot { overflow: hidden; background: #f2f2f2; cursor: zoom-in; }
.media-grid .shot img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.media-grid .shot:hover img { transform: scale(1.05); }
.media-grid figcaption { display: none; }

.credit { margin-top: 56px; }
.credit .block-title { font-size: 1.5rem; margin-bottom: 10px; }
.credit p { font-size: .9rem; font-weight: 300; line-height: 1.6; }
main > .proj-block:last-child { padding-bottom: 110px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; padding: 24px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; width: auto; height: auto; transform: scale(.92); transition: transform .35s ease; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; border: 0; cursor: pointer; color: #fff; font-size: 2.2rem; line-height: 1; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; margin-top: -28px; }
.lightbox .lb-next { right: 18px; top: 50%; margin-top: -28px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); background: #111; color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .85rem; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 90; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============ 28. Services ============ */
.services { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 120px; }
.service-group + .service-group { margin-top: 72px; }
.group-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; line-height: 1.1; margin-bottom: 36px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px clamp(28px, 6vw, 90px); align-items: start; }
.service-card { padding: 8px 0 0; }
.service-card h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 400; line-height: 1.25; margin-bottom: 26px; max-width: 16em; }
.service-card ul { margin-bottom: 28px; }
.service-card li { font-size: 1rem; font-weight: 300; line-height: 1.45; }
.service-card .btn { min-width: 166px; height: 42px; font-size: .9rem; text-transform: none; }

/* ============ 29. Contact ============ */
.contact { max-width: var(--max); margin: 0 auto; padding: 60px var(--gutter) 110px; }
.contact-form { display: grid; gap: 26px; }
.field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; color: var(--black);
  padding: 0 38px; height: 88px; border: 3px solid transparent; border-radius: 999px; outline: 0;
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box;
  transition: box-shadow .3s ease, transform .3s ease;
}
.field textarea { height: auto; min-height: 400px; padding: 28px 38px; border-radius: 48px; resize: vertical; line-height: 1.4; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='14' viewBox='0 0 22 14'%3E%3Cpath d='M2 2l9 9 9-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 36px center / 22px 14px,
             linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; }
.field select:invalid { color: #6b6b6b; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b6b; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 5px rgba(0,200,255,.22), 0 10px 30px rgba(224,0,255,.18); transform: translateY(-2px); }
.field.has-error input, .field.has-error select, .field.has-error textarea { box-shadow: 0 0 0 4px rgba(224,0,60,.25); }
.field-error { color: #c8002f; font-size: .85rem; margin: 8px 0 0 38px; min-height: 0; }
.btn-send { justify-self: start; min-width: 132px; height: 64px; font-size: 1.4rem; font-weight: 300; text-transform: none; padding: 0 28px; }
.btn-send:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 1rem; min-height: 1.4em; }
.form-status.is-ok { color: #0b7a3b; font-weight: 500; }
.contact-form.is-shaking { animation: shake .45s ease; }
@keyframes shake { 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)} }

@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .logo-4 { grid-template-columns: repeat(2, 1fr); }
  .proj-intro, .proj-intro-rev { grid-template-columns: 1fr; padding-top: 48px; }
  .proj-title, .proj-intro-rev .proj-title { text-align: left; padding: 0 0 20px; }
  .proj-intro-rev .proj-title { order: -1; }
  .proj-text, .proj-intro-rev .proj-text { border: 0; border-left: 2px solid #222; padding: 4px 0 4px 20px; }
}
@media (max-width: 720px) {
  .site-header.is-scrolled { height: 68px; }
  .service-grid { grid-template-columns: 1fr; gap: 40px; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-2.keep, .logo-3 { grid-template-columns: repeat(3, 1fr); }
  .logo-3 img { max-height: 90px; }
  .proj-hero img { aspect-ratio: 16 / 9; }
  .field input, .field select { height: 66px; padding: 0 26px; }
  .field textarea { min-height: 260px; padding: 22px 26px; border-radius: 34px; }
  .field-error { margin-left: 26px; }
  .btn-send { height: 56px; }
  .lightbox button { width: 46px; height: 46px; font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .contact-form.is-shaking { animation: none; }
}


/* ============ 30. Text reveal animations (see TEXT_DELAY in js/main.js) ============ */
/* headlines slide up out of a mask */
[data-reveal="head"], [data-reveal="head"].is-visible { opacity: 1; transform: none; transition: none; }
.rv-line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.rv-inner { display: block; transform: translateY(115%); }
[data-reveal="head"].is-visible .rv-inner { transform: none;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * .14s); }
/* the gradient bar under banner titles draws in after the words */
.banner-title[data-reveal="head"]::after { transform: scaleX(0); transform-origin: right; }
.banner-title[data-reveal="head"].is-visible::after { transform: scaleX(1);
  transition: transform .8s ease calc(var(--d, 0s) + .9s); }

/* body text rises a little more slowly */
[data-reveal=""].is-visible { transition-duration: 1s; }

/* columns with a line: text slides out from the line, left to right */
[data-reveal="line"], [data-reveal="line"].is-visible { opacity: 1; transform: none; overflow: hidden; transition: none; }
[data-reveal="line"] [data-line] { transform: translateX(-125%); }
[data-reveal="line"].is-visible [data-line] { transform: none;
  transition: transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }

/* image banners wipe upward */
[data-reveal="clip"], [data-reveal="clip"].is-visible { opacity: 1; transform: none; }
/* the wipe is applied to the image (not the wrapper) so the browser still sees the wrapper on screen */
[data-reveal="clip"] img { clip-path: inset(100% 0 0 0); }
[data-reveal="clip"].is-visible img { clip-path: inset(0); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  .rv-inner, [data-reveal="line"] [data-line] { transform: none !important; }
  [data-reveal="clip"] img { clip-path: none !important; }
  .banner-title[data-reveal="head"]::after { transform: none !important; }
}