/* ThreeSees — base styles
   Palette: black & white — background #FFFFFF, ink #0A0A0A, gray accent #6B6B6B
   Headings: Palatino (restrained, editorial) / Body: system sans
*/

:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --accent: #6B6B6B;
  --paper: #F4F4F4;
  --line: rgba(0, 0, 0, 0.13);
  --serif: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap-narrow {
  max-width: 720px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}

a { color: inherit; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0);
  transition: box-shadow 0.35s ease;
}

.site-header.scrolled {
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding 0.35s cubic-bezier(.22,.61,.36,1);
}

.site-header.scrolled .header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.3s ease;
}

.wordmark:hover {
  opacity: 0.7;
}

.wordmark-logo {
  display: block;
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transition: left 0.28s cubic-bezier(.22,.61,.36,1), right 0.28s cubic-bezier(.22,.61,.36,1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  left: 0;
  right: 0;
}

/* Hero */

.hero {
  position: relative;
  padding: 140px 0 130px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.hero-map {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 105%;
  max-width: 980px;
  height: 58%;
  color: var(--ink);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 46%, black 0%, black 60%, transparent 90%);
  mask-image: radial-gradient(ellipse 62% 66% at 50% 46%, black 0%, black 60%, transparent 90%);
}

.hero-map-japan {
  fill: currentColor;
  fill-opacity: 0.9;
  stroke: none;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero-logo-wrap {
  margin: 0 0 26px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  display: block;
  width: clamp(220px, 34vw, 380px);
  height: auto;
}

.hero-lede {
  max-width: 860px;
  margin: 0 auto 34px;
  font-size: 18px;
  color: rgba(10, 10, 10, 0.82);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.18);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  text-decoration: none;
  z-index: 1;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5), rgba(10,10,10,0));
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
}

.lead {
  font-size: 21px;
  font-family: var(--serif);
  line-height: 1.55;
  margin: 0 0 20px;
}

.section p { margin: 0 0 16px; }
.section p:last-child { margin-bottom: 0; }

/* Services cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card {
  position: relative;
  padding-top: 22px;
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  transition: width 0.45s cubic-bezier(.22,.61,.36,1);
}

.card:hover {
  transform: translateY(-6px);
}

.card:hover::before {
  width: 100%;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.card p:not(.card-meta) {
  font-size: 15px;
  color: rgba(10, 10, 10, 0.85);
}

/* Experience */

.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.experience-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.35s cubic-bezier(.22,.61,.36,1);
}

.experience-list li:hover {
  padding-left: 10px;
}

.experience-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.exp-title {
  font-family: var(--serif);
  font-size: 18px;
  flex: 0 0 260px;
}

.exp-detail {
  flex: 1 1 320px;
  color: rgba(10, 10, 10, 0.8);
  font-size: 15px;
}

/* Contact */

.section-dark {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.kicker-light {
  color: var(--accent);
}

.contact-lede {
  font-size: 20px;
  font-family: var(--serif);
  color: var(--bg);
  max-width: 480px;
  margin: 0 auto 26px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(22px, 4vw, 30px);
  font-family: var(--serif);
  text-decoration: none;
  color: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  transition: border-color 0.3s ease, color 0.3s ease, letter-spacing 0.3s ease;
}

.contact-email:hover {
  border-color: var(--accent);
  color: var(--accent);
  letter-spacing: 0.01em;
}

.contact-location {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Footer */

.site-footer {
  padding: 32px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: rgba(10, 10, 10, 0.55);
}

/* Responsive */

@media (max-width: 760px) {
  .header-inner { flex-direction: column; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .site-nav { gap: 20px; }
  .hero { padding: 100px 0 80px; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; gap: 48px; }
  .exp-title { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 22px; }
  .site-nav { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: 12px; }
}

/* Motion: hero entrance + scroll reveals */

@media (prefers-reduced-motion: no-preference) {

  .hero .eyebrow,
  .hero h1,
  .hero .hero-lede,
  .hero .btn {
    opacity: 0;
    transform: translateY(18px);
    animation: heroIn 0.9s cubic-bezier(.22,.61,.36,1) forwards;
  }

  .hero .eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.16s; }
  .hero .hero-lede { animation-delay: 0.3s; }
  .hero .btn { animation-delay: 0.44s; }

  @keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .cards .card:nth-child(1) { transition-delay: 0s; }
  .cards .card:nth-child(2) { transition-delay: 0.12s; }
  .cards .card:nth-child(3) { transition-delay: 0.24s; }

  .experience-list li:nth-child(1) { transition-delay: 0s; }
  .experience-list li:nth-child(2) { transition-delay: 0.12s; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { display: none; }
}
