/* ==========================================================================
   Tile by Arts — site styles
   Hand-built, no framework. Edit the tokens below to retheme the site.
   ========================================================================== */

:root {
  /* Color */
  --stone-50:  #FAF8F4;   /* page background */
  --stone-100: #F2EEE7;   /* alt section background */
  --stone-200: #E6E0D5;   /* borders, grout lines */
  --stone-400: #A79F92;
  --ink-900:   #16191D;   /* headings, dark sections */
  --ink-700:   #3A3F46;   /* body text */
  --ink-500:   #6A7078;   /* muted text */
  --blue-500:  #458AC9;   /* logo blue */
  --blue-600:  #2E6FAD;   /* accessible accent on light bg */
  --blue-700:  #245A8E;
  --white:     #FFFFFF;

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --header-h: 76px;

  --shadow-lg: 0 24px 60px -24px rgba(22, 25, 29, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink-900); font-weight: 400; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }

[hidden] { display: none !important; }
html, body { overflow-x: clip; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink-900); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--stone-100); }
.section--dark { background: var(--ink-900); color: #C9CDD2; }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  letter-spacing: -0.005em;
}
.h3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.display em, .h2 em { font-style: italic; color: var(--blue-600); }
.section--dark .h2 em { color: var(--blue-500); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-500); max-width: 56ch; }
.section--dark .lead { color: #A9AFB6; }

/* Eyebrow with the logo's diamond-tile mark */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(var(--blue-500), var(--blue-500)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) 8px 0 / 6px 6px no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) 0 8px / 6px 6px no-repeat,
    linear-gradient(var(--blue-500), var(--blue-500)) 8px 8px / 6px 6px no-repeat;
  transform: rotate(45deg);
}
.section--dark .eyebrow { color: #8E959D; }
.section--dark .eyebrow::before {
  background:
    linear-gradient(var(--blue-500), var(--blue-500)) 0 0 / 6px 6px no-repeat,
    linear-gradient(#fff, #fff) 8px 0 / 6px 6px no-repeat,
    linear-gradient(#fff, #fff) 0 8px / 6px 6px no-repeat,
    linear-gradient(var(--blue-500), var(--blue-500)) 8px 8px / 6px 6px no-repeat;
}

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink-900); color: var(--white); }
.btn--primary:hover { background: var(--blue-600); }
.btn--accent { background: var(--blue-600); color: var(--white); }
.btn--accent:hover { background: var(--blue-700); }
.btn--ghost { border-color: var(--ink-900); color: var(--ink-900); background: transparent; }
.btn--ghost:hover { background: var(--ink-900); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink-900); }
.btn--light:hover { background: var(--blue-500); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink-900);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--blue-600); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--stone-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 200px; height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  position: relative; display: block; padding: 8px 14px;
  font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--ink-700);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-900); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: none; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink-900); font-size: .95rem; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--blue-600); }
.header-actions .btn { min-height: 44px; padding: 0 20px; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; margin-right: -10px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink-900); position: relative; transition: transform .25s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--stone-50); padding: 32px var(--gutter);
  display: flex; flex-direction: column; gap: 32px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu-open .mobile-nav { opacity: 1; transform: none; visibility: visible; }
.mobile-nav ul { display: grid; }
.mobile-nav li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--stone-200);
  font-family: var(--font-display); font-size: 2.1rem; text-decoration: none; color: var(--ink-900);
}
.mobile-nav .btn { width: 100%; }
.menu-open { overflow: hidden; }

@media (min-width: 1000px) {
  .nav, .header-actions { display: flex; }
  .menu-toggle, .mobile-nav { display: none; }
  .brand img { width: 230px; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--section-y); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-copy .lead { margin: 28px 0 36px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--stone-200);
}
.hero-stats dd, .facts dd { margin: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.1rem, 3.5vw, 2.75rem); color: var(--ink-900); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--ink-500); margin-top: 6px; line-height: 1.35; }

.hero-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-media figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--stone-200); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.hero-media figure:nth-child(2) { margin-top: 64px; }
.hero-badge {
  position: absolute; left: -12px; bottom: 32px;
  background: var(--ink-900); color: var(--white); padding: 18px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 220px;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.hero-badge span { font-size: .8rem; color: #A9AFB6; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .hero-badge { left: -40px; }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
  .hero-media figure:nth-child(2) { margin-top: 40px; }
  .hero-badge { left: 8px; bottom: 16px; padding: 14px 16px; }
}

/* ---------- Builder strip ---------- */
.builders { border-block: 1px solid var(--stone-200); padding: 28px 0; }
.builders-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.builders-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); flex: none; }
.builders ul { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.builders li { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink-900); opacity: .75; white-space: nowrap; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.service-card .media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone-200); aspect-ratio: 4 / 5; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover img { transform: scale(1.05); }
.service-card .num {
  position: absolute; top: 14px; left: 14px;
  background: var(--stone-50); color: var(--ink-900); font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  padding: 6px 10px; border-radius: 2px;
}
.service-card .body { padding: 22px 2px 0; }
.service-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-card h3 svg { width: 20px; height: 20px; flex: none; color: var(--blue-600); transition: transform .25s var(--ease); }
.service-card:hover h3 svg { transform: translateX(4px); }
.service-card p { margin-top: 10px; font-size: .95rem; color: var(--ink-500); }

/* ---------- Split feature ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split-media .tile-accent { display: block; } .split { grid-template-columns: 1fr 1fr; gap: 88px; } .split--reverse .split-media { order: 2; } }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 5; background: var(--stone-200); }
.split-media .tile-accent {
  display: none;
  position: absolute; right: -18px; bottom: -18px; width: 120px; height: 120px; z-index: -1;
  background-image:
    linear-gradient(45deg, var(--blue-500) 25%, transparent 25%, transparent 75%, var(--blue-500) 75%),
    linear-gradient(45deg, var(--blue-500) 25%, transparent 25%, transparent 75%, var(--blue-500) 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px; opacity: .25;
}
.split-copy .lead { margin-top: 24px; }
.split-copy p + p { margin-top: 16px; }
.check-list { display: grid; gap: 14px; margin: 32px 0 36px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.check-list svg { width: 22px; height: 22px; color: var(--blue-600); margin-top: 2px; }

/* ---------- Process ---------- */
.process { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 800px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li { padding: 32px 28px 8px 0; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
@media (min-width: 800px) { .process li { padding-top: 40px; } }
.process li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--blue-500); line-height: 1; margin-bottom: 20px;
}
.process h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; font-family: var(--font-body); margin-bottom: 10px; }
.process p { font-size: .95rem; color: #A9AFB6; }

/* ---------- Gallery preview (home) ---------- */
.work-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 16px; }
  .work-grid .w-tall { grid-row: span 2; }
}
.work-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--stone-200); aspect-ratio: 3 / 4; border: 0; padding: 0; cursor: zoom-in; }
@media (min-width: 900px) { .work-item { aspect-ratio: auto; } }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .3s; }
.work-item:hover img { transform: scale(1.04); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 24px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); padding: 36px 32px 32px;
}
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-700); }
.quote blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-display); font-size: 4.5rem; line-height: .7; color: var(--blue-500); margin-bottom: 8px;
}
.quote figcaption { display: grid; gap: 2px; padding-top: 20px; border-top: 1px solid var(--stone-200); }
.quote figcaption strong { color: var(--ink-900); }
.quote figcaption span { font-size: .88rem; color: var(--ink-500); }

/* ---------- Service area ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas li {
  padding: 7px 14px; border: 1px solid var(--stone-200); border-radius: 100px; background: var(--white);
  font-size: .88rem; color: var(--ink-700);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; } }
.contact-details { display: grid; gap: 4px; margin-top: 40px; }
.contact-details a, .contact-details div {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); text-decoration: none; color: #DADDE1;
}
.contact-details .ico {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(69,138,201,.16); color: var(--blue-500);
}
.contact-details .ico svg { width: 20px; height: 20px; }
.contact-details small { display: block; font-size: .78rem; color: #8E959D; letter-spacing: .06em; text-transform: uppercase; }
.contact-details a:hover strong { color: var(--blue-500); }
.contact-details strong { color: var(--white); font-weight: 600; }

.form-card { background: var(--white); color: var(--ink-700); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form-card h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 6px; color: var(--ink-900); }
.form-card > p { color: var(--ink-500); font-size: .95rem; margin-bottom: 28px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.field label .opt { font-weight: 500; color: var(--ink-500); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--stone-50); border: 1px solid var(--stone-200); border-radius: var(--radius);
  font-size: 1rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316191D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: var(--white); box-shadow: 0 0 0 3px rgba(46,111,173,.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B4442F; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-foot small { color: var(--ink-500); font-size: .82rem; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-status.is-success { display: block; background: #EAF3EC; color: #24563A; }
.form-status.is-error { display: block; background: #FBECE8; color: #8A2E1D; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--blue-700); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%) rotate(45deg);
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--stone-200); }
.page-hero .lead { margin-top: 24px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-500); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue-600); }

/* ---------- About page ---------- */
.portrait { position: relative; max-width: 440px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--stone-200); }
.portrait figcaption { margin-top: 16px; font-size: .9rem; color: var(--ink-500); }
.portrait figcaption strong { display: block; color: var(--ink-900); font-size: 1rem; }
.prose p { margin-top: 18px; }
.prose p:first-child { margin-top: 0; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--stone-200); border: 1px solid var(--stone-200); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { background: var(--stone-50); padding: 32px 28px; }
.facts .stat-num { font-size: clamp(2.4rem, 4vw, 3.25rem); }

.cap-grid { display: grid; gap: 1px; background: var(--stone-200); border: 1px solid var(--stone-200); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap { background: var(--white); padding: 32px 28px; }
.cap .ico { width: 44px; height: 44px; color: var(--blue-600); margin-bottom: 20px; }
.cap h3 { margin-bottom: 8px; }
.cap p { font-size: .95rem; color: var(--ink-500); }

.materials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.materials li { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-900); }
.materials li:not(:last-child)::after { content: "/"; margin-left: 10px; color: var(--stone-400); }

/* ---------- Portfolio page ---------- */
.filters {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(250, 248, 244, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-200);
}
.filters .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.filters .container::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border: 1px solid var(--stone-200); border-radius: 100px; background: var(--white);
  font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.filter-btn .count { font-size: .75rem; color: var(--ink-500); font-weight: 700; }
.filter-btn:hover { border-color: var(--ink-900); }
.filter-btn[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.filter-btn[aria-pressed="true"] .count { color: #A9AFB6; }

.category-intro { display: grid; gap: 12px; margin-bottom: 32px; }
.category-intro p { color: var(--ink-500); max-width: 70ch; }

.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 760px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.masonry .work-item { width: 100%; margin: 0 0 12px; break-inside: avoid; aspect-ratio: auto; }
@media (min-width: 760px) { .masonry .work-item { margin-bottom: 16px; } }
.masonry .work-item img { height: auto; aspect-ratio: 3 / 4; }
.masonry .work-item.is-hidden { display: none; }
.work-item .tag {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 2px;
  background: rgba(22,25,29,.75); color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
.work-item:hover .tag, .work-item:focus-visible .tag { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(14, 16, 19, .94); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 2px; user-select: none; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--white); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #A9AFB6; font-size: .85rem; letter-spacing: .08em; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #A9AFB6; padding: clamp(56px, 8vw, 88px) 0 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-logo { width: 210px; filter: brightness(0) invert(1); }
.site-footer p { margin-top: 20px; max-width: 34ch; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; color: #DADDE1; }
.site-footer a:hover { color: var(--blue-500); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom a { color: #A9AFB6; }

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250,248,244,.96); border-top: 1px solid var(--stone-200); backdrop-filter: blur(10px);
}
.call-bar .btn { min-height: 46px; padding: 0 12px; font-size: .9rem; }
@media (min-width: 1000px) { .call-bar { display: none; } }
@media (max-width: 999px) { body { padding-bottom: 72px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
