/* ==========================================================================
   1. RESET & BASE VARIABLES
   ========================================================================== */
:root {
  --bg-main: #f6f4ef;
  --text-primary: #000d0d;
  --text-secondary: #6b6b6b;
  --accent-red: #e63946;
  --bg-dark: #0f0f10;
  --border-light: #e5e5e5;
  --font-main: 'Inter', sans-serif;
  --max-width: 1400px; /* Wider for editorial feel */
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(246, 244, 239, 0.95);
  backdrop-filter: blur(8px);
  height: 72px;
  display: flex;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.site-nav ul {
  display: flex;
  gap: 40px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.site-nav a:hover {
  color: var(--accent-red);
}

.site-nav a.active {
  color: var(--accent-red);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-red);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
  height: 600px;
  min-height: 0;
  display: flex;
  align-items: center;
  position: relative;

  background-image: radial-gradient(
    rgba(0, 0, 0, 0.10) 0.7px,
    transparent 0.7px
  );
  background-size: 16px 16px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hero-left {
  max-width: 900px;
  padding: 20px 0;
}

.hero-label-wrapper {
  border-top: 3px solid var(--accent-red);
  display: inline-block;
  padding-top: 12px;
  margin-bottom: 18px;
}

.hero-label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-size: clamp(5.5rem, 9vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}

.hero-signature {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  color: var(--accent-red);
  margin-bottom: 18px;
}

.hero-description {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.45;
  color: #333;
  font-weight: 400;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
}

.vertical-text-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vertical-line {
  width: 1px;
  height: 100px;
  background: #999;
}

.vertical-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  writing-mode: vertical-rl;
}

.vertical-arrow {
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
}

/* ==========================================================================
   4. SELECTED WORK
   ========================================================================== */

.work-section {
  border-top: none;
}

.section-header {
  width: 100%;
  box-sizing: border-box;

  background: #e9e7e2;

  padding: 12px max(40px, calc((100vw - 1400px) / 2 + 40px));

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: none;
}

.section-header > span {
  display: block;
  margin: 0;

  font-size: 19px;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0.20em;

  color: #080808;
}

.work-pagination {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.work-pagination span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.work-pagination button {
  border: none;
  background: none;
  padding: 0;

  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;
}

/* Featured Projects */
.project-featured {
  min-height: 500px;
  height: min(500px, 55vw);
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center right;
  margin-bottom: 4px;
}

.capybara-bg {
  /* Replace with actual image path */
  background-image: linear-gradient(to right, #0f0f10 25%, transparent 60%), url('assets/capybara.png'); 
}

.kioomon-bg {
  background-image: linear-gradient(to right, #0f0f10 25%, transparent 60%), url('assets/kioomon.jpg');
}

.project-featured-container {
  width: 100%;
  z-index: 2;
}

.project-content-dark {
  max-width: 420px;
  color: #fff;
  padding: 40px 0;
}

.project-number {
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.project-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.project-platform {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 1.125rem;
  color: #cccccc;
  margin-bottom: 40px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
}

/* ==========================================================
   PROJECT GRID
   ========================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 48px 24px;
  padding-top: 28px;
}

/* ----------------------------------------------------------
   PORTRAIT — 3 ITEMS PER ROW
   ---------------------------------------------------------- */

.project-portrait {
  grid-column: span 2;

  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 20px;
  align-items: start;
}

.project-portrait .project-compact-image {
  width: 140px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1;
}

.project-portrait .project-compact-text {
  grid-column: 1;
  grid-row: 1;
}

/* ----------------------------------------------------------
   LANDSCAPE — 2 ITEMS PER ROW
   ---------------------------------------------------------- */

.project-landscape {
  grid-column: span 3;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-landscape .project-compact-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  order: 2;
}

.project-landscape .project-compact-text {
  order: 1;
}

/* ----------------------------------------------------------
   IMAGE
   ---------------------------------------------------------- */

.project-compact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-compact-text {
  display: flex;
  flex-direction: column;
}

.project-compact {
  gap: 20px;
  align-items: flex-start;
}

/* ==========================================================================
   5. ABOUT & JOURNEY (DUAL SECTION)
   ========================================================================== */
.dual-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 80px 40px;
  border-top: 1px solid var(--border-light);
}

.section-label-wrapper {
  border-top: 3px solid var(--accent-red);
  display: inline-block;
  padding-top: 12px;
  margin-bottom: 40px;
}

.section-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* About Column */
.about-headline {
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin-bottom: 36px;
  max-width: 100%;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Journey Column */
.timeline-container {
  display: flex;
  gap: 40px;
}

.timeline-main {
  flex: 1;
  border-left: 1px dashed rgba(255, 45, 55, 0.55);
  padding-left: 25px;
  position: relative;
}

.timeline-item {
  margin-bottom: 36px;
  position: relative;
}

.timeline-concurrent {
  flex: 0 0 230px;
  border-left: 1px dashed rgba(255, 45, 55, 0.55);
  padding-left: 22px;
  padding-top: 42px;
  position: relative;
}

.timeline-main .timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-primary);
}

.timeline-main .timeline-item:first-child::before {
  background-color: var(--accent-red);
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 5px;
  display: block;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.timeline-role {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.timeline-concurrent .timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-red);
}

/* ==========================================================================
   6. CONTACT
   ========================================================================== */
.contact-section {
  background-color: var(--bg-dark);
  color: #fff;
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.dark-label {
  border-top-color: #fff;
}

.contact-headline {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin-top: 20px;
}

.contact-highlight {
  font-family: 'Caveat', cursive;
  color: var(--accent-red);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9em;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 80px;
}

.contact-links li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.25rem;
}

.contact-links .icon {
  color: var(--accent-red);
  font-size: 1.5rem;
}

.contact-links a:hover {
  color: var(--accent-red);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-main);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-signature {
  font-family: 'Caveat', cursive;
  color: var(--accent-red);
  font-style: normal;
  font-weight: 600;
  font-size: 1.35rem;
}
.footer-divider {
  margin: 0 10px;
  color: var(--text-secondary);
}

/* ==========================================================================
   8. RESPONSIVE DESIGN — TABLET & MOBILE
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

  .container {
    width: min(100% - 48px, 1400px);
  }

  .hero-title {
    font-size: clamp(5rem, 11vw, 7rem);
  }

  .dual-section {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-portrait,
  .project-landscape {
    grid-column: span 1;
  }

  .timeline-container {
    flex-direction: column;
    gap: 50px;
  }

  .timeline-concurrent {
    padding-top: 0;
  }
}


/* --------------------------------------------------------------------------
   MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* ===== GLOBAL ===== */

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }


  /* ===== HEADER ===== */

  .site-header {
    height: auto;
  }

  .header-container {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }

  .brand-name {
    font-size: 1rem;
    white-space: nowrap;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }


  /* ===== HERO ===== */

  .hero-section {
    min-height: auto;
    padding: 70px 0 65px;
  }

  .hero-content {
    display: block;
  }

  .hero-left {
    width: 100%;
  }

  .hero-label-wrapper {
    margin-bottom: 12px;
  }

  .hero-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .hero-title {
    font-size: clamp(4.5rem, 20vw, 7rem);
    line-height: 0.82;
    letter-spacing: -0.07em;
    margin: 0;
  }

  .hero-title-line {
    display: block;
  }

  .hero-signature {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-top: 24px;
  }

  .hero-description {
    max-width: 330px;
    font-size: 1rem;
    line-height: 1.45;
    margin-top: 12px;
  }

  .hero-right {
    display: none;
  }


  /* ===== SELECTED WORK HEADER ===== */

  .section-header {
    padding: 14px 20px;
    min-height: 62px;
    box-sizing: border-box;
  }

  .section-header > span {
    font-size: 0.72rem;
    line-height: 1.05;
    letter-spacing: 0.24em;
  }

  .work-pagination {
    gap: 12px;
  }

  .work-pagination span {
    font-size: 0.65rem;
  }

  .work-pagination button {
    font-size: 18px;
  }


  /* ===== FEATURED PROJECTS ===== */

  .project-featured {
    min-height: 0;
	height: auto;
	background-position: center;
  }

  .project-featured-container {
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .project-content-dark {
    width: 100%;
    max-width: 100%;
	padding-right: 20px;
  }

  .project-number {
    font-size: 0.7rem;
  }

  .project-title {
    font-size: clamp(2.5rem, 11vw, 4rem);
    line-height: 0.88;
    letter-spacing: -0.055em;
  }

  .project-platform {
    font-size: 0.85rem;
    margin-top: 16px;
  }

  .project-desc {
    max-width: 330px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .project-meta {
    margin-top: 28px;
    padding-top: 12px;
    font-size: 0.72rem;
  }

  .project-meta strong {
    display: block;
    margin-top: 5px;
  }

  .project-links {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
  }

  .project-links a {
    font-size: 0.8rem;
  }


  /* ===== COMPACT PROJECT GRID ===== */

  .project-grid {
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-compact,
  .project-portrait,
  .project-landscape {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-column: span 1;
    box-sizing: border-box;
  }

  .project-compact-text {
    width: 100%;
    box-sizing: border-box;
    padding: 32px 20px;
  }

  .project-title-sm {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 0.95;
    margin: 8px 0 12px;
  }

  .project-desc-sm {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 14px 0 24px;
  }

  .project-meta-sm {
    font-size: 0.7rem;
  }

  .project-compact-image,
  .project-portrait .project-compact-image,
  .project-landscape .project-compact-image {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  }

  .project-compact-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  }


  /* ===== ABOUT + JOURNEY ===== */

  .dual-section {
    display: block;
    padding: 60px 20px;
  }

  .about-column,
  .journey-column {
    width: 100%;
  }

  .journey-column {
    margin-top: 70px;
  }

  .section-label-wrapper {
    margin-bottom: 28px;
  }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  .about-headline {
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
    max-width: 340px;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.55;
  }


  /* ===== JOURNEY / TIMELINE ===== */

  .timeline-container {
    display: block;
  }

  .timeline-main {
    border-left-width: 1px;
    padding-left: 20px;
  }

  .timeline-main .timeline-item::before {
    left: -26px;
    width: 10px;
    height: 10px;
    top: 4px;
  }

  .timeline-concurrent {
    margin-top: 45px;
    padding: 0 0 0 20px;
    border-left-width: 1px;
  }
  
  .timeline-concurrent .timeline-item::before {
    left: -26px;
    width: 10px;
    height: 10px;
    top: 4px;
  }

  .timeline-item {
    margin-bottom: 35px;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-role {
    font-size: 0.8rem;
  }

  .timeline-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }


  /* ===== CONTACT ===== */

  .contact-section {
    padding: 65px 0;
  }

  .contact-grid {
    display: block;
  }

  .contact-headline {
    font-size: clamp(3rem, 13vw, 5rem);
    line-height: 0.9;
    margin-top: 18px;
  }

  .contact-links {
    margin-top: 50px;
    gap: 22px;
  }

  .contact-links li {
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
  }

  .contact-links a {
    overflow-wrap: anywhere;
  }

  .contact-links .icon {
    flex: 0 0 22px;
    font-size: 1.25rem;
  }


  /* ===== FOOTER ===== */

  .site-footer {
    padding: 25px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 0 20px;
  }

  .footer-signature {
    font-size: 1.2rem;
  }

  .footer-right {
    font-size: 0.7rem;
  }
}


/* --------------------------------------------------------------------------
   SMALL PHONES
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {

  .header-container {
    padding: 16px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .site-nav ul {
    gap: 10px;
  }

  .site-nav a {
    font-size: 0.58rem;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .hero-title {
    font-size: clamp(4rem, 19vw, 5.5rem);
  }

  .hero-signature {
    font-size: 2rem;
  }

  .section-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-featured-container {
    padding-left: 16px;
    padding-right: 16px;
    min-height: 480px;
  }

  .project-compact-text {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dual-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-headline {
    font-size: 3rem;
  }
}

/* ==========================================================
   STORE LINKS
   ========================================================== */

.project-links {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.project-links a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;

  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  padding-bottom: 2px;

  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.project-links a:hover {
  opacity: 0.7;
  border-color: transparent;
}