:root {
  --brown: #702e25;
  --blue: #bdd7ec;
  --cream: #fffdf8;
  --pink: #ffd7de;
  --text: #2c2b2b;
  --line: rgba(112, 46, 37, 0.48);
  --sans: "Montserrat", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --header-h: 70px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 92px);
  background: var(--brown);
  color: var(--cream);
}
.site-brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
}
.site-brand span { font-style: italic; font-weight: 400; }
.site-nav { display: flex; gap: clamp(24px, 4vw, 58px); }
.site-nav a {
  position: relative;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: min(54vw, 760px);
  overflow: hidden;
  background: var(--cream);
}
.hero-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--cream) 0 8%, var(--blue) 8% 14%);
}
.hero-title {
  position: absolute;
  z-index: 2;
  top: 11%;
  left: 8%;
  display: flex;
  flex-direction: column;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(100px, 13.5vw, 210px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: .61;
}
.hero-title em { margin-left: .25em; font-weight: 400; }
.hero-photo {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: -2%;
  width: min(53vw, 760px);
  object-fit: contain;
  object-position: bottom;
}
.welcome-strip {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border-top: 1px solid rgba(112,46,37,.25);
  background: var(--blue);
  color: var(--brown);
  font-size: 15px;
  white-space: nowrap;
}
.welcome-track {
  display: flex;
  width: max-content;
  padding: 7px 0;
  animation: welcome-scroll 18s linear infinite;
  will-change: transform;
}
.welcome-track span { display: block; }
@keyframes welcome-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-pad { padding: clamp(70px, 8vw, 120px) clamp(28px, 8vw, 125px); }
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: clamp(60px, 10vw, 160px);
  max-width: 1450px;
  margin: 0 auto;
}
.about h2 { margin-bottom: 0; color: var(--brown); font-size: clamp(27px, 3vw, 42px); font-weight: 400; line-height: 1.2; }
.eyebrow { color: var(--brown); font-size: clamp(20px, 2.2vw, 28px); font-style: italic; }
.about-lead { margin-top: 46px; font-size: 20px; }
.about-copy > p:not(.eyebrow) { max-width: 660px; }
.text-links { display: flex; gap: 32px; margin-top: 40px; }
.text-links a { color: var(--brown); font-size: 14px; text-transform: uppercase; }
.skills h3 { margin-bottom: 38px; color: var(--brown); font-size: 20px; font-weight: 400; }
.skill { margin: 0 0 27px; }
.skill-label { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.skill-label img { width: 34px; height: 34px; object-fit: contain; }
.skill-track { height: 4px; margin-left: 46px; background: #c7c7c4; }
.skill-track span { position: relative; display: block; height: 100%; background: #7e7e7c; }
.skill-track b {
  position: absolute;
  top: 50%;
  right: -18px;
  min-width: 38px;
  padding: 2px 5px;
  border-radius: 20px;
  background: #898987;
  color: #fff;
  font-size: 9px;
  font-weight: 400;
  text-align: center;
  transform: translateY(-50%);
}

.graph-paper {
  background-color: #fff;
  background-image: linear-gradient(rgba(112,46,37,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(112,46,37,.075) 1px, transparent 1px);
  background-size: 27px 27px;
}
.projects-intro { display: grid; min-height: 330px; place-items: center; padding: 50px 20px; text-align: center; }
.projects-title-lockup { position: relative; display: inline-grid; place-items: center; }
.projects-intro p { margin: 0; color: var(--brown); font-size: clamp(27px, 3.2vw, 48px); line-height: 1.05; }
.projects-intro span { padding: 0 8px; background: rgba(255,215,222,.75); }
.projects-intro em { font-family: var(--serif); font-size: clamp(55px, 7vw, 100px); font-weight: 400; }
.projects-icon { position: absolute; z-index: 1; width: clamp(48px, 6vw, 85px); pointer-events: none; }
.projects-icon-folder { top: -10%; left: -7%; transform: rotate(-7deg); }
.projects-icon-computer { top: -8%; right: -9%; transform: rotate(8deg); }
.featured-carousel { overflow: hidden; background: #f7f5f0; }
.featured-track { display: flex; width: max-content; animation: projects-scroll 34s linear infinite; will-change: transform; }
.featured-set { display: flex; }
.featured-set a { display: block; width: 50vw; min-width: 50vw; overflow: hidden; }
.featured-set img { width: 100%; height: auto; object-fit: cover; }
@keyframes projects-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.project-index { color: var(--brown); }
.project-index > * { display: flex; min-height: 120px; align-items: center; justify-content: space-between; padding: 18px clamp(30px, 7vw, 110px); border-bottom: 1px solid var(--line); }
.project-index-title { min-height: 140px; font-family: var(--serif); font-size: clamp(32px, 4.5vw, 67px); }
.project-index a { font-size: clamp(30px, 4vw, 62px); text-decoration: none; text-transform: uppercase; transition: padding .25s ease, background .25s ease; }
.project-index a em { font-family: var(--serif); font-weight: 400; text-transform: none; }
.project-index a span:last-child, .project-index-title span { font-family: var(--serif); font-size: 1.2em; font-weight: 300; }
.project-index a:hover { padding-right: calc(clamp(30px, 7vw, 110px) - 10px); padding-left: calc(clamp(30px, 7vw, 110px) + 10px); background: rgba(189,215,236,.18); }
.behance-cta { display: grid; min-height: 330px; place-items: center; padding: 40px 20px; }
.behance-button-wrap { position: relative; }
.button-pink { display: inline-block; padding: 18px 30px; background: var(--pink); color: var(--brown); font-size: 16px; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease; }
.button-pink:hover { box-shadow: 0 8px 20px rgba(112,46,37,.14); transform: translateY(-2px); }
.behance-cursor { position: absolute; z-index: 2; right: -53px; bottom: -51px; width: 92px; pointer-events: none; transition: transform .2s ease; }
.behance-button-wrap:hover .behance-cursor { transform: translate(-4px, -4px); }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; }
.contact-details, .contact-form-wrap { padding: clamp(60px, 8vw, 110px) clamp(38px, 8vw, 120px); }
.contact-details { background: var(--blue); }
.contact-section h2 { color: var(--brown); font-family: var(--serif); font-size: clamp(27px, 3vw, 42px); font-style: italic; font-weight: 400; }
.contact-details p { line-height: 1.9; }
.contact-details a { text-decoration: none; }
.social-links { display: flex; gap: 13px; margin-top: 24px; }
.social-links a { border-radius: 50%; transition: transform .2s ease; }
.social-links a:hover { transform: translateY(-3px); }
.social-links img { width: 38px; height: 38px; }
.contact-form { display: grid; gap: 8px; }
.contact-form label { display: grid; color: #777; font-size: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #aaa19e; border-radius: 0; outline: 0; background: transparent; color: var(--text); resize: vertical; }
.contact-form input { min-height: 35px; }
.contact-form textarea { min-height: 90px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brown); box-shadow: 0 1px 0 var(--brown); }
.contact-form button { justify-self: center; margin-top: 18px; padding: 10px 30px; border: 0; background: var(--blue); color: var(--brown); font-size: 14px; text-transform: uppercase; cursor: pointer; }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-notice { padding: 10px 14px; font-size: 14px; }
.form-notice.success { background: #e5f4e7; color: #275e30; }
.form-notice.error { background: #fbe5e5; color: #7a2424; }

.site-footer { display: grid; min-height: clamp(340px, 46vw, 700px); place-items: end center; overflow: hidden; background: var(--brown); color: var(--blue); }
.footer-wordmark { padding: 0 20px 5%; font-family: var(--serif); font-size: clamp(77px, 15vw, 225px); font-weight: 700; letter-spacing: -.05em; line-height: .85; white-space: nowrap; }
.footer-wordmark span { font-style: italic; font-weight: 400; }

.project-page { padding-top: 1px; background: #fff; }
.project-heading { max-width: 1400px; margin: 0 auto; padding: clamp(50px, 7vw, 100px) clamp(28px, 7vw, 90px) 45px; }
.project-title-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.project-title-row h1 { margin-bottom: 11px; color: var(--brown); font-family: var(--serif); font-size: clamp(48px, 6vw, 90px); font-style: italic; font-weight: 400; line-height: 1; }
.project-title-row span { min-width: max-content; padding: 8px 25px; border: 1px solid var(--brown); border-radius: 999px; color: var(--brown); font-size: 15px; }
.project-heading > p { margin: 40px 0 0; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.75; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.project-gallery figure { margin: 0; overflow: hidden; background: #f4f3f1; }
.project-gallery figure.wide { grid-column: 1 / -1; }
.project-gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery-branding figure:not(.wide), .gallery-packaging figure:not(.wide), .gallery-editorial figure:not(.wide) { aspect-ratio: 1; }
.gallery-branding figure.wide { aspect-ratio: 16 / 8.7; }
.gallery-packaging figure.wide:first-child { aspect-ratio: 16 / 8.8; }
.gallery-packaging figure.wide:last-child { aspect-ratio: 4 / 3; }
.gallery-editorial figure.wide { aspect-ratio: 4 / 3; }
.project-pagination { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 20px; max-width: 1380px; margin: 90px auto 0; padding: 0 30px 80px; }
.project-pagination > a:not(.project-home) { display: grid; width: 50px; height: 50px; place-items: center; background: var(--blue); color: var(--brown); font-family: var(--serif); font-size: 48px; line-height: 1; text-decoration: none; }
.project-pagination .project-home { color: var(--brown); font-size: 16px; text-align: center; text-decoration: none; }
.project-pagination > a:last-child { justify-self: end; }
.generic-page, .not-found { min-height: 55vh; }

@media (max-width: 900px) {
  :root { --header-h: 58px; }
  body.admin-bar .site-header { top: 46px; }
  .site-header { padding: 0 24px; }
  .site-brand { font-size: 20px; }
  .menu-toggle { display: grid; width: 38px; height: 38px; place-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 24px; height: 1px; background: var(--cream); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: 12px 24px 24px; background: var(--brown); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.2); }

  .hero { min-height: min(90vw, 700px); }
  .hero-title { top: 8%; left: 9%; font-size: clamp(72px, 18vw, 145px); }
  .hero-photo { right: 0; width: 70vw; }
  .about { grid-template-columns: 1fr; gap: 70px; }
  .featured-set img { height: auto; }
  .contact-details, .contact-form-wrap { padding-right: 45px; padding-left: 45px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .hero { min-height: 76vh; max-height: 720px; }
  .hero-stripes { background: repeating-linear-gradient(90deg, var(--cream) 0 13%, var(--blue) 13% 25%); }
  .hero-title { top: 5%; left: 6%; font-size: clamp(68px, 24vw, 105px); line-height: .65; }
  .hero-photo { right: -20%; bottom: 5px; width: 111vw; max-width: none; }
  .welcome-strip { font-size: 10px; }
  .welcome-track { padding: 6px 0; animation-duration: 13s; }
  .section-pad { padding: 55px 28px; }
  .about { gap: 55px; text-align: center; }
  .about-lead { margin-top: 40px; }
  .about-copy > p { margin-right: auto; margin-left: auto; }
  .text-links { justify-content: center; }
  .skills { text-align: left; }
  .projects-intro { min-height: 260px; }
  .projects-intro p { font-size: 24px; }
  .projects-intro em { font-size: 52px; }
  .projects-icon { width: 51px; }
  .projects-icon-folder { left: -5%; }
  .projects-icon-computer { right: -7%; }
  .featured-set a { width: 82vw; min-width: 82vw; }
  .featured-set img { height: auto; }
  .featured-track { animation-duration: 30s; }
  .project-index > * { min-height: 78px; padding: 10px 23px; }
  .project-index-title { min-height: 82px; font-size: 27px; }
  .project-index a { font-size: 25px; }
  .behance-cta { min-height: 230px; }
  .button-pink { padding: 13px 20px; font-size: 13px; }
  .contact-section { display: flex; flex-direction: column-reverse; }
  .contact-details, .contact-form-wrap { padding: 55px 40px; }
  .contact-details { min-height: 340px; }
  .contact-form-wrap h2 { text-align: center; }
  .site-footer { min-height: 280px; }
  .footer-wordmark { font-size: clamp(58px, 20vw, 90px); transform: translateX(-2%); }

  .project-heading { padding: 42px 28px 25px; }
  .project-title-row { justify-content: center; }
  .project-title-row h1 { margin-bottom: 8px; font-size: 42px; text-align: center; }
  .project-title-row span { display: none; }
  .project-heading > p { margin-top: 27px; font-size: 14px; line-height: 1.6; text-align: center; }
  .project-gallery { grid-template-columns: 1fr; gap: 4px; padding: 0 28px; }
  .project-gallery figure.wide { grid-column: auto; }
  .project-gallery figure, .project-gallery figure.wide, .gallery-branding figure.wide, .gallery-packaging figure.wide:first-child, .gallery-packaging figure.wide:last-child, .gallery-editorial figure.wide { aspect-ratio: auto; }
  .project-gallery img { height: auto; }
  .project-pagination { grid-template-columns: 42px 1fr 42px; margin-top: 50px; padding: 0 28px 60px; }
  .project-pagination > a:not(.project-home) { width: 34px; height: 34px; font-size: 34px; }
  .project-pagination .project-home { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .welcome-track, .featured-track { animation: none !important; }
  .featured-carousel { overflow-x: auto; }
}
