@charset "UTF-8";

/* =============================================================
   MARI MATSUURA / PORTFOLIO
   COLORS: paper #f5f1e8 / ink #202020 / vermilion #e64726
   WORKS: max 9 items, automatically arranged in a responsive grid
   ============================================================= */
:root {
  --paper: #f5f1e8;
  --ink: #202020;
  --accent: #e64726;
  --muted: #60615f;
  --line: rgba(32,32,32,.24);
  --page-width: 1180px;
  --content-width: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: #ebe7df;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.site-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin-inline: auto;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 15px 85px rgba(28,25,22,.07);
}
/* One subtle texture across all sections for consistent paper colour */
.site-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url("assets/paper.webp") center top / 1100px auto repeat-y;
  opacity: .35;
  mix-blend-mode: multiply;
}
.site-header, .hero, .section, .site-footer { width: min(calc(100% - 80px), var(--content-width)); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 3;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(32,32,32,.09);
}
.wordmark, .site-nav, .section-heading, .hero-title, .nameplate, .about-story h3, .work-meta, .work-card h3,
.section-kicker, .contact-lead, .contact-label, .site-footer, .hero-caption {
  font-family: Arial, Helvetica, sans-serif;
}
.wordmark {
  text-decoration: none;
  letter-spacing: -.045em;
  font-size: 16px;
  font-weight: 900;
}
.wordmark-dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .075em;
  font-weight: 900;
  transition: color .2s;
}
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }

/* TOP */
.hero { padding: 29px 0 0; }
.hero-stage { position: relative; height: 540px; }
.hero-photo-wrap {
  position: absolute;
  top: 32px;
  left: 8%;
  width: 84%;
  height: 430px;
  overflow: hidden;
  background: #c8b3a5;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 48% 54%;
  filter: contrast(1.12) saturate(.8) sepia(.12);
}
.hero-photo-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: url("assets/paper.webp") center / 860px auto, rgba(238,223,203,.12);
  opacity: .19;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-red-patch {
  position: absolute;
  z-index: 1;
  left: .8%; top: 73px;
  width: 230px; height: 25px;
  transform: rotate(-3deg);
  background: var(--accent);
  clip-path: polygon(0 8%,94% 0,100% 12%,98% 90%,2% 99%);
}
.underground-cutout {
  position: absolute;
  z-index: 2;
  left: 2.9%; top: 107px;
  width: 28%; height: 335px;
  padding: 6px 6px 12px;
  margin: 0;
  background: var(--paper);
  transform: rotate(-3deg);
  box-shadow: 2px 4px 9px rgba(0,0,0,.18);
}
.underground-cutout img { height: 100%; width: 100%; object-fit: cover; object-position: center 54%; filter: contrast(1.24) grayscale(1); }
.metro-cutout {
  position: absolute;
  z-index: 3;
  left: .3%; bottom: 64px;
  width: 47%;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 5px 3px rgba(0,0,0,.17));
}
.hero-title {
  position: absolute;
  z-index: 3;
  right: 0; top: 89px;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 10px;
  font-size: clamp(43px, 5.4vw, 77px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 900;
  white-space: nowrap;
}
.hero-title span { position: relative; display: block; padding: .025em .075em .04em; background: #f7f4ed; }
.hero-title .hero-design { margin-top: 2px; }
.hero-design i {
  position: absolute;
  bottom: -.10em; left: 2%; width: 91%; height: .11em;
  transform: rotate(-2deg);
  background: var(--accent);
  clip-path: polygon(0 40%,100% 0,98% 100%,1% 85%);
}
.hero-caption {
  position: relative;
  margin: -15px 0 0 1%;
  padding-bottom: 30px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .035em;
}

/* SHARED SECTIONS */
.section { scroll-margin-top: 36px; }
.section-heading { margin: 0; font-size: clamp(32px,4vw,43px); font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.period { color: var(--ink); }

/* ABOUT */
.about { padding-top: 98px; }
.about-layout { display: grid; grid-template-columns: 49% 1fr; gap: 42px; align-items: start; margin-top: 38px; }
.about-portrait { min-width: 0; }
.cat-collage { position: relative; width: 100%; aspect-ratio: 490 / 334; }
.cat-outline { position: absolute; width: 92%; height: 88%; left: 4%; top: 1%; transform: rotate(1deg); }
.miimo {
  position: absolute;
  z-index: 2;
  width: 105%; max-width: none;
  height: auto;
  left: -6%; top: -6%;
  transform: rotate(15deg);
  filter: contrast(1.05) saturate(.83);
}
.hello {
  position: absolute;
  z-index: 3;
  left: 20%; top: 60%;
  transform: rotate(-10deg);
  font: 700 clamp(29px,3.6vw,48px)/1 Arial, Helvetica, sans-serif;
  letter-spacing: -.07em;
  -webkit-text-stroke: 1px var(--ink);
  color: var(--paper);
  text-shadow: 1px 2px 0 rgba(32,32,32,.18);
}
.tape { position: absolute; z-index: 4; display: block; width: 78px; height: 28px; background: var(--accent); opacity: .92; clip-path: polygon(1% 2%,100% 0,98% 100%,0 95%); box-shadow: 1px 2px 8px rgba(114,41,17,.16); }
.tape-top { right: 1%; top: 11%; transform: rotate(13deg); }
.tape-bottom { left: 2%; bottom: 13%; transform: rotate(-9deg); }
.nameplate { margin: -2px 0 0 3.5%; position: relative; z-index: 4; }
.person-name { margin: 0; font-size: clamp(20px,2.6vw,30px); font-weight: 900; letter-spacing: -.025em; }
.name-underline { display: block; width: min(275px, 80%); height: 8px; margin-top: 0; background: var(--accent); clip-path: polygon(1% 20%,100% 0,98% 50%,100% 98%,0 80%); transform: rotate(-1deg); }
.person-caption { margin: 9px 0 0; font-size: 10px; letter-spacing: .065em; color: var(--accent); font-weight: 900; }
.about-story { padding-top: 2px; }
.about-story h3 { margin: 0 0 25px; font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.about-story p { max-width: 48em; margin: 0 0 22px; font-size: 14px; line-height: 1.95; letter-spacing: .015em; font-weight: 500; }
.about-story p:last-child { margin-bottom: 0; }

/* WORKS */
.works { padding-top: 150px; }
.section-kicker { margin: 12px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.works-grid { margin-top: 43px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 60px 21px; align-items: start; }
.work-card { min-width: 0; }
.work-card summary { list-style: none; cursor: pointer; display: block; }
.work-card summary::-webkit-details-marker { display: none; }
.work-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #c5a27f; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.work-card summary:hover .work-thumb img { transform: scale(1.055); filter: saturate(1.12); }
.sample-flag { position: absolute; bottom: 8px; right: 8px; padding: 5px 7px; background: rgba(245,241,232,.88); color: #3b3b3b; font: 700 9px/1 Arial, sans-serif; letter-spacing: .03em; }
.work-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.work-meta span { color: var(--ink); font-size: 18px; line-height: .7; transition: transform .2s; }
.work-card[open] .work-meta span { transform: rotate(90deg); }
.work-card h3 { margin: 12px 0 3px; font-size: clamp(24px,3vw,37px); font-weight: 900; letter-spacing: -.055em; line-height: 1.1; }
.work-card h3 sup { position: relative; top: -.1em; font-size: .5em; }
.work-desc { border-top: 2px solid var(--accent); padding-top: 10px; margin: 9px 0 0; font-size: 13px; font-weight: 700; }
.work-details { margin: 18px 0 0; padding: 15px 14px 17px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.46); animation: expand .2s ease; }
.work-details p { margin: 0; font-size: 12px; line-height: 1.85; }
.work-details .work-tools { margin-top: 12px; color: var(--accent); font: 800 10px/1.5 Arial, sans-serif; letter-spacing: .04em; }
@keyframes expand { from {opacity:0; transform:translateY(-5px)} to {opacity:1; transform:translateY(0)} }

/* CONTACT */
.contact { padding-top: 180px; padding-bottom: 80px; }
.contact-layout { display: flex; justify-content: space-between; gap: 45px; align-items: flex-end; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 40px; }
.contact-lead { margin: 0; font-size: clamp(34px,5.7vw,67px); font-weight: 900; letter-spacing: -.06em; line-height: .99; }
.contact-lead em { font-style: normal; color: var(--accent); }
.contact-ja { margin: 24px 0 0; font-size: 13px; line-height: 1.9; }
.contact-right { text-align: right; padding-bottom: 3px; }
.contact-label { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 900; }
.contact-placeholder { margin: 0; font: 700 clamp(16px,2.3vw,24px)/1.2 Arial,sans-serif; border-bottom: 1px solid var(--ink); padding-bottom: 7px; }
.contact-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.site-footer { padding: 23px 0 28px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .075em; }
.site-footer a { text-decoration: none; }

/* Tablet */
@media (max-width: 960px) {
  .site-header, .hero, .section, .site-footer { width: min(calc(100% - 48px), var(--content-width)); }
  .hero-stage { height: 460px; }
  .hero-photo-wrap { height: 360px; }
  .hero-title { font-size: clamp(42px,6.4vw,62px); }
  .underground-cutout { height: 275px; }
  .metro-cutout { bottom: 60px; }
  .about-layout { grid-template-columns: 48% 1fr; gap: 22px; }
  .about-story p { font-size: 13px; line-height: 1.8; margin-bottom: 15px; }
  .works-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 45px 20px; }
}

/* Smartphone */
@media (max-width: 650px) {
  .site-header, .hero, .section, .site-footer { width: calc(100% - 32px); }
  .site-header { height: 66px; }
  .wordmark { font-size: 14px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 9px; }
  .hero { padding-top: 13px; }
  .hero-stage { height: 365px; }
  .hero-photo-wrap { top: 18px; left: 5%; width: 91%; height: 278px; }
  .hero-red-patch { top: 45px; width: 100px; height: 17px; }
  .underground-cutout { left: 1%; top: 82px; width: 34%; height: 192px; padding: 4px 4px 8px; }
  .hero-title { top: 56px; right: -1%; gap: 7px; font-size: clamp(29px,8.9vw,52px); }
  .metro-cutout { bottom: 51px; width: 55%; }
  .hero-caption { font-size: 9px; padding-bottom: 12px; margin-top: -17px; }
  .about { padding-top: 63px; }
  .section-heading { font-size: 34px; }
  .about-layout { grid-template-columns: minmax(0,1fr); gap: 36px; margin-top: 35px; }
  .about-portrait { max-width: 510px; width: 100%; margin-inline: auto; }
  .hello { font-size: clamp(31px,10vw,48px); }
  .person-name { font-size: clamp(22px,7.4vw,34px); }
  .about-story h3 { font-size: 23px; margin-bottom: 18px; }
  .about-story p { font-size: 14px; line-height: 1.95; margin-bottom: 17px; }
  .works { padding-top: 100px; }
  .section-kicker { font-size: 10px; line-height: 1.5; }
  .works-grid { grid-template-columns: minmax(0,1fr); gap: 48px; margin-top: 28px; }
  .work-card h3 { font-size: 32px; }
  .work-thumb { aspect-ratio: 1.2; }
  .contact { padding-top: 130px; padding-bottom: 75px; }
  .contact-layout { flex-direction: column; align-items: start; gap: 38px; }
  .contact-right { text-align: left; }
  .contact-lead { font-size: clamp(36px,10vw,59px); }
  .site-footer { font-size: 9px; }
}
@media (max-width: 380px) {
  .site-nav { gap: 9px; }
  .site-nav a { font-size: 8px; }
  .hero-stage { height: 313px; }
  .hero-photo-wrap { height: 235px; }
  .underground-cutout { top: 70px; height: 164px; }
  .hero-title { top: 45px; font-size: 29px; }
  .metro-cutout { bottom: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
