/* Lisa Jeong portfolio, rebuilt from the Figma file "Untitled" (frames: main, about, work, content x2).
   Measurements are taken from the 1440px Figma frames and scale down for smaller screens. */

:root {
  --bg: #fff;
  --ink: #000;
  --muted: #6b6b6b;
  --mono: "Intel One Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  /* 1440 frame: content runs from x=161 to x=1280 */
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.375;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.caps { text-transform: uppercase; }

/* "| " bar used before titles */
.bar::before {
  content: "|";
  font-weight: 700;
  letter-spacing: 0.42em;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: clamp(48px, 12vw, 174px);
  text-transform: uppercase;
}
.brand { display: block; padding-top: 22px; }
.brand:hover { text-decoration: none; }
.brand__role { display: block; font-size: 16px; }
.brand__name {
  display: block;
  margin-top: 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.375;
}
.brand__name::before { content: "|"; letter-spacing: 0.42em; }

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a[aria-current="page"] { font-weight: 700; }

/* ---------- home ---------- */
.home {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.home__hero {
  align-self: center;
  justify-self: center;
  width: min(350px, 70vw);
  aspect-ratio: 1;
  margin-block: 48px;
  overflow: hidden;
}
.home__hero img { width: 100%; height: 100%; object-fit: cover; }
.home__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: clamp(48px, 12vw, 168px);
  text-transform: uppercase;
}
.home__foot p { margin: 0; }
.home__contact { text-align: right; }

/* ---------- about ---------- */
.page-title {
  margin: clamp(56px, 8vw, 96px) 0 0;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}
.page-title::before { content: "|"; font-weight: 700; letter-spacing: 0.3em; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 461fr) minmax(0, 730fr);
  gap: clamp(24px, 3vw, 29px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 87px);
  padding-bottom: clamp(64px, 12vw, 228px);
}
.about__photo { aspect-ratio: 1; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about p { margin: 0; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.37; }

/* ---------- work list ---------- */
.work-list {
  list-style: none;
  margin: clamp(56px, 8vw, 120px) 0 0;
  padding: 0 0 clamp(80px, 12vw, 260px);
  display: grid;
  gap: clamp(72px, 12vw, 260px);
}
.work-item {
  display: grid;
  grid-template-columns: 350px 1fr auto;
  column-gap: 24px;
  text-transform: uppercase;
  color: inherit;
}
a.work-item:hover { text-decoration: none; }
a.work-item:hover .work-item__img img { transform: scale(1.03); }
a.work-item:hover .work-item__title { text-decoration: underline; text-underline-offset: 3px; }
.work-item__img { width: 350px; aspect-ratio: 1; overflow: hidden; }
.work-item__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
/* text column starts at x=860 in the 1440 frame, i.e. 695px after the image's left edge */
.work-item__text { align-self: center; padding-left: max(0px, calc(695px - 350px - 24px)); }
.work-item__title { margin: 0; font-weight: 400; font-size: 16px; }
.work-item__tag { margin: 32px 0 0; font-weight: 500; }
.work-item__tag::before { content: "|"; font-weight: 700; letter-spacing: 0.42em; }
.work-item__soon { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.work-item__year { margin: 0; text-align: right; }

/* ---------- case studies ---------- */
.case-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(56px, 8vw, 96px);
  text-transform: uppercase;
}
.case-head p { margin: 0; }
.case-head .work-item__tag { margin-top: 12px; }

.case { padding-bottom: clamp(80px, 10vw, 200px); }
/* inner case canvas is 1440 wide in Figma; we use 1200 max and keep proportions */
.canvas { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.fig { margin: 0; overflow: hidden; }
.fig img { width: 100%; height: 100%; object-fit: cover; }

.tagline {
  margin: clamp(64px, 9vw, 120px) auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.statement {
  margin: clamp(64px, 10vw, 180px) auto 0;
  max-width: 1190px;
  text-align: center;
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.38;
}
.section-label {
  margin: clamp(80px, 9vw, 140px) 0 0;
  text-align: center;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.37;
}
.section-label strong { display: block; font-weight: 600; }
.section-label span { display: block; margin-top: 30px; }

.row { display: flex; justify-content: center; gap: clamp(8px, 1.2vw, 16px); }
.grid { display: grid; gap: clamp(6px, 0.8vw, 10px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid > .fig { aspect-ratio: 1; }

.mt-s { margin-top: clamp(8px, 1vw, 12px); }
.mt-m { margin-top: clamp(40px, 6vw, 100px); }
.mt-l { margin-top: clamp(64px, 9vw, 160px); }

/* Our Hours */
.oh-watches { margin-top: clamp(64px, 11vw, 160px); gap: clamp(24px, 4.6vw, 67px); }
.oh-watches .fig { width: clamp(120px, 21vw, 297px); aspect-ratio: 1254 / 1600; }
.oh-watches .fig img { object-fit: contain; }
.oh-graphics { width: min(980px, 100%); margin: clamp(40px, 6vw, 95px) auto 0; }
.oh-big { width: 62.4%; aspect-ratio: 1; }
.oh-big--l { margin-right: auto; margin-left: 3.3%; }
.oh-big--r { margin-left: auto; margin-right: 6%; }
.oh-tall { width: 62.4%; aspect-ratio: 899 / 1348; margin-left: 3.3%; }
.oh-pair .fig { width: 36.5%; aspect-ratio: 1; }
.oh-wide { width: min(1296px, 100%); margin-inline: auto; }
.oh-grid { width: min(1186px, 100%); margin-inline: auto; }
.oh-key { width: min(859px, 100%); aspect-ratio: 1; margin-inline: auto; }
.oh-cards { gap: clamp(8px, 2vw, 28px); }
.oh-cards .fig { width: clamp(70px, 14vw, 200px); aspect-ratio: 200 / 413; }

/* Wedding */
.wt-invite { width: min(778px, 100%); aspect-ratio: 778 / 1007; margin-inline: auto; }
.wt-names { gap: 1px; align-items: flex-start; }
.wt-names .fig:first-child { width: 33%; aspect-ratio: 390 / 519; }
.wt-names .fig:last-child { width: 40.7%; aspect-ratio: 481 / 553; }
.wt-photo { width: min(1017px, 100%); margin-inline: auto; }
.wt-photo--land { aspect-ratio: 1017 / 759; }
.wt-photo--port { aspect-ratio: 1013 / 1257; }
.wt-web { gap: clamp(10px, 1.9vw, 27px); align-items: flex-start; }
.wt-web .fig:first-child { width: 17.6%; }
.wt-web .fig:last-child { width: 77%; }
.wt-web .fig img { height: auto; }

.next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(80px, 10vw, 160px);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  text-transform: uppercase;
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .work-item { grid-template-columns: 1fr auto; row-gap: 20px; }
  .work-item__img { width: 100%; grid-column: 1 / -1; }
  .work-item__text { padding-left: 0; }
  .work-item__year { grid-row: 2; grid-column: 2; align-self: start; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 461px; }
}
@media (max-width: 600px) {
  .site-header { padding-top: 32px; }
  .brand { padding-top: 0; }
  .brand__role { font-size: 13px; }
  .brand__name { font-size: 20px; margin-top: 8px; }
  .nav { font-size: 14px; }
  .home__foot { font-size: 13px; flex-direction: column-reverse; align-items: flex-start; }
  .home__contact { text-align: left; }
  .case-head { flex-direction: column-reverse; }
  .oh-big, .oh-tall { width: 100%; margin-inline: 0; }
  .oh-pair .fig { width: 50%; }
  .wt-names .fig:first-child { width: 45%; }
  .wt-names .fig:last-child { width: 55%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- photo viewer (lightbox.js) ---------- */
.lb-thumb { cursor: zoom-in; transition: opacity .2s; }
.lb-thumb:hover { opacity: .85; }
.lb-open { overflow: hidden; }
.lb {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  font-family: var(--mono);
  text-transform: uppercase;
}
.lb::backdrop { background: rgba(255, 255, 255, .97); }
.lb__stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 72px;
  overflow: auto;
}
.lb__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  cursor: zoom-in;
}
/* original size: no scaling, scroll to see the rest */
.lb.is-actual .lb__stage { align-items: flex-start; justify-content: flex-start; }
.lb.is-actual .lb__img { max-width: none; max-height: none; margin: auto; cursor: zoom-out; }
.lb__btn {
  position: absolute;
  background: none; border: 0; padding: 12px;
  font: inherit; font-size: 16px; color: inherit;
  cursor: pointer;
}
.lb__btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb__close { top: 16px; right: 20px; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); font-size: 24px; }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
.lb__count { position: absolute; top: 28px; left: 32px; margin: 0; font-size: 14px; }
@media (max-width: 600px) {
  .lb__stage { padding: 56px 8px; }
  .lb__prev, .lb__next { top: auto; bottom: 8px; transform: none; }
}

/* ---------- added for the newer case pages ---------- */
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid > .fig--natural, .fig--natural { aspect-ratio: auto; }
.fig--natural img { height: auto; }
.ls-pair { width: min(1070px, 100%); margin-inline: auto; gap: 18px; }
.ls-web { width: min(1070px, 100%); margin-inline: auto; gap: 4.4%; }
.ls-web .fig:first-child { width: 25.5%; }
.ls-web .fig:last-child { width: 70.1%; }
.mag-grid { width: min(955px, 100%); margin-inline: auto; gap: clamp(8px, 1.4vw, 20px); align-items: start; }
.prose {
  max-width: 1203px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.38;
}
.prose p { margin: 0 0 1.38em; }
.videos { display: grid; gap: clamp(24px, 3vw, 40px); width: min(892px, 100%); margin-inline: auto; }
.video { aspect-ratio: 16 / 9; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) {
  .grid--4.mag-grid, .grid--5.mag-grid { grid-template-columns: repeat(3, 1fr); }
}
.video__link { margin: 8px 0 0; font-size: 13px; text-transform: uppercase; text-align: right; }
.prose--case h2 { margin: 2em 0 .6em; font-size: 16px; text-transform: uppercase; }
.prose--case h2:first-child { margin-top: 0; }
.prose__lead { font-weight: 500; }
.prose--case ul { margin: 0 0 1.38em; padding-left: 1.2em; }
.prose--case li { margin: 0 0 .3em; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.tarot-grid { width: min(1104px, 100%); margin-inline: auto; gap: clamp(6px, 1vw, 14px); align-items: start; }
.luna-illus { width: min(1211px, 100%); margin-inline: auto; align-items: flex-end; gap: 30px; }
.luna-illus .fig { flex: 0 1 auto; }
.video__caption { margin: 10px 0 0; font-size: 13px; text-transform: uppercase; }
@media (max-width: 600px) {
  .grid--5.tarot-grid { grid-template-columns: repeat(3, 1fr); }
  .luna-illus { gap: 8px; }
}

/* ---------- password page (unlock.js) ---------- */
.lock { max-width: 420px; margin: clamp(64px, 10vw, 140px) auto; text-transform: uppercase; }
.lock__title { margin: 0 0 24px; }
.lock__form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lock__form label { width: 100%; font-size: 13px; }
.lock__form input {
  flex: 1; min-width: 0; padding: 10px 12px;
  font: inherit; font-size: 16px; text-transform: none;
  border: 1px solid var(--ink); border-radius: 0; background: var(--bg); color: var(--ink);
}
.lock__form button {
  padding: 10px 18px; font: inherit; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer;
}
.lock__form button:disabled { opacity: .5; cursor: progress; }
.lock__msg { min-height: 1.4em; margin: 12px 0 0; font-size: 13px; }
.is-loading { background: #f2f2f2; position: relative; }
.is-loading::after { content: "loading…"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.fig.is-loading { aspect-ratio: 1; }
.is-loading[data-error]::after { content: "couldn’t load this file"; }

/* ---------- contact page (contact.js) ---------- */
.contact { max-width: 640px; margin-top: clamp(40px, 6vw, 87px); padding-bottom: clamp(64px, 12vw, 200px); }
.contact__intro { margin: 0 0 40px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; }
.contact-form { display: grid; gap: 8px; }
.contact-form label { margin-top: 16px; font-size: 13px; text-transform: uppercase; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--ink); border-radius: 0;
}
.contact-form textarea { resize: vertical; min-height: 180px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-form button {
  justify-self: start; margin-top: 24px; padding: 12px 28px;
  font: inherit; text-transform: uppercase; color: var(--bg); background: var(--ink);
  border: 1px solid var(--ink); cursor: pointer;
}
.contact-form button:hover { background: var(--bg); color: var(--ink); }
.contact-form button:disabled { opacity: .5; cursor: progress; }
.contact-form__status { min-height: 1.4em; margin: 8px 0 0; font-size: 13px; text-transform: uppercase; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__alt { margin: 40px 0 0; font-size: 13px; text-transform: uppercase; }

/* ---------- home: name beside the photo (Figma "main") ---------- */
.site-header > nav { margin-left: auto; }
.home__middle {
  display: grid;
  /* Figma: text column 161–660, photo 660–1010, then 270px to the right edge (1280) */
  grid-template-columns: minmax(0, 499fr) min(350px, 70vw) minmax(0, 270fr);
  align-items: center;
  margin: 24px auto 72px; /* sits the photo where Figma has it (top at 353px in the 1440×1054 frame) */
}
.home__middle .home__hero { grid-column: 2; margin: 0; width: 100%; }
.brand--home { grid-column: 1; grid-row: 1; margin: 0; padding: 0; font-weight: 400; font-size: inherit; text-transform: uppercase; }
@media (max-width: 900px) {
  .home__middle { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .home__middle .home__hero { grid-column: 1; width: min(350px, 80vw); }
  .brand--home { justify-self: start; }
}
