:root {
  --bg: #fff;
  --ink: #000;
  --ink-soft: #4a4a4a;
  --accent: #ff2000;
  --line: #e5e5e5;
  --max: 1180px;
  --serif: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

/* Scroll progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s ease;
}

nav a:hover { color: var(--accent); }
nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 140px 0 110px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 1.4em;
  font-family: var(--serif);
}

.hero-title {
  margin: 0 0 0.5em;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  text-transform: uppercase;
}

.hero-title .dot { color: var(--accent); }

.hero-sub {
  max-width: 42ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.3rem;
  font-style: italic;
}

/* Section head */
.section-head {
  margin-bottom: 3em;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.2em;
}

.section-sub {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}

/* Work / Pinboard */
.work {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

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

.pin-item {
  margin: 0;
  position: relative;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.3s ease;
  background: #fff;
  padding: 14px 14px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
}

.pin-item:hover {
  transform: rotate(0deg) translateY(-4px);
}

.pin-dot {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 3px 5px rgba(0,0,0,0.35), inset -2px -2px 3px rgba(0,0,0,0.25);
  z-index: 2;
}

.pin-photo {
  display: block;
  aspect-ratio: 4 / 5;
  width: 100%;
}

.pin-item figcaption {
  padding-top: 12px;
  font-size: 1.1rem;
  text-align: center;
}

.pin-item figcaption span {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 2px;
}

.ph-1 { background: linear-gradient(135deg, #d8d8d8, #7a7a7a); }
.ph-2 { background: linear-gradient(135deg, #e6e2da, #9c948a); }
.ph-3 { background: linear-gradient(135deg, #cfcfcf, #4a4a4a); }
.ph-4 { background: linear-gradient(135deg, #ded9d0, #837b6e); }
.ph-5 { background: linear-gradient(135deg, #e2e2e2, #8a8a8a); }
.ph-6 { background: linear-gradient(135deg, #d6d0c4, #6f665a); }

/* About */
.about {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-style: italic;
}

.about-text p {
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.1rem;
}

.about-portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, #ececec, #9a9a9a 60%, #4a4a4a);
}

/* Contact */
.contact {
  padding: 130px 0;
  text-align: center;
}

.contact h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-style: italic;
}

.contact p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.25s;
}

.contact-email:hover { color: var(--accent); }

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-portrait { max-width: 320px; order: -1; }
  .pinboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header .wrap { height: 72px; }
  nav ul {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 32px 28px;
    gap: 20px;
    display: none;
  }
  nav ul.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 0 60px; }
  .work, .about { padding: 70px 0; }
  .contact { padding: 90px 0; }
  .pinboard { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .site-footer .wrap { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
