@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --bg: #171717;
  --fg: #fff;
  --menu-bg: #0f0f0f;
  --menu-fg-secondary: #5f5f5f;
  --hamburger-icon-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

body {
  font-family: 'PP Neue Montreal', 'Inter', sans-serif;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  overflow-x: hidden;
}

/* Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

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

h1 {
  font-size: 7.5rem;
  font-weight: 500;
  letter-spacing: -0.2rem;
  line-height: 1;
}

p {
  font-size: 0.95rem;
  font-weight: 500;
}

a {
  text-decoration: none;
  color: var(--fg);
  font-size: 1.5rem;
  font-weight: 500;
}

.container {
  position: relative;
  transform: translateY(0svh);
  background-color: var(--bg);
  color: var(--fg);
}

section {
  position: relative;
  width: 100vw;
  height: 100svh;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: -1;
}

section h1 {
  width: 75%;
}

.hero h1 {
  overflow: hidden;
  visibility: hidden;
}

.hero-line {
  display: block;
  position: relative;
  overflow: hidden;
}

section img {
  opacity: 0.5;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: all;
  color: var(--menu-fg-secondary);
  z-index: 2;
}

.menu-logo {
  width: 2rem;
  height: 2rem;
}

.menu-toggle-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.menu-toggle-label {
  overflow: hidden;
}

.menu-toggle-label p {
  position: relative;
  transform: translateY(0%);
  will-change: transform;
}

.menu-hamburger-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--hamburger-icon-border);
  border-radius: 100%;
}

.menu-hamburger-icon span {
  position: absolute;
  width: 15px;
  height: 1.25px;
  background-color: var(--fg);
  transition: all 0.75s cubic-bezier(0.87, 0, 0.13, 1);
  transform-origin: center;
  will-change: transform;
}

.menu-hamburger-icon span:nth-child(1) {
  transform: translateY(-3px);
}

.menu-hamburger-icon span:nth-child(2) {
  transform: translateY(3px);
}

.menu-hamburger-icon.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg) scaleX(1.05);
}

.menu-hamburger-icon.active span:nth-child(2) {
  transform: translateY(0) rotate(-45deg) scaleX(1.05);
}

.menu-overlay,
.menu-overlay-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  color: var(--fg);
  overflow: hidden;
  z-index: 1;
}

.menu-overlay {
  background-color: var(--menu-bg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  will-change: clip-path;
}

.menu-overlay-content {
  display: flex;
  transform: translateY(-50%);
  will-change: transform;
  pointer-events: all;
}

.menu-media-wrapper {
  flex: 2;
  opacity: 0;
  will-change: opacity;
}

.menu-media-wrapper img {
  opacity: 0.25;
}

.menu-content-wrapper {
  flex: 3;
  position: relative;
  display: flex;
}

.menu-content-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-footer {
  margin: 0 auto;
}

.menu-content-main,
.menu-footer {
  width: 75%;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.menu-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-col:nth-child(1) {
  flex: 3;
}

.menu-col:nth-child(2) {
  flex: 2;
}

.menu-link a {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.menu-tag a,
.menu-footer p {
  color: var(--menu-fg-secondary);
}

.line {
  position: relative;
  will-change: transform;
}

@media (max-width: 1000px) {
  h1 {
    font-size: 3rem;
    letter-spacing: -0.05rem;
  }

  section h1 {
    width: 100%;
  }

  .menu-media-wrapper {
    display: none;
  }

  .menu-content-main,
  .menu-footer {
    width: 100%;
  }

  .menu-content-main {
    top: 50%;
    flex-direction: column;
    align-items: flex-start;
    gap: 5rem;
  }

  .menu-link a {
    font-size: 3rem;
  }

  .menu-tag a {
    font-size: 1.25rem;
  }
}

/* =====================
   GLOBAL GRAIN TEXTURE
   ===================== */

body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================
   INNER PAGE STYLES
   ===================== */

section.section-auto {
  height: auto;
  min-height: auto;
  overflow: visible;
}

/* Services preview — home page */
.services-preview {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.services-preview-list {
  width: 75%;
}

.services-preview-item {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services-preview-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-preview-num {
  font-size: 0.8rem;
  color: var(--menu-fg-secondary);
  width: 2rem;
  flex-shrink: 0;
}

.services-preview-name {
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.1rem;
  flex: 1;
  line-height: 1;
}

.services-preview-desc {
  font-size: 0.85rem;
  color: var(--menu-fg-secondary);
  max-width: 180px;
  text-align: right;
  line-height: 1.5;
}

/* Services page — individual service sections */
.service-detail {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.service-detail-inner {
  width: 75%;
}

.service-num {
  font-size: 0.8rem;
  color: var(--menu-fg-secondary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.service-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 3rem;
}

.service-name {
  font-size: 6rem;
  font-weight: 500;
  letter-spacing: -0.2rem;
  line-height: 1;
  margin-bottom: 3rem;
}

.service-body {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.service-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 360px;
}

.service-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.service-deliverables li {
  font-size: 0.9rem;
  color: var(--menu-fg-secondary);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-deliverables li::before {
  content: '— ';
}

/* Work page — projects grid */
.work-grid-section {
  height: auto;
  overflow: visible;
  padding: 2rem;
  display: block;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.project-card {
  aspect-ratio: 4/3;
  background-color: #1d1d1d;
  border-radius: 0.2rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.4s ease;
}

.project-card:hover {
  background-color: #222;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.project-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
  filter: brightness(0.75) saturate(0.7);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.project-card:hover .project-card-bg {
  opacity: 0.3;
  transform: scale(1.04);
}

.project-card-info {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.project-card-index {
  z-index: 2;
}

.project-card-name {
  font-size: 1.2rem;
  font-weight: 500;
}

.project-card-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-card-type {
  font-size: 0.75rem;
  color: var(--menu-fg-secondary);
}

.project-card-year {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

.project-card-index {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  z-index: 2;
}

/* Per-card tint colors — show through the low-opacity photo */
.work-grid .project-card:nth-child(1) { background-color: #0f1a2e; }
.work-grid .project-card:nth-child(2) { background-color: #17102a; }
.work-grid .project-card:nth-child(3) { background-color: #0a1e1a; }
.work-grid .project-card:nth-child(4) { background-color: #1e1408; }
.work-grid .project-card:nth-child(5) { background-color: #1e0c0c; }
.work-grid .project-card:nth-child(6) { background-color: #0a1020; }

/* Service section background images */
.service-bg,
.about-section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.07;
  z-index: 0;
  filter: brightness(0.5) saturate(0.4);
  pointer-events: none;
}

.service-detail-inner {
  position: relative;
  z-index: 1;
}

/* About page */
.about-story-section {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background-color: #111;
}

.about-lead {
  position: relative;
  z-index: 1;
  width: 75%;
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -0.08rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.8);
}

.about-values-section {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.about-values-label {
  font-size: 0.78rem;
  color: var(--menu-fg-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.about-values-list {
  width: 75%;
  list-style: none;
}

.about-values-list li {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.06rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
}

.about-values-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.about-values-list li:hover {
  color: rgba(255, 255, 255, 0.9);
}

.about-team-section {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background-color: #111;
}

.about-team-label {
  font-size: 0.78rem;
  color: var(--menu-fg-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.about-team-text {
  width: 65%;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* Contact page */
.contact-email-section {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.contact-big-email {
  font-size: 4.5rem;
  font-weight: 500;
  letter-spacing: -0.2rem;
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
  display: block;
  overflow-wrap: break-word;
  word-break: break-all;
  transition: opacity 0.3s ease;
}

.contact-big-email:hover {
  opacity: 0.6;
}

.contact-details-section {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  background-color: #111;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 75%;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail-label {
  font-size: 0.78rem;
  color: var(--menu-fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-detail-value a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail-value a:hover {
  color: var(--fg);
}

/* Privacy policy page */
.privacy-content-section {
  height: auto;
  overflow: visible;
  align-items: flex-start;
  flex-direction: column;
  padding: 2rem 2rem 8rem;
}

.privacy-prose {
  max-width: 720px;
  width: 75%;
}

.privacy-effective {
  font-size: 0.8rem;
  color: var(--menu-fg-secondary);
  display: block;
  margin-bottom: 4rem;
  letter-spacing: 0.05em;
}

.privacy-prose h2 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02rem;
}

.privacy-prose p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.privacy-prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.privacy-prose ul li {
  font-size: 0.93rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.3rem;
}

.privacy-prose strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Footer bar (shared across pages) */
.site-footer {
  position: relative;
  width: 100vw;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background-color: var(--bg);
  color: var(--fg);
}

.site-footer p,
.site-footer a {
  font-size: 0.8rem;
  color: var(--menu-fg-secondary);
}

.site-footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

/* =====================
   RESPONSIVE — INNER PAGES
   ===================== */

@media (max-width: 1000px) {
  .services-preview-list {
    width: 100%;
  }

  .services-preview-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .services-preview-name {
    font-size: 2.25rem;
  }

  .services-preview-desc {
    text-align: left;
    max-width: none;
    width: 100%;
  }

  .service-name {
    font-size: 2.75rem;
    letter-spacing: -0.05rem;
  }

  .service-detail-inner {
    width: 100%;
  }

  .service-body {
    flex-direction: column;
    gap: 2rem;
  }

  .service-description {
    max-width: none;
  }

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

  .about-lead {
    width: 100%;
    font-size: 1.85rem;
  }

  .about-values-list {
    width: 100%;
  }

  .about-values-list li {
    font-size: 1.75rem;
  }

  .about-team-text {
    width: 100%;
    font-size: 1.1rem;
  }

  .contact-big-email {
    font-size: 2rem;
    letter-spacing: -0.05rem;
  }

  .contact-details-grid {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .privacy-prose {
    width: 100%;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
