* { box-sizing: border-box; }
:root {
  --bg: #f5f2ed;
  --ink: #191817;
  --muted: #6f6a64;
  --line: #d9d2c8;
  --card: #fffaf3;
  --accent: #e84f2f;
  --accent-dark: #b83d23;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  background: var(--accent);
  color: var(--bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(25,24,23,.16);
}
.logo { font-weight: 750; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 1rem; font-size: .95rem; color: rgba(245,242,237,.78); }
.site-nav a:hover { color: #fff; }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245,242,237,.45);
  border-radius: 999px;
  background: transparent;
  color: var(--bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.hero {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .9rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.2rem, 11vw, 10rem);
  line-height: .88;
  letter-spacing: -.048em;
  max-width: 1050px;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.048em;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.lead {
  max-width: 760px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  color: var(--muted);
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.button {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--bg); }
.intro-grid, .fit-section, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 620px);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1280px;
  margin: 0 auto;
}
.intro-grid p, .section-title p, .fit-list p, .contact p { color: var(--muted); font-size: 1.075rem; }
.section-title {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 2.5rem;
}
.section-title h2 { max-width: 980px; }
.section-title.narrow {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.section-title.narrow h2,
.section-title.narrow p { max-width: 760px; }
.services {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--bg);
  border-left: 1px solid var(--bg);
}
.services article {
  min-height: 292px;
  padding: clamp(1.2rem, 2.2vw, 2rem);
  border-right: 1px solid var(--bg);
  border-bottom: 1px solid var(--bg);
  background: var(--accent);
  color: #fff;
}
.service-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: clamp(4.5rem, 8vw, 7.2rem);
}
.services span { display: block; color: rgba(255,255,255,.72); }
.service-icon {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--bg);
  border-radius: 999px;
  display: grid !important;
  place-items: center;
}
.service-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.services p { color: rgba(255,255,255,.82); }
.case p, .case-card p { color: var(--muted); }
.hero-case {
  max-width: 1280px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: 0;
  align-items: stretch;
}
.case-text {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 0;
  background: var(--card);
}
.case-text ul { padding-left: 1.1rem; margin-bottom: 0; color: var(--muted); }
.case figure, .case-card { margin: 0; }
.case figure, .case-card img, .before-after figure {
  border: 0;
  background: var(--card);
  overflow: hidden;
}
.case figure { border-left: 0; }
.case-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.case-card {
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.case-card > div { padding: 1.25rem; }
.deck-section { max-width: none; margin: 0; }
.deck-section > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.presentation-placeholder {
  border: 1px solid var(--line);
  background: transparent;
  min-height: clamp(260px, 34vw, 520px);
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.presentation-placeholder__inner {
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.fit-list {
  display: grid;
  gap: .75rem;
}
.fit-list p {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact {
  max-width: none;
  background: var(--accent);
  color: #fff;
  border-bottom: 0;
}
.contact > * {
  max-width: 1280px;
}
.contact .eyebrow,
.contact p,
.contact a { color: rgba(255,255,255,.82); }
.contact h2 { color: #fff; }
.contact-details {
  display: grid;
  gap: .3rem;
  align-self: start;
}
.contact-details strong { color: #fff; }
.contact-details a:hover { color: #fff; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 900px) {
  .intro-grid, .fit-section, .contact, .hero-case { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .case-text { border: 0; }
  .case figure { border-left: 0; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

/* Image lightbox */
.lightbox-link {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.lightbox-link::after {
  content: "DETAIL";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px 6px;
  background: rgba(24, 22, 20, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.lightbox-link:hover::after,
.lightbox-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(18, 17, 15, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(94vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}


.service-mark {
  width: min(140px, 60%);
  max-width: 150px;
  height: auto;
  display: block;
}
.services h3 {
  font-size: clamp(1.65rem, 2.35vw, 2.65rem);
  letter-spacing: -0.05em;
  margin-bottom: 2.3rem;
}
.services p {
  font-size: clamp(1rem, 1.35vw, 1.34rem);
  line-height: 1.35;
  max-width: 20ch;
}
.presentation-image {
  border: 0;
  background: transparent;
  margin: 0 auto;
}
.presentation-image img {
  width: 100%;
  display: block;
}
@media (max-width: 900px) {
  .service-mark { width: 132px; }
  .services h3 { margin-bottom: 1.4rem; }
}


/* v6 refinements */
.case figure,
.case-card .lightbox-link,
.presentation-image .lightbox-link {
  border: 0;
  outline: 0;
  background: transparent;
}

.service-mark {
  margin-left: -1.2rem;
}

.fit-list p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1.35;
}
.fit-list p::before {
  content: "";
  flex: 0 0 0.72rem;
  width: 0.72rem;
  height: 0.72rem;
  background: url("icons/arrow_small.svg") center / contain no-repeat;
  transform: translateY(0.01em);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4rem);
}
.legal-page h1 { font-size: clamp(2.8rem, 7vw, 6rem); max-width: 820px; }
.legal-page h2 { font-size: clamp(1.6rem, 3.5vw, 3rem); margin-top: 3rem; }
.legal-page h3 { margin-top: 2rem; }
.legal-page p, .legal-page li { color: var(--muted); max-width: 78ch; }
.legal-placeholder { color: var(--accent); font-weight: 800; }
@media (max-width: 900px) {
  .service-mark { margin-left: -0.9rem; }
}


/* v8 refinements */
.case-card > img {
  width: 100%;
  display: block;
  background: transparent;
}
.fit-list {
  gap: 0;
}
.fit-list p {
  min-height: 4.9rem;
  padding: 0.35rem 0;
  display: grid;
  grid-template-columns: 0.72rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.85rem;
}
.fit-list p::before {
  align-self: center;
  justify-self: start;
  transform: translateY(0);
}
@media (max-width: 900px) {
  .fit-list p { min-height: auto; padding: 1rem 0; }
}


/* v12 final pass: compact contact block with overlapping portrait */
.contact {
  position: relative;
  overflow: visible;
  max-width: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 420px);
  align-items: center;
  min-height: 310px;
  padding-top: clamp(4.25rem, 6vw, 5.75rem);
  padding-bottom: clamp(3.25rem, 5vw, 4.75rem);
  padding-right: clamp(22rem, 34vw, 32rem);
}
.contact > * {
  max-width: none;
}
.contact-copy,
.contact-details {
  position: relative;
  z-index: 2;
}
.contact-portrait {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 5vw, 6rem);
  bottom: clamp(-5.5rem, -7vw, -3.25rem);
  width: min(30vw, 390px);
  max-height: 540px;
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 1050px) {
  .contact {
    padding-right: clamp(18rem, 34vw, 26rem);
  }
  .contact-portrait {
    width: min(34vw, 340px);
  }
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-right: clamp(1.25rem, 4vw, 4rem);
    padding-bottom: 0;
  }
  .contact-portrait {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(72vw, 340px);
    justify-self: end;
    margin-top: 1.5rem;
    margin-bottom: 0;
  }
}
@media (max-width: 560px) {
  .site-header {
    align-items: center;
    position: sticky;
  }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--accent);
    border-top: 1px solid rgba(245,242,237,.35);
    box-shadow: 0 18px 44px rgba(25,24,23,.18);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 1rem clamp(1.25rem, 4vw, 4rem);
    border-bottom: 1px solid rgba(245,242,237,.26);
    color: #fff;
    font-weight: 750;
  }
}

/* v13: improve contact section at narrow desktop/tablet widths */
@media (min-width: 901px) and (max-width: 1180px) {
  .contact {
    grid-template-columns: minmax(280px, 0.95fr) minmax(250px, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    min-height: 300px;
    padding-top: clamp(3.25rem, 5vw, 4.75rem);
    padding-bottom: clamp(2.75rem, 4vw, 4rem);
    padding-left: clamp(2.25rem, 4vw, 4rem);
    padding-right: clamp(13rem, 26vw, 18.5rem);
  }
  .contact h2 {
    font-size: clamp(3rem, 5.2vw, 4.5rem);
    max-width: 360px;
  }
  .contact-copy p {
    max-width: 340px;
  }
  .contact-portrait {
    right: clamp(1rem, 2.8vw, 2.75rem);
    bottom: clamp(-4.75rem, -5vw, -2.75rem);
    width: clamp(230px, 25vw, 310px);
    max-height: 430px;
  }
}

@media (max-width: 900px) {
  .contact-portrait {
    width: min(80vw, 390px);
  }
}

@media (max-width: 560px) {
  .contact-portrait {
    width: min(86vw, 390px);
  }
}

/* v14: contact image position refinements from correction_v13 */
@media (min-width: 901px) and (max-width: 1180px) {
  .contact {
    grid-template-columns: minmax(230px, 0.72fr) minmax(250px, 1fr);
    min-height: 300px;
    padding-top: clamp(3rem, 4.6vw, 4.25rem);
    padding-bottom: clamp(2.4rem, 3.8vw, 3.8rem);
    padding-left: clamp(2rem, 4vw, 4rem);
    padding-right: clamp(15.5rem, 30vw, 22rem);
  }
  .contact h2 {
    font-size: clamp(2.75rem, 4.8vw, 4.1rem);
    max-width: 340px;
  }
  .contact-copy p {
    max-width: 310px;
  }
  .contact-portrait {
    right: clamp(0.75rem, 3vw, 2.5rem);
    bottom: clamp(-4.7rem, -5.2vw, -3.2rem);
    width: clamp(255px, 29vw, 350px);
    max-height: 470px;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .contact {
    grid-template-columns: minmax(180px, 0.82fr) minmax(240px, 1fr);
    gap: clamp(1rem, 4vw, 2rem);
    padding-bottom: 0;
  }
  .contact-copy {
    grid-column: 1;
  }
  .contact-details {
    grid-column: 2;
  }
  .contact-portrait {
    grid-column: 2;
    width: min(50vw, 410px);
    justify-self: end;
    margin-top: -1.25rem;
    transform: translateX(2vw) translateY(0.5rem);
  }
}

@media (max-width: 560px) {
  .contact-portrait {
    width: min(92vw, 430px);
    justify-self: center;
    margin-top: 2.1rem;
    transform: translateX(2.5vw) translateY(1rem);
  }
}

/* v15: force contact details below intro text on iPad portrait / phone landscape widths */
@media (min-width: 561px) and (max-width: 900px) {
  .contact {
    grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1fr);
    align-items: start;
  }
  .contact-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .contact-details {
    grid-column: 1;
    grid-row: 2;
    margin-top: clamp(1rem, 2vw, 1.5rem);
    align-self: start;
  }
  .contact-portrait {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    width: min(52vw, 420px);
    justify-self: end;
    margin-top: 0;
    transform: translateX(2vw) translateY(1rem);
  }
}

@media (max-width: 560px) {
  .contact-details {
    margin-top: 1.15rem;
  }
}
