:root {
  --bg: #0d0f0c;
  --panel: #131713;
  --panel-strong: #1a211b;
  --line: #344137;
  --text: #f1eee7;
  --muted: #a8b2a1;
  --accent: #7f9b78;
  --accent-strong: #9eb691;
  --accent-soft: rgba(127, 155, 120, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Yu Mincho", "Hiragino Mincho ProN", serif;
  background:
    radial-gradient(circle at top, rgba(120, 29, 29, 0.18), transparent 28%),
    linear-gradient(180deg, #100f0e 0%, #151210 38%, #0f0d0c 100%);
  color: var(--text);
}

body.is-modal-open {
  overflow: hidden;
}

.floating-header {
  position: fixed;
  left: 50%;
  z-index: 30;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-0.8rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.floating-header--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.2rem 1.1rem;
  border: 1px solid rgba(243, 237, 231, 0.12);
  background: rgba(16, 15, 14, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.floating-header__logo {
  display: block;
  width: 100px;
  height: auto;
  object-fit: contain;
}

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

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2rem;
}

.hero__noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 6px,
      rgba(255, 255, 255, 0.018) 6px,
      rgba(255, 255, 255, 0.018) 7px
    );
  opacity: 0.35;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.eyebrow,
.section__index,
.work-card__eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.logo-frame {
  width: min(78vw, 760px);
  aspect-ratio: 1.6 / 1;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.logo-frame__image {
  display: block;
  width: min(100%, 620px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(242, 237, 232, 0.09))
    drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero__note,
.section__lead,
.link-card__note,
.about-card p,
.work-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 6rem;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(243, 237, 231, 0.1);
}

.section--about {
  margin-top: -1.5rem;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section__header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  font-weight: 500;
}

.section__lead {
  text-align: center;
}

.section--about .section__lead {
  max-width: 42rem;
  margin: 0 auto;
}

.about-card,
.news-frame,
.work-card,
.link-card {
  background: linear-gradient(180deg, rgba(26, 33, 27, 0.44), rgba(19, 23, 19, 0.48));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-card {
  padding: 1.5rem;
  max-width: 780px;
}

.news-frame {
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.news-frame__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.news-frame__toolbar p {
  margin: 0;
  color: var(--muted);
}

.news-frame__toolbar button {
  width: 3rem;
  height: 3rem;
}

.news-frame__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(243, 237, 231, 0.1);
}

.news-item {
  border-bottom: 1px solid rgba(243, 237, 231, 0.1);
}

.news-item a,
.news-item > span {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
}

.news-item__date {
  color: var(--accent);
}

.news-item--ghost {
  color: var(--muted);
}

.news-item a {
  cursor: pointer;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.news-modal[hidden] {
  display: none;
}

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 8, 0.78);
  backdrop-filter: blur(6px);
}

.news-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  min-height: 320px;
  max-height: min(80vh, 900px);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 33, 27, 0.98), rgba(19, 23, 19, 1));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}

.news-modal__content {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  min-height: 0;
  flex: 1 1 auto;
}

.news-modal__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.news-modal__eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.news-modal__date {
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.news-modal__content h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 500;
}

.news-modal__placeholder {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.news-modal__body {
  display: grid;
  gap: 1rem;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 155, 120, 0.72) rgba(19, 23, 19, 0.72);
}

.news-modal__body::-webkit-scrollbar {
  width: 10px;
}

.news-modal__body::-webkit-scrollbar-track {
  background: rgba(19, 23, 19, 0.72);
  border-left: 1px solid rgba(243, 237, 231, 0.06);
}

.news-modal__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(158, 182, 145, 0.72), rgba(127, 155, 120, 0.72));
  border: 2px solid rgba(19, 23, 19, 0.72);
  border-radius: 999px;
}

.news-modal__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(171, 194, 159, 0.84), rgba(141, 170, 132, 0.84));
}

.news-modal__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(243, 237, 231, 0.08);
}

.news-modal__body h1,
.news-modal__body h2,
.news-modal__body h3,
.news-modal__body p {
  margin: 0;
}

.news-modal__body h1,
.news-modal__body h2,
.news-modal__body h3 {
  font-weight: 500;
}

.news-modal__body p,
.news-modal__body li {
  color: var(--muted);
  line-height: 1.9;
}

.news-modal__body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.work-card {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr;
  gap: 0;
  margin-top: 1.5rem;
  overflow: hidden;
}

.work-card__visual {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(127, 155, 120, 0.18), transparent 35%),
    linear-gradient(180deg, #243026, #131713);
  color: rgba(241, 238, 231, 0.7);
  border-right: 1px solid var(--line);
}

.work-card__visual iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-card__body {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
}

.work-card__body h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button-link__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

.button-link:hover {
  background: rgba(127, 155, 120, 0.24);
  border-color: rgba(158, 182, 145, 0.56);
  transform: translateY(-1px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.link-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  min-height: 140px;
}

.link-card__label {
  font-size: 1.25rem;
}

.link-card--placeholder {
  opacity: 0.62;
}

@media (max-width: 820px) {
  .floating-header {
    width: 100%;
  }

  .floating-header__brand {
    padding: 0.2rem 1rem;
  }

  .floating-header__logo {
    width: min(100%, 100px);
  }

  main {
    width: min(100% - 1.25rem, 100%);
  }

  .news-item a,
  .news-item > span,
  .work-card,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .work-card__visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .news-item__date {
    display: block;
    margin-bottom: 0.35rem;
  }

  .news-item a,
  .news-item > span {
    gap: 0.25rem;
  }
}
