/* ==============================
   Reset & Variables
   ============================== */
:root {
  --blue: #2c4ea3;
  --blue-light: rgba(44, 78, 163, 0.12);
  --white: #ffffff;
  --border: #e4e4e4;
  --text: #444;
  --text-light: #999;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ==============================
   Page — full viewport
   ============================== */
.page {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
}

/* Blue bottom accent line */
.page::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue);
  z-index: 50;
}

/* ==============================
   Header
   ============================== */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 32px 18px;
  border-bottom: 1px solid var(--border);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-small {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  font-weight: 500;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text);
}

.header-jp {
  margin-left: 18%;
}

.header-jp span {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: var(--blue);
  letter-spacing: 3px;
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-shrink: 0;
}

.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.nav-link {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 400;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--blue); }

.grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 16px; height: 16px;
  margin-top: 1px;
}

.grid-icon span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text);
}

/* ==============================
   Main Grid — 4 columns
   ============================== */
.grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.85fr 1.15fr;
  min-height: 0;
  overflow: hidden;
}

/* Col 1: left image */
.grid-img-left {
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.grid-img-left img,
.grid-img-right img {
  transition: transform 6s ease;
}

.grid-img-left:hover img,
.grid-img-right:hover img {
  transform: scale(1.03);
}

/* Col 2: center (image + title) */
.grid-center {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.center-img {
  height: 40%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.center-img img {
  transition: transform 6s ease;
}

.center-img:hover img {
  transform: scale(1.03);
}

.center-title {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.center-title h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  color: var(--blue);
  letter-spacing: -1px;
}

/* Col 3: meta text at bottom */
.grid-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 28px 32px;
  border-right: 1px solid var(--border);
}

.meta-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-desc {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-light);
  font-weight: 400;
}

.meta-cta {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  display: inline-block;
}

.meta-cta strong {
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--text);
}

.meta-cta:hover { color: var(--blue); }
.meta-cta:hover strong { border-color: var(--blue); }

/* Col 4: right image */
.grid-img-right {
  overflow: hidden;
}

/* ==============================
   Footer
   ============================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arr {
  color: var(--text);
  padding: 2px;
  transition: color 0.2s;
}

.arr:hover { color: var(--blue); }

.footer-sections {
  display: flex;
  align-items: center;
  gap: 0;
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  justify-content: space-around;
  pointer-events: none;
}

.fsec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
  position: relative;
  pointer-events: auto;
  padding: 0 10px;
}

.fsec-num {
  font-size: 2.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: rgba(44, 78, 163, 0.08);
  transition: color 0.3s;
}

.fsec.active .fsec-num {
  color: rgba(44, 78, 163, 0.18);
}

.fsec-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-top: -2px;
  transition: color 0.2s;
}

.fsec.active .fsec-label {
  color: var(--text);
}

.fsec-line {
  position: absolute;
  top: -13px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue);
}

.footer-credit {
  font-size: 0.6rem;
  color: var(--text-light);
  z-index: 2;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 1.3fr 0.8fr 1fr;
  }

  .center-title h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }

  .center-title { padding: 0 24px; }
  .grid-meta { padding: 0 18px 24px; }
}

@media (max-width: 768px) {
  body { overflow-y: auto; }

  .page { height: auto; min-height: 100vh; }

  .header { padding: 14px 18px 12px; }
  .header-jp { display: none; }

  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto auto 200px;
  }

  .grid-img-left { border-right: none; border-bottom: 1px solid var(--border); }
  .grid-center { border-right: none; border-bottom: 1px solid var(--border); }
  .grid-meta {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 18px;
    justify-content: center;
  }
  .grid-img-right { border: none; }

  .center-img { height: 180px; }
  .center-title { padding: 20px 18px; }
  .center-title h1 { font-size: 2.2rem; }

  .footer { padding: 10px 18px; }
  .footer-sections { position: relative; gap: 20px; justify-content: center; }
  .fsec-num { font-size: 1.6rem; }
  .footer-credit { display: none; }
}

@media (max-width: 480px) {
  .brand-text { display: none; }
  .nav-stack { flex-direction: row; gap: 12px; }
  .grid-icon { display: none; }
}

/* Scrollbar & Selection */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }
::selection { background: rgba(44, 78, 163, 0.15); }
