/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-r: #64a4a3;
  --color-bg: #fffdfa;
  --color-text: #323232;
  --color-nav: #aba8a8;
  --color-tagline: #737373;
  --color-divider: #e6e6e6;
  --font-logo: "DM Serif Display", serif;
  --font-en: "Cormorant Garamond", serif;
  --font-jp: "Noto Serif JP", serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-en), var(--font-jp), serif;
  height: 100vh;
  overflow: hidden;
}

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 30px 5vw;
}

nav ul {
  display: flex;
  gap: 48px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--color-nav);
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.nav-active {
  color: var(--color-text);
}

/* ===== Main Layout ===== */
main {
  display: flex;
  height: 100vh;
  align-items: stretch;
  padding-top: 1.5rem;
}

/* ===== Hero Image (Left) ===== */
.hero-image {
  width: 42%;
  padding: 5vh 0 5vh 5vw;
  display: flex;
  align-items: stretch;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}

/* ===== Hero Right ===== */
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2vh 5vw 5vh 2vw;
}

/* ===== Logo / Heading ===== */
h1 {
  margin-top: 2vh;
}

.logo-img {
  width: 70%;
  max-width: 440px;
  display: block;
}

/* ===== News Table ===== */
.news-table {
  margin-top: auto;
  width: 100%;
  border-collapse: collapse;
}

.news-table tr {
  border-bottom: 1px solid var(--color-divider);
}

.news-table tr:first-child {
  border-top: 1px solid var(--color-divider);
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-tagline);
  letter-spacing: 0.05em;
  padding: 12px 24px 12px 0;
  white-space: nowrap;
  vertical-align: top;
}

.news-body {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text);
  padding: 12px 0;
  line-height: 1.6;
}

/* ===== Tagline ===== */
.tagline {
  margin-top: 32px;
  align-self: flex-end;
  font-family: var(--font-jp);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-tagline);
  letter-spacing: 0.05em;
}

/* ===== Inner Page ===== */
body.inner-page {
  height: auto;
  overflow: auto;
}

.page {
  display: block;
  height: auto;
  max-width: 960px;
  margin: 0 auto;
  padding: 120px 5vw 80px;
}

/* ===== Page Header ===== */
.page-header {
  margin-bottom: 64px;
}

.page-title {
  font-family: var(--font-jp);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-r);
  margin-bottom: 10px;
}

.page-subtitle {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-tagline);
  letter-spacing: 0.1em;
}

.page-divider {
  width: 40px;
  height: 1px;
  background-color: var(--color-r);
  margin-top: 24px;
}

/* ===== Product Cards ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--color-divider);
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
}

.product-card-image.wip {
  background-color: #aba8a8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image.soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.product-card-image.soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 253, 250, 0.6);
  border-radius: 4px;
}

.product-card-image.soon::after {
  content: "Coming Soon";
  position: relative;
  z-index: 1;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #fff;
  background-color: rgba(100, 164, 163, 0.75);
  padding: 8px 32px;
}

.product-card-image.wip::after {
  content: "Under Development";
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #fff;
}

.product-card-name {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-card-desc {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-tagline);
  line-height: 1.8;
}

.product-card-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-r);
  margin-top: 12px;
}

/* ===== Studio Editorial ===== */
.studio-section {
  margin-bottom: 72px;
}

.studio-section-title {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-r);
  margin-bottom: 28px;
}

.studio-text {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 300;
  line-height: 2.2;
  color: var(--color-text);
  max-width: 640px;
}

.studio-text + .studio-text {
  margin-top: 24px;
}

.studio-pullquote {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-tagline);
  border-left: 2px solid var(--color-r);
  padding-left: 24px;
  margin: 48px 0;
  max-width: 560px;
}

.studio-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-divider);
  margin: 48px 0;
}

/* ===== Skill Table ===== */
.skill-table {
  width: 100%;
  border-collapse: collapse;
}

.skill-table tr {
  border-bottom: 1px solid var(--color-divider);
}

.skill-table th,
.skill-table td {
  padding: 18px 0;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-align: left;
  vertical-align: top;
}

.skill-table th {
  width: 140px;
  color: var(--color-tagline);
  font-weight: 500;
  padding-right: 32px;
  white-space: nowrap;
}

.skill-table td {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== About / Company Info ===== */
.about-intro {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 300;
  line-height: 2.2;
  color: var(--color-text);
  max-width: 640px;
  margin-bottom: 56px;
}

.company-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--color-divider);
}

.company-table th,
.company-table td {
  padding: 20px 0;
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 140px;
  font-weight: 300;
  color: var(--color-tagline);
  white-space: nowrap;
  padding-right: 32px;
}

.company-table td {
  color: var(--color-text);
}

.company-table a {
  color: var(--color-r);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.company-table a:hover {
  opacity: 0.7;
}

/* ===== Contact Form ===== */
.contact-intro {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 2;
  color: var(--color-tagline);
  max-width: 560px;
  margin-bottom: 48px;
}

.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-tagline);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--color-divider);
  background: transparent;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 200;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--color-r);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

.form-submit {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-bg);
  background-color: var(--color-r);
  border: none;
  padding: 14px 48px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-radius: 2px;
  margin-top: 8px;
}

.form-submit:hover {
  opacity: 0.8;
}

/* ===== Thanks Page ===== */
.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
}

.thanks-message {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-tagline);
  line-height: 2;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ===== Footer ===== */
footer {
  padding: 64px 5vw 32px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-nav);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body {
    height: auto;
    overflow: auto;
  }

  main {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .hero-image {
    width: 100%;
    padding: 16px;
    height: 50vh;
  }

  .hero-right {
    padding: 24px 24px 32px;
  }

  nav {
    padding: 16px 20px;
  }

  nav ul {
    gap: 24px;
  }

  nav a {
    font-size: 0.65rem;
  }

  .tagline {
    margin-top: 48px;
  }

  /* Inner pages */
  .page {
    padding: 88px 24px 48px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-header {
    margin-bottom: 40px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .studio-pullquote {
    font-size: 1.2rem;
    margin: 32px 0;
  }

  .company-table th {
    display: block;
    padding-bottom: 4px;
    width: 100%;
  }

  .company-table td {
    display: block;
    padding-top: 0;
  }

  .form-submit {
    width: 100%;
    text-align: center;
  }
}
