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

:root {
  --bg:    #EEECEA;
  --ink:   #1A1A18;
  --mid:   #888885;
  --rule:  #D0CFCD;
  --sky:   linear-gradient(160deg, #B0B3C8 0%, #9598B5 40%, #8487AA 100%);
  --font:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1280px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); font-weight: 300; color: var(--ink); line-height: 1.6; }
.sky-body  { background: var(--sky); min-height: 100svh; }
.page-body { background: var(--bg); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 60px; }

.text-link { display: inline-block; font-size: 0.88rem; font-weight: 300; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; transition: opacity 0.15s ease; }
.text-link:hover { opacity: 0.45; }

/* NAV */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 36px 60px; }
.nav--hero { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.nav--hero .nav-logo { color: rgba(255,255,255,0.9); }
.nav--hero .nav-links a { color: rgba(255,255,255,0.65); }
.nav--hero .nav-links a:hover { color: #fff; }
.nav--page { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(238,238,234,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); padding: 28px 60px; }
.nav-logo { font-size: 0.9rem; font-weight: 300; letter-spacing: 0.05em; color: var(--ink); }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

/* HOMEPAGE */
.hero { position: relative; width: 100%; height: 100svh; min-height: 600px; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.hero-text { position: relative; z-index: 5; padding: 0 60px; max-width: 860px; width: 100%; }
.hero-text h1 { font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 300; line-height: 1.18; color: rgba(255,255,255,0.95); letter-spacing: -0.01em; margin-bottom: 40px; }
.hero-btn { display: inline-block; font-family: var(--font); font-size: 0.88rem; font-weight: 300; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.5); border-radius: 100px; padding: 14px 36px; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.hero-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8); color: #fff; }

/* ABOUT */
.about-hero { min-height: 100svh; display: flex; align-items: center; padding: 160px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: center; width: 100%; }
.about-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 200; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-bottom: 36px; }
.about-body p { font-size: 0.95rem; font-weight: 300; color: var(--ink); line-height: 1.85; margin-bottom: 18px; letter-spacing: 0.01em; }
.about-body p:last-child { margin-bottom: 28px; }
.about-photo-col { display: flex; justify-content: center; }
.about-photo { width: 100%; max-width: 353px; display: block; }

/* PORTFOLIO */
.portfolio-page { padding: 160px 0 120px; min-height: 100svh; }
.port-label { font-size: 0.75rem; font-weight: 300; letter-spacing: 0.04em; color: var(--mid); margin-bottom: 24px; display: block; }
.port-title { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; max-width: 820px; margin-bottom: 160px; }

/* Brand logos — stacked, centred */
/* Portfolio carousel */
.port-carousel {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 200px;
}
.port-carousel-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.port-carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}
.port-carousel-img[alt="Tokkia"]           { width: 260px; height: auto; }
.port-carousel-img[alt="Unfabled"]         { width: 200px; height: auto; }
.port-carousel-img[alt="Two Moons Health"] { width: 280px; height: auto; }
.port-carousel-img[alt="Nemah"]            { width: 300px; height: auto; }

/* Publication logos — two explicit rows */
.media-label { display: block; font-size: 0.68rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 40px; text-align: center; }
.media-logos { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; }
.media-row { display: flex; align-items: center; justify-content: center; gap: 80px; width: 100%; }
.media-logos .media-logo-item { display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.media-logo-img { height: 32px; width: auto; opacity: 1; transition: opacity 0.15s; }
.media-logo-img:hover { opacity: 0.45; }

/* CONTACT */
.contact-section { padding: calc(80px + 72px) 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.contact-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 200; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-bottom: 28px; }
.contact-intro { font-size: 1rem; font-weight: 300; color: var(--mid); line-height: 1.75; margin-bottom: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 0.72rem; font-weight: 300; letter-spacing: 0.05em; color: var(--mid); }
.field input, .field select, .field textarea { background: transparent; background-color: transparent; border: none; border-bottom: 1px solid var(--rule); padding: 10px 0; font-family: var(--font); font-size: 0.95rem; font-weight: 300; color: var(--ink); outline: none; transition: border-color 0.2s ease; width: 100%; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: var(--bg); color: var(--ink); }
.submit-btn { align-self: flex-start; font-family: var(--font); font-size: 0.85rem; font-weight: 300; letter-spacing: 0.08em; color: #fff; background: var(--ink); border: none; padding: 14px 44px; cursor: pointer; transition: opacity 0.2s ease; }
.submit-btn:hover { opacity: 0.65; }

/* TABLET */
@media (max-width: 960px) {
  .container { padding: 0 32px; }
  .nav, .nav--hero, .nav--page { padding: 24px 32px; }
  .hero-text { padding: 0 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-col { justify-content: flex-start; }
  .about-photo { max-width: 280px; }
  .media-row { gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* MOBILE */
@media (max-width: 600px) {
  .container { padding: 0 24px; }
  .nav, .nav--page { padding: 20px 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.07em; }
  .hero-text { padding: 0 24px; }
  .hero-text h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .about-hero { padding: 120px 0 80px; }
  .about-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .about-photo { max-width: 240px; }
  .portfolio-page { padding: 120px 0 80px; }
  .port-title { margin-bottom: 80px; }
  .port-carousel { height: 100px; margin-bottom: 144px; }
  .port-carousel-img[alt="Tokkia"]           { width: 88%; max-width: 340px; }
  .port-carousel-img[alt="Unfabled"]         { width: 80%; max-width: 300px; }
  .port-carousel-img[alt="Two Moons Health"] { width: 88%; max-width: 340px; }
  .port-carousel-img[alt="Nemah"]            { width: 88%; max-width: 340px; }
  .media-logos { flex-direction: column; align-items: center; gap: 24px; }
  .media-row { flex-direction: column; gap: 24px; align-items: center; }
  .media-logos .media-logo-item { justify-content: center; width: 100%; }
  .media-logo-img { height: auto; width: 38%; max-width: 150px; margin: 0 auto; display: block; }
  .contact-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}
