:root {
  --bg: #08090c;
  --surface: #101318;
  --surface-strong: #151a21;
  --line: rgba(236, 239, 244, 0.14);
  --line-strong: rgba(236, 239, 244, 0.26);
  --text: #f6f4ee;
  --muted: #b9bdc7;
  --soft: #858c9a;
  --accent: #61d3d8;
  --accent-warm: #d9a441;
  --accent-red: #c6424c;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(97, 211, 216, 0.08), transparent 340px),
    linear-gradient(90deg, rgba(217, 164, 65, 0.05), transparent 34%, rgba(198, 66, 76, 0.05)),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.54), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-160%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 10px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.links a {
  border-radius: 8px;
  padding: 8px 11px;
}

.links a:hover,
.links a:focus-visible,
.links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 104px);
  padding: 76px 0 54px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #7a4f31;
}

.hero h1,
.section h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.96;
}

.tagline,
.lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  margin: 46px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.04);
}

.hero-credit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1;
  padding: 8px 9px;
}

.hero-credit a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-section {
  padding: 20px 0 76px;
}

.section {
  min-height: calc(100vh - 107px);
  padding: 72px 0 90px;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.project-head {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  align-items: center;
}

.mark {
  justify-self: start;
  width: min(360px, 92%);
  margin: 0 0 10px;
}

.mark.redshift {
  width: min(360px, 92%);
}

.title-logo {
  width: min(520px, 100%);
  margin: 0 0 20px;
}

.project-visual {
  position: relative;
  min-height: 360px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.project-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08);
}

.project-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.52);
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.25;
  padding: 8px 9px;
}

.project-visual a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--surface);
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(97, 211, 216, 0.12), rgba(255, 255, 255, 0.025)),
    var(--surface-strong);
  outline: none;
}

.card-logo {
  align-self: center;
  width: min(280px, 82%);
  max-height: 96px;
  margin: 2px auto 18px;
  object-fit: contain;
}

.card > div:last-child {
  margin-top: auto;
  width: 100%;
}

.logo-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--surface);
}

.logo-card .card-logo {
  width: min(260px, 78%);
  height: 76px;
  max-height: none;
  margin: 0 auto 20px;
  object-fit: contain;
}

.center-card {
  text-align: center;
}

.text-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  margin: 0 auto 20px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
}

.card h2,
.section h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: 0;
}

.card p,
.section p,
.section li {
  color: var(--muted);
}

.card p {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 24px;
}

.panel h2 {
  font-size: 24px;
}

.panel p {
  margin-bottom: 0;
}

.result-figure {
  margin: 36px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.result-figure img {
  width: 100%;
  background: #f6f4ee;
}

.result-figure figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  padding: 16px 18px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-panel p {
  margin: 0;
}

.email-link {
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.list-item {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.list-item h2 {
  font-size: 24px;
}

.project-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--surface);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(217, 164, 65, 0.11), rgba(255, 255, 255, 0.025)),
    var(--surface-strong);
  outline: none;
}

.project-media {
  min-height: 240px;
  margin: 0;
  background: #07080b;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.06);
}

.project-media.contain {
  background: #f6f4ee;
}

.project-media.contain img {
  object-fit: contain;
  padding: 10px;
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-kicker {
  margin: 0 0 12px;
  color: #7a4f31;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-body h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.project-body p:not(.project-kicker) {
  margin: 16px 0 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.project-tags span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  padding: 8px 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 650;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.button.secondary {
  color: var(--muted);
  font-weight: 560;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--soft);
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    align-items: center;
    gap: 18px;
    min-height: 64px;
  }

  .links {
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .links::-webkit-scrollbar {
    display: none;
  }

  .links a {
    padding: 7px 9px;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 38px;
  }

  .hero-inner,
  .project-head,
  .content-grid,
  .project-catalog {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
    margin-top: 0;
  }

  .hero-image {
    min-height: 280px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--max), calc(100vw - 32px));
  }

  .topbar {
    position: relative;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0 12px;
  }

  .brand {
    font-size: 25px;
  }

  .links {
    width: calc(100vw - 16px);
    margin-right: -16px;
    gap: 2px;
    font-size: 12px;
    padding-right: 16px;
  }

  .links a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 10px;
  }

  .hero {
    padding: 38px 0 28px;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero h1,
  .section h1 {
    font-size: clamp(42px, 14vw, 58px);
    line-height: 1;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .tagline,
  .lede {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-visual,
  .hero-image,
  .project-visual,
  .project-visual img {
    min-height: 220px;
  }

  .home-section {
    padding: 8px 0 52px;
  }

  .section {
    min-height: auto;
    padding: 42px 0 58px;
  }

  .page-head {
    gap: 16px;
    margin-bottom: 30px;
  }

  .grid,
  .content-grid,
  .project-catalog {
    gap: 12px;
  }

  .card {
    min-height: 158px;
    padding: 18px;
  }

  .panel,
  .project-body {
    padding: 18px;
  }

  .project-media,
  .project-media img {
    min-height: 190px;
  }

  .result-figure figcaption {
    padding: 14px;
    font-size: 13px;
  }

  .button {
    width: 100%;
  }

  .footer {
    padding: 22px 0;
  }
}
