/* Latice — rebuilt from Adobe Portfolio, 2026 */
:root {
  --ink: #111;
  --muted: #777;
  --line: #e8e8e8;
  --bg: #fff;
  --max: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 28px 24px;
  position: relative;
}
.logo img { height: 26px; width: auto; }
nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
nav a:hover, nav a.active { opacity: 0.55; }
.nav-item.has-sub { position: relative; }
.subnav {
  display: none; position: absolute; top: 100%; left: -12px; z-index: 50;
  background: var(--bg); border: 1px solid var(--line); padding: 10px 0; min-width: 190px;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.subnav a { display: block; padding: 7px 18px; }
.nav-item.has-sub:hover .subnav { display: block; }
.socials { display: flex; gap: 14px; margin-left: 10px; border-left: 1px solid var(--line); padding-left: 24px; }
.socials a {
  font-size: 12px; font-weight: 700; text-transform: lowercase;
  width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.socials a:hover { background: var(--ink); color: #fff; opacity: 1; }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; }

/* ---------- home ---------- */
.hero { padding: 90px 0 70px; max-width: 880px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.cta {
  display: inline-block; margin-top: 34px; padding: 13px 30px;
  border: 2px solid var(--ink); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; transition: all .15s ease;
}
.cta:hover { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 32px; padding-top: 20px; }
.card-img { overflow: hidden; background: #f4f4f4; aspect-ratio: 904/468; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.card-title { font-size: 20px; font-weight: 700; }
.card-year { color: var(--muted); font-size: 14px; }
.card-tags { color: var(--muted); font-size: 13.5px; }

/* ---------- project pages ---------- */
.project-title { font-size: 30px; font-weight: 700; padding: 48px 0 26px; }
.intro { max-width: 760px; margin-bottom: 44px; }
.intro p { margin-bottom: 1em; font-size: 17px; }
.proj-img { width: 100%; margin: 0 0 6px; }
.video { position: relative; padding-top: 56.25%; margin: 6px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- other projects ---------- */
.other-projects { margin-top: 80px; border-top: 1px solid var(--line); padding-top: 36px; }
.other-projects h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 24px; }
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mini-card img { aspect-ratio: 904/468; object-fit: cover; background: #f4f4f4; }
.mini-card:hover img { opacity: .85; }
.mini-title { display: block; font-weight: 700; font-size: 14px; margin-top: 9px; }
.mini-tags { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* ---------- text pages ---------- */
.text-page { max-width: 820px; padding-top: 48px; }
.text-page h1 { font-size: 30px; font-weight: 700; margin-bottom: 28px; }
.text-page h2 { font-size: 19px; font-weight: 700; margin: 34px 0 10px; }
.text-page p { margin-bottom: 1em; }
.text-page a:not(.cta) { text-decoration: underline; text-underline-offset: 3px; }
.lede { font-size: 21px; font-weight: 500; margin-bottom: 1.4em; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.svc ul { list-style: none; }
.svc li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-cols .cta { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 30px 24px 50px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--muted);
}
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .top { text-decoration: none; font-weight: 600; color: var(--ink); }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .nav-toggle-label {
    display: block; width: 26px; height: 18px; position: relative; cursor: pointer; z-index: 60;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: all .2s;
  }
  .nav-toggle-label span { top: 8px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 20px;
  }
  nav > a, .nav-item { padding: 10px 0; width: 100%; }
  .nav-toggle:checked ~ nav { display: flex; }
  .subnav { display: block; position: static; border: none; box-shadow: none; padding: 4px 0 0 16px; }
  .subnav a { padding: 5px 0; color: var(--muted); }
  .socials { border: none; padding-left: 0; margin: 14px 0 0; }
  .grid, .services, .contact-cols { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 50px 0 40px; }
}
