/* =========================================================
   design218.com — Sung Hong
   Static build. Edit the tokens below to reskin everything.
   Corners are square everywhere, on purpose.
   ========================================================= */

:root{
  --ink:      #0D1B2A;
  --ink-soft: #1B2C3D;
  --steel:    #4A6379;
  --paper:    #EEF0F1;
  --white:    #FFFFFF;
  --ember:    #1B3A6B;
  --blue:     #1A1210;   /* Hong is set in ink, like the rest of the name */

  --display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --stack:  clamp(4rem, 10vw, 9rem);
  --max:    1500px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; border-radius:0; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }

:focus-visible{ outline:3px solid var(--ember); outline-offset:3px; }

.skip{ position:absolute; left:-9999px; top:0; background:var(--ink); color:var(--white); padding:.75rem 1rem; z-index:100; }
.skip:focus{ left:0; }

/* ---------------- scroll reveal ---------------- */

.reveal{
  clip-path:inset(0 0 100% 0);
  opacity:0;
  transition:clip-path 1s var(--ease), opacity .5s ease;
}
.reveal.in{ clip-path:inset(0 0 0 0); opacity:1; }

/* ---------------- top bar ---------------- */

.bar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:.85rem var(--gutter);
  background:rgba(238,240,241,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(74,99,121,.28);
}
.bar__name{
  font-family:var(--display); font-weight:800;
  font-size:1.05rem; text-decoration:none;
}
.bar__nav{
  display:flex; align-items:center; gap:clamp(.9rem,2.5vw,1.75rem);
  font-family:var(--display); font-size:.9rem; font-weight:500;
}
.bar__nav a{ position:relative; text-decoration:none; padding-block:.25rem; }
.bar__nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--ember); transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.bar__nav a:hover::after{ transform:scaleX(1); }
.bar__cta{
  background:var(--ink); color:var(--white);
  padding:.5rem 1rem;
  overflow:hidden;
  transition:background .3s var(--ease);
}
.bar__cta::after{ display:none; }
.bar__cta:hover{ background:var(--ember); }

/* ---------------- buttons ---------------- */

.btn{
  position:relative; overflow:hidden;
  display:inline-block;
  font-family:var(--display); font-weight:600; font-size:.95rem;
  text-decoration:none; padding:.85rem 1.6rem;
  background:var(--ink); color:var(--white); border:2px solid var(--ink);
  cursor:pointer; z-index:0;
}
.btn::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:var(--ember);
  transform:translateY(101%);
  transition:transform .4s var(--ease);
}
.btn:hover::before{ transform:translateY(0); }
.btn:hover{ border-color:var(--ember); }

.btn--big{ padding:1.05rem 2.1rem; font-size:1.02rem; }
.btn--quiet{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn--quiet:hover{ color:var(--white); }
.btn--light{ background:var(--white); color:var(--ink); border-color:var(--white); }
.btn--light:hover{ color:var(--white); }
.btn--ghost{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.55); }
.btn--ghost:hover{ border-color:var(--ember); }

/* ---------------- hero ---------------- */

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  align-items:end; gap:clamp(1.5rem,4vw,3.5rem);
  padding:clamp(2.5rem,7vw,6rem) var(--gutter) clamp(3rem,7vw,6rem);
  max-width:var(--max); margin-inline:auto;
}
.hero__name{
  font-family:var(--display); font-weight:900;
  font-size:clamp(3.4rem, 12vw, 9.5rem);
  line-height:.86; letter-spacing:-.02em; text-transform:uppercase;
  margin:0 0 clamp(1.25rem,3vw,2rem);
}
.hero__name span{ display:block; overflow:hidden; }
.hero__name span > i{ display:block; font-style:normal; }
.hero__name span:last-child{ color:var(--blue); }
.hero__line{
  font-family:var(--display); font-weight:500;
  font-size:clamp(1.05rem,1.9vw,1.4rem); line-height:1.35;
  max-width:26ch; margin:0 0 1rem;
}
.hero__body{ max-width:46ch; color:var(--ink-soft); margin:0 0 2rem; }
.hero__acts{ display:flex; gap:.8rem; flex-wrap:wrap; margin:0; }
.hero__shot{ margin:0; overflow:hidden; }
.hero__shot img{
  width:100%; aspect-ratio:4/5; object-fit:cover;
  filter:grayscale(1) contrast(1.06);
  transition:filter .6s var(--ease), transform 1.2s var(--ease);
}
.hero__shot:hover img{ filter:grayscale(0) contrast(1); transform:scale(1.04); }

/* ---------------- client ticker ---------------- */

.ticker{
  overflow:hidden;
  background:var(--ink); color:var(--paper);
  border-block:1px solid var(--ink);
  padding:.9rem 0;
}
.ticker__run{
  display:flex; width:max-content;
  animation:slide 55s linear infinite;
}
.ticker__run:hover{ animation-play-state:paused; }
.ticker span{
  font-family:var(--display); font-weight:600; font-size:.9rem;
  letter-spacing:.02em; white-space:nowrap;
  padding-inline:1.6rem;
  position:relative;
}
.ticker span::after{
  content:""; position:absolute; right:0; top:50%;
  width:5px; height:5px; background:var(--ember);
  transform:translateY(-50%);
}
@keyframes slide{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------------- about ---------------- */

.about{
  background:var(--ink); color:var(--paper);
  display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:clamp(2rem,5vw,5rem); align-items:center;
  padding:var(--stack) var(--gutter);
}
.about__shot{ margin:0; overflow:hidden; }
.about__shot img{
  width:100%; aspect-ratio:4/5; object-fit:cover;
  transition:transform 1.2s var(--ease);
}
.about__shot:hover img{ transform:scale(1.05); }
.about__text{ max-width:60ch; }
.about h2{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:clamp(1.8rem,4.5vw,3rem);
  line-height:1; margin:0 0 1.5rem;
}
.about p{ margin:0 0 1.15rem; }
.about strong{ color:var(--white); font-weight:600; }

.facts{
  list-style:none; margin:2rem 0 0; padding:1.5rem 0 0;
  border-top:1px solid rgba(238,240,241,.28);
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1.5rem;
}
.facts b{
  display:block; font-family:var(--display); font-weight:900;
  font-size:clamp(1.6rem,3vw,2.3rem); line-height:1;
  color:var(--ember); margin-bottom:.35rem;
}
.facts li{ font-size:.95rem; line-height:1.4; }

/* ---------------- projects ---------------- */

.project{
  display:grid; grid-template-columns:minmax(0,300px) minmax(0,1fr);
  gap:clamp(1.75rem,4vw,4rem);
  padding:var(--stack) var(--gutter);
  max-width:var(--max); margin-inline:auto;
  border-bottom:1px solid rgba(74,99,121,.3);
}
.project__rail{ align-self:start; position:sticky; top:5.5rem; }
.project__title{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:clamp(1.7rem,3.6vw,2.6rem);
  line-height:.98; letter-spacing:-.015em; margin:0 0 1rem;
}
.project__sub{ margin:0 0 1.5rem; color:var(--ink-soft); font-size:1rem; }

.meta{
  margin:0; border-top:2px solid var(--ink); padding-top:1rem;
  font-family:var(--display); font-size:.85rem;
}
.meta dt{ color:var(--steel); font-weight:600; }
.meta dd{ margin:0 0 .85rem; font-weight:500; }
.meta dd:last-child{ margin-bottom:0; }

.grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(.75rem,1.6vw,1.25rem);
  margin-bottom:clamp(1.75rem,3.5vw,2.75rem);
}

.shot{
  position:relative; padding:0; margin:0; border:0;
  background:var(--white); display:block; overflow:hidden;
  cursor:none;
}
.shot img{
  width:100%; aspect-ratio:4/3; object-fit:cover; object-position:top center;
  transition:transform .8s var(--ease), filter .5s ease;
}
.shot::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(13,27,42,.85), rgba(13,27,42,0) 55%);
  opacity:0; transition:opacity .45s var(--ease);
}
.shot__cap{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  font-family:var(--display); font-size:.85rem; font-weight:600;
  color:var(--white); text-align:left;
  padding:1rem 1.1rem;
  transform:translateY(100%);
  transition:transform .45s var(--ease);
}
.shot__cap::before{
  content:""; display:block; width:34px; height:2px;
  background:var(--ember); margin-bottom:.55rem;
}
.shot:hover img,
.shot:focus-visible img{ transform:scale(1.07); }
.shot:hover::after,
.shot:focus-visible::after{ opacity:1; }
.shot:hover .shot__cap,
.shot:focus-visible .shot__cap{ transform:translateY(0); }

.prose{ max-width:68ch; }
.prose p{ margin:0 0 1.15rem; }
.prose p:last-child{ margin-bottom:0; }
.prose strong{ font-weight:600; }

/* ---------------- follow cursor ---------------- */

.cursor{
  position:fixed; top:0; left:0; z-index:80;
  width:82px; height:82px;
  display:flex; align-items:center; justify-content:center;
  background:var(--ember); color:var(--white);
  font-family:var(--display); font-size:.72rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  pointer-events:none;
  transform:translate(-50%,-50%) scale(0);
  transition:transform .35s var(--ease);
  will-change:transform;
}
.cursor.on{ transform:translate(-50%,-50%) scale(1); }
@media (hover:none){ .cursor{ display:none; } .shot{ cursor:pointer; } }

/* ---------------- more ---------------- */

.more{
  background:var(--ink) url("../images/cta-background.jpg") center/cover no-repeat;
  background-blend-mode:multiply; background-attachment:fixed;
  color:var(--white);
  padding:calc(var(--stack) * 1.1) var(--gutter);
}
.more__inner{ max-width:56ch; margin-inline:auto; text-align:center; }
.more h2{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:clamp(2rem,6vw,4rem);
  line-height:.95; margin:0 0 1.25rem;
}
.more p{ margin:0 0 1.5rem; }
.more__links{ display:flex; gap:.85rem; justify-content:center; flex-wrap:wrap; }

/* ---------------- contact ---------------- */

.contact{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(2rem,5vw,4.5rem);
  padding:var(--stack) var(--gutter) clamp(2rem,5vw,4rem);
  max-width:var(--max); margin-inline:auto;
}
.contact h2{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:clamp(1.9rem,5vw,3.2rem);
  line-height:.98; margin:0 0 1.25rem;
}
.contact p{ max-width:42ch; margin:0 0 1.75rem; }
.contact__list{
  list-style:none; margin:0; padding:1.25rem 0 0;
  border-top:2px solid var(--ink);
  font-family:var(--display); font-size:.95rem;
}
.contact__list li{ margin-bottom:.6rem; }
.contact__list a{
  text-decoration:none;
  background-image:linear-gradient(var(--ember),var(--ember));
  background-size:0% 2px; background-repeat:no-repeat; background-position:0 100%;
  transition:background-size .4s var(--ease), color .3s ease;
  padding-bottom:2px;
}
.contact__list a:hover{ background-size:100% 2px; color:var(--ember); }

.form{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-content:start; }
.form__row{ display:flex; flex-direction:column; gap:.4rem; }
.form__row--wide{ grid-column:1 / -1; }
.form label{ font-family:var(--display); font-size:.8rem; font-weight:600; color:var(--steel); }
.form input, .form textarea{
  font-family:var(--body); font-size:1rem; padding:.75rem .85rem;
  border:1px solid rgba(74,99,121,.5); background:var(--white); color:var(--ink);
  transition:border-color .3s ease, box-shadow .3s ease;
}
.form input:focus, .form textarea:focus{
  border-color:var(--ink); box-shadow:inset 0 -2px 0 var(--ember); outline:none;
}
.form textarea{ resize:vertical; }

.signoff{
  font-family:var(--display); font-weight:700;
  font-size:clamp(1.1rem,2.5vw,1.6rem); text-align:center;
  margin:0; padding:0 var(--gutter) var(--stack);
}

/* ---------------- footer ---------------- */

.foot{
  background:var(--ink); color:rgba(238,240,241,.75);
  padding:clamp(2.5rem,6vw,4rem) var(--gutter);
  display:grid; grid-template-columns:minmax(0,240px) minmax(0,1fr);
  gap:2rem; align-items:start;
}
.foot__mark{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:1.4rem; color:var(--white); margin:0;
}
.foot__legal{ margin:0; font-size:.85rem; line-height:1.6; max-width:80ch; }

/* ---------------- lightbox ---------------- */

.lightbox{
  position:fixed; inset:0; z-index:200;
  background:rgba(13,27,42,.95);
  display:flex; align-items:center; justify-content:center;
  padding:clamp(1rem,4vw,3rem);
}
.lightbox[hidden]{ display:none; }
.lightbox img{ max-width:100%; max-height:100%; object-fit:contain; background:var(--white); }
.lightbox__close{
  position:absolute; top:1rem; right:1.25rem;
  font-size:2.5rem; line-height:1; background:none; border:0;
  color:var(--white); cursor:pointer; padding:.25rem .6rem;
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; }
  .hero__shot{ order:-1; }
  .hero__shot img{ aspect-ratio:3/2; }
  .about, .project, .contact, .foot{ grid-template-columns:1fr; }
  .project__rail{ position:static; }
  .about__shot img{ aspect-ratio:3/2; }
  .more{ background-attachment:scroll; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns:1fr; }
  .form{ grid-template-columns:1fr; }
  .bar__nav{ font-size:.82rem; }
  .hero__name{ }
}

/* ---------------- motion off ---------------- */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition-duration:.01ms !important; }
  .reveal{ clip-path:none; opacity:1; }
  .ticker__run{ animation:none; }
  .cursor{ display:none; }
  .shot{ cursor:pointer; }
}

/* anything marked hidden stays hidden */
[hidden]{ display:none !important; }

/* pictures on the simple page: no drag, no right-click save */
img{ -webkit-user-drag:none; user-select:none; }

/* ---------- v100: the rooms, built from works.js ---------- */
.shot--book img{ aspect-ratio:2/3; object-fit:cover; object-position:center; }
.notes{ display:grid; grid-template-columns:repeat(auto-fill,minmax(15rem,1fr)); gap:clamp(1rem,2.2vw,1.75rem); margin-bottom:clamp(1.75rem,3.5vw,2.75rem); }
.note{ border-top:2px solid var(--ink); padding-top:.9rem; }
.note__title{ font-family:var(--display); font-size:1.02rem; font-weight:700; margin:0 0 .4rem; line-height:1.3; }
.note__line{ margin:0 0 .45rem; font-style:italic; color:var(--ink-soft); }
.note__by{ margin:0 0 .45rem; font-weight:500; font-size:.95rem; }
.note__why{ margin:0 0 .6rem; color:var(--ink-soft); font-size:.95rem; }
.note__soon{ margin:0 0 .45rem; font-size:.75rem; font-weight:700; letter-spacing:.14em; color:var(--steel); }
.note__go{ font-weight:700; font-size:.92rem; }
/* line breaks typed in the editor show as line breaks */
.project__title, .project__sub, .note p, .note h3, .about p, .facts li, .more p{ white-space:pre-line; }
.form__trap{ position:absolute; left:-9999px; }
.form__status{ margin-left:.75rem; font-size:.92rem; color:var(--ink-soft); }

/* =========================================================
   v101: pastel blues, textures, piece-by-piece rooms, the garage
   ========================================================= */
:root{
  --sky-1: #EAF2FA;   /* lightest room */
  --sky-2: #DCE9F6;   /* middle room */
  --sky-3: #E3EDF8;
  --panel: #CFE2F4;   /* the pastel blue behind the words */
  --panel-edge: #7FA8D6;
  --garage: #4A0F1C;  /* same deep burgundy as the gallery garage */
  /* faint textures, drawn in code so there's nothing extra to download */
  --honey: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%235F8CC0' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E");
  --honey-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  --honey-rose: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23FF9A8A' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .2 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(79,124,176,.20) 1px, transparent 1.4px);
  --lines: repeating-linear-gradient(135deg, rgba(79,124,176,.07) 0 1px, transparent 1px 14px);
}

/* the page: pale blue paper, fine grain, faded honeycomb */
body{ background:var(--grain), var(--honey) 0 0/84px 150px, var(--sky-1); }

/* rooms alternate tints and patterns so each one reads as its own place */
.room{ position:relative; }
.room--0{ background:var(--honey) 0 0/84px 150px, var(--sky-1); }
.room--1{ background:var(--dots) 0 0/22px 22px, var(--sky-2); }
.room--2{ background:var(--lines), var(--sky-3); }
.room .project{ border-bottom:0; }
.room + .room{ border-top:1px solid rgba(79,124,176,.22); }

/* each piece: picture, then its words right under it */
.pieces{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1.25rem,2.6vw,2.25rem); align-items:start; }
.piece{ display:flex; flex-direction:column; background:var(--white); box-shadow:0 2px 14px rgba(27,58,107,.08); }
.piece .shot{ width:100%; }
.piece__text{
  background:var(--panel); border-left:4px solid var(--panel-edge);
  padding:1rem 1.15rem 1.1rem;
}
.piece__text .note__title{ margin-bottom:.35rem; }
.piece__text p:last-child{ margin-bottom:0; }
.piece__text .note__line, .piece__text .note__why{ color:var(--ink-soft); }
.piece--book{ align-self:start; }
.piece--book .shot img{ aspect-ratio:2/3; }

/* dark sections keep their contrast, with a whisper of honeycomb */
.about{ background:var(--honey-light) 0 0/84px 150px, var(--ink); }
.more{ background:var(--honey-light) 0 0/84px 150px, var(--ink); background-attachment:fixed; background-blend-mode:normal; }

/* ---------- the garage: burgundy, two neons ---------- */
.room--garage{
  background:var(--honey-rose) 0 0/84px 150px,
             radial-gradient(ellipse at 50% 20%, #6A1628 0%, var(--garage) 55%, #2A0710 100%);
  color:#F6E9EA;
}
.room--garage .project__title{ color:#FFFFFF; }
.room--garage .project__sub{ color:#EACFD3; }
.room--garage .piece{ background:transparent; box-shadow:none; }
.room--garage .piece__text{ background:rgba(255,244,245,.94); border-left-color:#FF8A5A; color:var(--ink); }
.neons{ display:flex; gap:clamp(1rem,4vw,3rem); justify-content:center; align-items:center; margin:0 0 clamp(2rem,4vw,3rem); }
.neon{ width:min(42%,300px); height:auto;
  filter:drop-shadow(0 0 10px rgba(255,120,60,.55)) drop-shadow(0 0 28px rgba(255,80,40,.35));
  animation:gas 5.5s infinite; }
.neon--b{ animation-delay:-2.3s; }
@keyframes gas{
  0%,100%{ opacity:1; }
  46%{ opacity:.97; } 47%{ opacity:.55; } 48%{ opacity:1; } 49%{ opacity:.7; } 50%{ opacity:1; }
  80%{ opacity:.94; }
}

/* ---------- the top bar on phones: one line, less screen ---------- */
.bar__cta .sm{ display:none; }
@media (max-width: 700px){
  .pieces{ grid-template-columns:1fr; }
}
@media (max-width: 560px){
  .bar{ padding:.55rem var(--gutter); gap:.6rem; }
  .bar__name{ white-space:nowrap; font-size:.98rem; }
  .bar__nav{ gap:.7rem; font-size:.8rem; }
  .bar__cta{ padding:.4rem .65rem; white-space:nowrap; }
  .bar__cta .lg{ display:none; } .bar__cta .sm{ display:inline; }
  .project__rail{ top:auto; }
}
@media (max-width: 380px){
  .bar__nav a[href="#work"]{ display:none; }
}
@media (prefers-reduced-motion: reduce){ .neon{ animation:none; } }
.about .facts b{ color:#8FB8EA; }
