/* ==========================================================================
   UNIVERSAL GOOD — shared styles
   Minimal, photography-forward design language: fixed top-left logotype,
   stacked uppercase nav, bare square-thumbnail grids, dark green-black ground.
   ========================================================================== */

:root {
  --bg: #1c2418;
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.7);
  --fg-faint: rgba(255, 255, 255, 0.45);
  --hairline: rgba(255, 255, 255, 0.15);
  --overlay: rgba(10, 14, 8, 0.35);
  --placeholder-a: #1c2418;
  --placeholder-b: #1c2418;
  --sans: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --cjk: "游ゴシック", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN",
    "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ ゴシック", sans-serif;
  --inset: 40px;
  --header-h: 100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* --------------------------------------------------------------------------
   Header — fixed top-left logotype + stacked nav
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--inset) var(--inset) 0;
}

.logo {
  display: inline-block;
  white-space: nowrap;
}

.logo__primary,
.logo__tagline {
  display: inline;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--fg);
}

.logo__primary {
  font-family: var(--sans);
  font-size: 24px;
  text-transform: uppercase;
}

.logo__tagline {
  font-family: var(--cjk);
  font-size: 20px;
  margin-left: 1.2em;
}

.site-corner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--inset) var(--inset);
  text-align: right;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  opacity: 0.85;
}

.site-corner .cjk {
  font-family: var(--cjk);
  text-transform: none;
}

.menu-toggle {
  display: none;
  margin-top: 16px;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  cursor: pointer;
}

.nav {
  margin-top: 5px;
}

.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav__list li {
  margin: 0 1em 0 0;
}

.nav__link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  opacity: 1;
}

.nav__link[aria-current="page"] {
  border-bottom: 1px solid var(--fg);
}

/* --------------------------------------------------------------------------
   Home — full-bleed hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__bg.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero__placeholder-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero__placeholder-note span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  border: 1px dashed var(--hairline);
  padding: 10px 18px;
}

/* --------------------------------------------------------------------------
   Page content — inner pages sit clear of the fixed header
   -------------------------------------------------------------------------- */

.page {
  padding: calc(var(--header-h) + var(--inset)) var(--inset) 0;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
}

.page__title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  margin: 0 0 32px;
}

/* --------------------------------------------------------------------------
   Grid — Works / Projects
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  list-style: none;
  margin: 40px 0 60px;
  padding: 0;
}

body[data-page="projects"] .grid {
  grid-template-columns: repeat(2, 1fr);
}

body[data-page="projects"] .grid__link {
  max-width: 320px;
}

.grid__item {
  display: block;
}

.grid__link {
  display: block;
}

.grid__thumb {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(155deg, var(--placeholder-a), var(--placeholder-b));
}

.grid__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid__thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.grid__caption {
  display: block;
  margin-top: 14px;
}

.grid__caption-title {
  display: block;
  font-size: 16px;
  color: var(--fg);
}

.grid__caption-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-dim);
}

.grid__link:hover .grid__thumb {
  filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   Project detail — intro text + stacked image gallery
   -------------------------------------------------------------------------- */

.project__back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.project__back:hover {
  color: var(--fg);
}

.project__layout {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 60px;
}

.project__media {
  flex: 1 1 55%;
  min-width: 0;
}

.project__content {
  flex: 1 1 40%;
  min-width: 0;
  max-width: 420px;
}

.project__header {
  margin-bottom: 24px;
}

.project__title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  font-weight: 400;
}

.project__subtitle {
  font-family: var(--cjk);
  font-size: 14px;
  color: var(--fg-dim);
  margin: 0 0 20px;
}

.project__intro p {
  margin: 0 0 20px;
  color: var(--fg-dim);
}

.project__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project__gallery img {
  width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  max-width: 640px;
}

.about__photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: linear-gradient(155deg, var(--placeholder-a), var(--placeholder-b));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.about__photo span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  border: 1px dashed var(--hairline);
  padding: 8px 14px;
}

.about__name {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  font-weight: 400;
}

.about__role {
  font-size: 14px;
  color: var(--fg-dim);
  margin: 0 0 24px;
}

.about__bio p {
  margin: 0 0 20px;
}

.about__section {
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

.about__section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  font-weight: 400;
  margin: 0 0 10px;
}

.about__section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--fg-dim);
}

.about__section li {
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 60px;
  padding: 24px 0 40px;
  font-size: 12px;
  color: var(--fg-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__copy {
  order: 1;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  order: 2;
}

.site-footer__links a:hover {
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project__layout {
    flex-direction: column;
  }

  .project__content {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  :root {
    --inset: 24px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
  }

  .nav[data-open="true"] {
    display: block;
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__list li {
    margin: 0 0 12px 0;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__copy {
    order: 2;
  }

  .site-footer__links {
    order: 1;
  }
}
