/* Quo Forma — site styles */

:root {
  --bg: #e0d4c5;
  --bg-soft: #e8ded2;
  --ink: #371601;
  --ink-soft: rgba(55, 22, 1, 0.90);
  --line: rgba(55, 22, 1, 0.2);
  --cream: #f3ebe1;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

b {
  font-weight: 800;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Type ------------------------------------------------------------ */

.eyebrow {
  display: inline-block;
  margin: 0 0 1.2rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  line-height: 0.98;
}

.title {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.7rem;
}

.lead {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.statement {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.22;
  font-weight: 300;
}

.statement em {
  font-style: italic;
}

p {
  margin: 0 0 1.2rem;
}

.muted {
  color: var(--ink-soft);
}

/* ---- Buttons & links ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 0.3s, color 0.3s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.btn--light {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--cream);
  color: var(--ink);
}

.link-arrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s;
}

.link-arrow:hover {
  border-color: var(--ink);
}

/* ---- Header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(224, 212, 197, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  gap: 32px;
}

.brand {
  margin-right: auto;
  flex-shrink: 0;
}

/* scales down on mid-width screens so the nav links stay on one line */
.brand img {
  height: clamp(56px, 7vw, 90px);
  width: auto;
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.35s;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  right: 8px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}

.nav-toggle span:nth-child(1) { top: 15px; width: 26px; }
.nav-toggle span:nth-child(2) { top: 21px; width: 26px; }
.nav-toggle span:nth-child(3) { top: 27px; width: 12px; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { width: 26px; transform: translateY(-6px) rotate(-45deg); }

/* below this width the full nav no longer fits on one line beside the logo */
@media (max-width: 900px) {
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; }
  /* 90px high where it fits; on narrow phones it shrinks to the available width */
  .brand img { height: auto; width: min(350px, calc(100vw - 2 * var(--gutter) - 56px)); }
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after { display: none; }

  .nav-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

/* ---- Sections -------------------------------------------------------- */

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--ink);
  color: var(--cream);
}

.section--dark .eyebrow,
.section--dark .muted {
  color: rgba(243, 235, 225, 0.72);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 64px);
  flex-wrap: wrap;
}

.section-head .title {
  margin: 0;
  max-width: 14em;
}

/* ---- Hero (home) ----------------------------------------------------- */

.hero {
  padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
}

.hero__hint {
  margin-top: 14px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__cta {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
}

/* ---- Intro / two column ---------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--wide-left {
  grid-template-columns: 1.25fr 1fr;
}

.split--wide-right {
  grid-template-columns: 1fr 1.25fr;
}

@media (max-width: 860px) {
  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: 1fr;
  }
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.figure--tall img { aspect-ratio: 4 / 5; }
.figure--wide img { aspect-ratio: 16 / 10; }
.figure--square img { aspect-ratio: 1; }

/* ---- Discipline cards ------------------------------------------------ */

.disciplines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

@media (max-width: 760px) {
  .disciplines { grid-template-columns: 1fr; }
}

.discipline {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  color: var(--cream);
  text-decoration: none;
}

.discipline img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.discipline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 14, 4, 0.85), rgba(30, 14, 4, 0.45) 45%, rgba(30, 14, 4, 0.05) 80%);
}

.discipline:hover img {
  transform: scale(1.05);
}

.discipline__body {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
}

.discipline__num {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}

.discipline h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.discipline p {
  max-width: 28em;
  margin-bottom: 18px;
  color: rgba(243, 235, 225, 0.86);
}

.discipline .link-arrow {
  border-color: rgba(243, 235, 225, 0.4);
}

/* ---- Numbered steps -------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  counter-reset: step;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section--dark .step {
  border-color: rgba(243, 235, 225, 0.25);
}

.step__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  margin: 0;
}

/* ---- Work grid ------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.work {
  grid-column: span 4;
  margin: 0;
}

.work--wide { grid-column: span 8; }
.work--half { grid-column: span 6; }

.work a {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* panoramic so an 8-column image lines up with its 4-column 4:3 neighbour */
.work--wide img { aspect-ratio: 2.07 / 0.75; }

.work a:hover img {
  transform: scale(1.04);
}

.work figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 1.15rem;
}

.work figcaption span {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-top: 6px;
}

@media (max-width: 860px) {
  .work,
  .work--wide,
  .work--half { grid-column: span 6; }
  .work--wide img { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .work,
  .work--wide,
  .work--half { grid-column: span 12; }
}

.work.is-hidden {
  display: none;
}

/* ---- Filters --------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.filters button:hover {
  border-color: var(--ink);
}

.filters button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---- Page hero (inner pages) ---------------------------------------- */

.page-hero {
  padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
}

.page-hero .display {
  max-width: 11em;
}

.page-hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 96px);
  margin-top: clamp(28px, 4vw, 48px);
}

@media (max-width: 760px) {
  .page-hero__meta { grid-template-columns: 1fr; }
}

.banner {
  width: 100%;
  height: clamp(320px, 62vh, 720px);
  object-fit: cover;
}

/* ---- Services list --------------------------------------------------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.services li {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.services .num {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
}

.services h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.services p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .services li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* longer, multi-paragraph entries (values on the Giordana page) */
.services--long li {
  padding: 40px 0;
}

.services--long p + p {
  margin-top: 1rem;
}

/* ---- Concept → completed pairs -------------------------------------- */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(40px, 6vw, 80px);
}

.pair:last-child {
  margin-bottom: 0;
}

.pair .figure img {
  aspect-ratio: 3 / 2;
}

@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; }
}

.pair__label {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.pair__label h3 {
  margin: 0;
}

/* ---- Quote band ------------------------------------------------------ */

.quote {
  margin: 0 auto;
  max-width: 22em;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

.quote cite {
  display: block;
  margin-top: 28px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---- Sketch gallery (art page) -------------------------------------- */

.sketches {
  columns: 3 260px;
  column-gap: clamp(16px, 2vw, 28px);
}

.sketches .work {
  break-inside: avoid;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.sketches .work img {
  aspect-ratio: auto;
}

.sketches .work--span {
  column-span: all;
}

/* full-width row; each item's width follows its aspect ratio so heights match */
.sketches__row {
  column-span: all;
  display: flex;
  gap: clamp(16px, 2vw, 28px);
}

.sketches__row .work {
  flex: calc(var(--ar, 1)) 1 0;
  min-width: 0;
}

@media (max-width: 860px) {
  .sketches__row { display: block; }
}

/* ---- Object grid (pottery) ------------------------------------------ */

.objects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.objects .work {
  grid-column: auto;
}

.objects .work img {
  aspect-ratio: 4 / 5;
}

/* spans two columns; ratio keeps its height level with the 4:5 neighbours */
.objects .work--wide { grid-column: span 2; }
.objects .work--wide img { aspect-ratio: 5 / 3; }

.section--dark .work figcaption span {
  color: rgba(243, 235, 225, 0.65);
}

@media (max-width: 860px) {
  .objects { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Offerings list -------------------------------------------------- */

.offerings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin-top: 36px;
}

.offerings h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.offerings p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .offerings { grid-template-columns: 1fr; }
}

/* ---- CTA ------------------------------------------------------------- */

.cta {
  text-align: center;
}

.cta .title {
  max-width: 16em;
  margin: 0 auto 20px;
}

.cta p {
  max-width: 34em;
  margin: 0 auto 36px;
}

/* ---- Footer ---------------------------------------------------------- */

.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 36px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer img {
  height: 64px;
  width: auto;
  margin-bottom: 20px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- Lightbox -------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(30, 14, 4, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.lightbox figure {
  margin: 0;
  text-align: center;
  color: var(--cream);
}

.lightbox figcaption {
  margin-top: 16px;
  font-size: 1.15rem;
}

.lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px;
}

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---- Reveal on scroll ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
