/* =========================================================
   [STUDIO NAME] — fabrication studio
   Single-page static site. No build step, no dependencies.
   Dark, warm, editorial — heavy sans + italic-serif accents.
   ========================================================= */

:root {
  --bg:        #18171a;   /* warm charcoal */
  --bg-2:      #201f23;   /* raised surface */
  --card:      #1c1b1f;   /* card surface */
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.16);
  --text:      #f3f1ec;   /* warm off-white */
  --muted:     #a3a09b;   /* secondary */
  --faint:     #6f6d70;   /* tertiary */
  --maxw:      1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

/* ---------- Type system ---------- */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}
/* the signature: italic serif accent words */
.serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  margin: 0 0 18px;
}
.eyebrow.center, .section-title.center { text-align: center; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section-title.center { margin-left: auto; margin-right: auto; }

/* ---------- Pills / buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  padding: 9px 17px;
  border-radius: 999px;
  transition: background .15s, border-color .15s, transform .15s;
  cursor: pointer;
}
.pill:hover { background: rgba(255,255,255,.09); border-color: var(--line-2); }
.pill-solid { background: var(--text); color: #15141a; border-color: var(--text); font-weight: 600; }
.pill-solid:hover { background: #fff; transform: translateY(-1px); }
.pill-lg { padding: 14px 24px; font-size: 16px; }
.pill-block { width: 100%; justify-content: center; border: 0; padding: 15px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24,23,26,.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: -0.01em; font-size: 18px; text-decoration: none;
}
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text); }
.brand-logo { display: block; height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.lede { max-width: 540px; color: #d4d1cb; font-size: 19px; margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  position: relative;
  border-radius: 26px;
  padding: 24px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
}
.tag-light {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,.38);
  color: #fff;
  padding: 7px 13px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-card-body h3 { font-size: 2.6rem; line-height: 1; color: #fff; }
.hero-card-body p { margin: 12px 0 0; color: rgba(255,255,255,.82); font-weight: 500; }
.hero-card-btn {
  align-self: stretch;
  text-align: center;
  background: rgba(0,0,0,.32);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 15px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.hero-card-btn:hover { background: rgba(0,0,0,.5); }

/* ---------- Hero video ---------- */
.hero-video {
  position: relative;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video .tag-light { position: absolute; top: 16px; left: 16px; }

/* ---------- Gradient palettes ---------- */
.grad { background: #333; }
.grad-a { background: linear-gradient(135deg,#ff5d8f 0%,#ff8a3d 38%,#ffd23f 70%,#4d6bff 100%); }
.grad-b { background: linear-gradient(140deg,#7b8cff 0%,#9d6bff 55%,#ff7ac3 100%); }
.grad-c { background: linear-gradient(140deg,#ff7a45 0%,#ff476f 60%,#9b3bff 100%); }
.grad-d { background: linear-gradient(140deg,#1fc1a6 0%,#2f8bff 60%,#7b5bff 100%); }
.grad-e { background: linear-gradient(140deg,#ffb03a 0%,#ff5d8f 55%,#7b5bff 100%); }

/* ---------- Tagline band ---------- */
.band { padding: 36px 0 64px; }
.band-text {
  text-align: center;
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

/* ---------- What we do: gradient cards ---------- */
.do-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.do-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 26px;
  aspect-ratio: 1 / 1;   /* keep cards square at every screen size */
  display: flex;
  flex-direction: column;
  color: #fff;
}
/* highlighted-block heading (Designjoy signature) */
.hl {
  align-self: flex-start;
  background: #15141a;
  color: #fff;
  font-size: 1.5rem;
  padding: 6px 12px;
  border-radius: 7px;
  margin-bottom: 20px;
}
.do-card ul { list-style: none; margin: auto 0 0; padding: 0; }
.do-card li {
  font-weight: 600;
  padding: 11px 0;
  border-top: 1px solid rgba(0,0,0,.18);
  color: rgba(255,255,255,.95);
}
.do-card li:first-child { border-top: 0; }

/* video-backed card: kill the gradient so nothing colored can peek at the edges */
.do-card.has-video { background: var(--bg); }
.do-card-video {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);   /* overscan so the edges are always covered */
  height: calc(100% + 4px);
  object-fit: cover;
  z-index: 0;
}
/* scrim so the heading + list stay legible over the (light) video */
.do-card.has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.18) 26%, rgba(0,0,0,.22) 52%, rgba(0,0,0,.72) 100%);
  z-index: 1;
}
.do-card.has-video > .hl,
.do-card.has-video > ul { position: relative; z-index: 2; }
.do-card.has-video > ul { text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.do-card.has-video li { border-top-color: rgba(255,255,255,.22); }

/* ---------- How we work: image tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.tile { margin: 0; text-align: center; }
.tile-art {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  background: #fff;
  margin-bottom: 18px;
}
.tile figcaption strong { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.tile figcaption span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 6px; line-height: 1.45; }

/* ---------- Capabilities tag cloud ---------- */
.caps { text-align: center; max-width: 860px; }
.tags {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.tags li {
  font-size: 14.5px; color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.caps-title { font-size: clamp(1.7rem, 4vw, 2.8rem); }

/* ---------- Selected work: editorial grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.work-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.work-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2,.6,.2,1);
}
.work-item:hover img,
.work-item:focus-visible img { transform: scale(1.045); }

/* placeholder shown until a real <img> is dropped in */
.work-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 14px; letter-spacing: .04em;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.05), transparent 60%),
    var(--bg-2);
}

/* caption */
.work-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 24px 22px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.work-item:hover .work-cap,
.work-item:focus-visible .work-cap { opacity: 1; transform: none; }
.work-cap h3 { color: #fff; font-size: 1.35rem; margin: 0; }
.work-cap span { display: block; color: rgba(255,255,255,.78); font-size: .92rem; margin-top: 4px; font-weight: 500; }

/* ---------- Technical-drawing panel ---------- */
.drawing-panel { margin: 18px 0 0; }
.work-item.drawing {
  aspect-ratio: 16 / 10;
  background: #fff;
}
.work-item.drawing img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}
.work-item.drawing:hover img,
.work-item.drawing:focus-visible img { transform: none; }   /* no zoom on a drawing */
.drawing-panel figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 5vw;
  background: rgba(10,9,8,.92);
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox-inner { margin: 0; max-width: 1100px; }
.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
}
.lightbox-inner figcaption {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  text-align: center;
  margin-top: 16px;
}
.lightbox-close {
  position: absolute; top: 22px; right: 28px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ---------- Contact ---------- */
.contact-intro { color: var(--muted); font-size: 19px; margin: 18px auto 0; }
.contact-intro.center { text-align: center; max-width: 460px; }

.contact-methods {
  margin: 44px auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-method {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 34px;
  transition: background .15s, border-color .15s, transform .15s;
}
.contact-method:not(.static):hover {
  background: var(--bg-2);
  border-color: var(--line-2);
  transform: translateY(-2px);
}
/* email card: plain, copyable text — not a link */
.contact-method.static { cursor: default; }
.contact-method.static .contact-value { user-select: text; }
a.contact-value { text-decoration: none; color: inherit; }
a.contact-value:hover { color: #fff; }

/* copy-to-clipboard button */
.copy-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.1); color: var(--text); border-color: var(--line-2); }
.copy-btn svg { width: 17px; height: 17px; }
.copy-btn .ic-check { display: none; }
.copy-btn.copied { color: #35c46a; border-color: #35c46a; background: rgba(53,196,106,.12); }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-check { display: inline; }
.contact-label {
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 11px; color: var(--faint);
}
.contact-value {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #35c46a;
  flex: 0 0 auto;
}
.contact-foot { text-align: center; margin-top: 30px; }
.contact-foot .tag-light {
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-meta { color: var(--faint); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { min-height: 320px; }
  .do-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  .nav-links .pill:not(.pill-solid) { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-method { padding: 26px; }

  /* Selected work: two columns + captions always visible (no hover on touch) */
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .work-cap { opacity: 1; transform: none; padding: 16px 16px 14px; }
  .work-cap h3 { font-size: 1.05rem; }
  .work-cap span { font-size: .82rem; }
}
