@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  color-scheme: dark;
  --paper: #09090a;
  --paper-deep: #141415;
  --ink: #f3f3f1;
  --ink-soft: #b2b2b0;
  --line: #323234;
  --orange: #dededb;
  --gold: #a7a7a4;
  --mono: 'DM Mono', 'Courier New', monospace;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }

.site-header {
  width: min(1180px, calc(100% - 80px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}
.brand-name { font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.brand-name small { display: block; margin-top: 4px; color: var(--ink-soft); font: 9px var(--mono); letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 12px; }
.main-nav a { text-decoration: none; transition: color .2s ease; }
.main-nav a:hover, .text-cta:hover, .project-link:hover { color: var(--orange); }
.main-nav .nav-link { padding: 12px 16px; border: 1px solid var(--line); }
.nav-link span { padding-left: 11px; color: var(--orange); }

.hero {
  width: min(1180px, calc(100% - 80px));
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 40px;
  padding: 54px 0 74px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; padding: 20px 0 0 18px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0; color: var(--ink-soft); font: 10px var(--mono); letter-spacing: .13em; }
.eyebrow-dot, .status-dot, .drag-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); }
.eyebrow-slash { color: #b1ac9f; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 28px 0 22px; font-size: clamp(58px, 7vw, 96px); font-weight: 500; line-height: .99; letter-spacing: -.075em; }
.hero h1 span { color: var(--orange); font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: -.065em; }
.hero-intro { max-width: 400px; margin-bottom: 27px; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.text-cta { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 13px; text-decoration: none; transition: color .2s ease; }
.text-cta span { color: var(--orange); font-size: 17px; }
.hero-index { display: flex; align-items: center; gap: 12px; margin-top: 73px; color: var(--ink-soft); font: 9px var(--mono); letter-spacing: .1em; }
.hero-index > span:first-child { color: var(--orange); }
.index-rule { display: inline-block; width: 36px; height: 1px; background: #bdb8ad; }

.portrait-area { position: relative; min-height: 570px; display: grid; place-items: center; isolation: isolate; }
.portrait-orbit { position: absolute; z-index: -1; width: min(410px, 80%); aspect-ratio: 1; border: 1px solid #dcd8cc; border-radius: 50%; }
.portrait-orbit::before, .portrait-orbit::after { position: absolute; content: ''; border: 1px solid #e5e1d7; border-radius: 50%; inset: 22px; }
.portrait-orbit::after { inset: 45px; }
.portrait-frame {
  --drag-x: 0px;
  width: clamp(255px, 27vw, 330px);
  padding: 11px 11px 15px;
  background: #fffefa;
  border: 1px solid #ded9ce;
  box-shadow: 0 24px 60px #283c3420, 0 3px 10px #283c3412;
  transform: translate3d(var(--drag-x), 0, 0) rotate(2.6deg);
  transition: box-shadow .25s ease, rotate .25s ease;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}
.portrait-frame.is-dragging { cursor: grabbing; transition: none; rotate: 0deg; box-shadow: 0 34px 70px #283c342b, 0 5px 14px #283c3419; }
.portrait-frame:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.frame-edge { position: relative; height: clamp(350px, 42vw, 445px); overflow: hidden; background: #ddd7cc; }
.frame-edge img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; pointer-events: none; }
.photo-label { position: absolute; right: 10px; bottom: 9px; color: #faf7ef; font: italic 15px var(--serif); text-shadow: 0 1px 5px #0009; }
.photo-label span { margin-left: 5px; font: 8px var(--mono); }
.portrait-caption { position: absolute; color: #9b9487; font: 9px var(--mono); letter-spacing: .15em; }
.caption-top { top: 7%; right: 4%; writing-mode: vertical-rl; }
.caption-bottom { bottom: 7%; left: 3%; }
.portrait-controls { position: absolute; z-index: 3; bottom: 15px; display: flex; align-items: center; gap: 13px; color: var(--ink-soft); font: 9px var(--mono); letter-spacing: .12em; }
.portrait-controls > span { display: flex; align-items: center; gap: 8px; }
.drag-dot { width: 5px; height: 5px; }
.nudge-button { display: grid; width: 31px; height: 31px; padding: 0; place-items: center; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: background .2s ease, color .2s ease; }
.nudge-button:hover { color: white; background: var(--ink); }

.work-section { padding: 112px max(40px, calc((100% - 1180px) / 2)) 124px; background: #eae8df; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 0 auto 45px; max-width: 1180px; }
.section-heading h2, .about-content h2 { margin: 19px 0 0; font-size: clamp(42px, 5vw, 63px); font-weight: 500; letter-spacing: -.07em; line-height: 1.02; }
.section-heading h2 em, .about-content h2 em { color: var(--orange); font-family: var(--serif); font-weight: 500; }
.section-note { width: 275px; margin: 0 0 5px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.project-card { display: grid; grid-template-columns: 1.12fr .88fr; max-width: 1180px; margin: 0 auto; background: var(--paper); border: 1px solid #dedbd2; }
.project-visual { position: relative; min-height: 450px; padding: 22px; overflow: hidden; background: #20362f; color: #f8f4e9; }
.preview-browser-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; height: 31px; border-bottom: 1px solid #ffffff30; padding-bottom: 10px; color: #c5c2b8; font: 9px var(--mono); }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 5px; height: 5px; border-radius: 50%; background: #c5aa7e; opacity: .8; }
.browser-dots i:nth-child(2) { opacity: .55; }
.browser-dots i:nth-child(3) { opacity: .35; }
.browser-address { flex: 1; text-align: center; }
.browser-lock { font-size: 13px; }
.preview-body { position: relative; display: flex; align-items: center; min-height: 365px; padding: 28px 25px; }
.preview-copy { position: relative; z-index: 2; width: 58%; }
.preview-kicker { display: block; max-width: 205px; color: #d5c9b2; font: 8px/1.6 var(--mono); letter-spacing: .12em; }
.preview-copy h3 { margin: 22px 0 15px; font: 500 clamp(31px, 4.2vw, 54px)/.98 var(--serif); letter-spacing: -.05em; }
.preview-copy h3 em { color: #d7b883; font-weight: 500; }
.preview-caption { color: #d1d0c9; font-size: 10px; }
.preview-photos { position: absolute; top: 50%; right: 3%; width: 48%; height: 82%; transform: translateY(-50%); }
.preview-house, .preview-building { position: absolute; overflow: hidden; background-size: cover; background-position: center; border: 3px solid #20362f; box-shadow: 0 14px 30px #0004; }
.preview-house { top: 0; right: 0; width: 75%; height: 79%; background-image: linear-gradient(0deg, #14221dcc 0%, transparent 65%), url('Asset/Real%20Estate.jpg'); }
.preview-building { right: 49%; bottom: 0; width: 48%; height: 56%; background-image: linear-gradient(0deg, #14221dcc 0%, transparent 70%), url('Asset/building.jpg'); }
.preview-house span, .preview-building span { position: absolute; bottom: 9px; left: 9px; font: 7px var(--mono); letter-spacing: .12em; }
.preview-number { position: absolute; right: 7px; bottom: 10px; color: #c7ae83; font: italic 26px var(--serif); }
.visual-stamp { position: absolute; right: 19px; bottom: 18px; z-index: 3; width: 72px; height: 72px; display: grid; place-content: center; border: 1px solid #dcc99f; border-radius: 50%; color: #d6c49f; text-align: center; font: 8px/1.55 var(--mono); letter-spacing: .1em; transform: rotate(11deg); }
.project-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 64px); }
.project-topline { display: flex; justify-content: space-between; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: #8e9388; font: 9px var(--mono); letter-spacing: .12em; }
.project-info h3 { margin-bottom: 13px; font: 500 clamp(27px, 3vw, 38px)/1.15 var(--serif); letter-spacing: -.04em; }
.project-info > p { max-width: 370px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.project-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 23px 0 14px; }
.project-type { display: inline-flex; align-items: center; gap: 8px; color: #7b847d; font: 8px var(--mono); letter-spacing: .1em; }
.status-dot { width: 6px; height: 6px; background: #7c9c70; }
.project-link { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); font-size: 12px; text-decoration: none; transition: color .2s ease; }
.project-link span, .project-url span { color: var(--orange); }
.project-url { width: fit-content; max-width: 100%; overflow-wrap: anywhere; padding-bottom: 5px; border-bottom: 1px solid #c9c4b7; color: #7a837c; font: 9px var(--mono); text-decoration: none; transition: color .2s ease; }
.project-url:hover { color: var(--orange); }

.about-section { position: relative; width: min(1180px, calc(100% - 80px)); min-height: 390px; margin: 0 auto; padding: 84px 18px; overflow: hidden; }
.about-content { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: 21px; }
.about-content h2 { margin: 0; }
.about-content p { position: relative; z-index: 1; max-width: 315px; margin: 0 0 6px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.about-mark { position: absolute; right: 24px; bottom: -109px; color: #ece9df; font: italic 340px/.8 var(--serif); pointer-events: none; }
.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 81px; padding: 0 max(40px, calc((100% - 1180px) / 2)); color: #bbc1b9; background: var(--ink); font: 9px var(--mono); letter-spacing: .1em; }
.footer-brand { color: #f5f3ed; font: 15px var(--sans); font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.footer-brand span { margin-left: 4px; color: #d5b984; font-size: 9px; vertical-align: top; }
.site-footer > span span { color: #d5b984; }
.back-top { color: #d3d4cc; text-decoration: none; }

@media (max-width: 760px) {
  .site-header, .hero, .about-section { width: calc(100% - 40px); }
  .site-header { height: 72px; }
  .brand-mark { width: 34px; height: 34px; }
  .main-nav { gap: 18px; font-size: 11px; }
  .main-nav .nav-link { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 12px; padding: 62px 0 80px; }
  .hero-copy { padding: 0 4px; }
  .hero h1 { margin-top: 24px; font-size: clamp(62px, 13vw, 88px); }
  .hero-intro { max-width: 390px; font-size: 14px; }
  .hero-index { margin-top: 38px; }
  .portrait-area { min-height: 565px; margin-top: 25px; }
  .portrait-frame { width: min(67vw, 310px); }
  .frame-edge { height: min(111vw, 405px); }
  .caption-top { right: 8%; }
  .caption-bottom { left: 7%; bottom: 5%; }
  .portrait-controls { bottom: 0; }
  .work-section { padding: 82px 20px 88px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 32px; }
  .section-heading h2 { font-size: 52px; }
  .section-note { width: auto; max-width: 350px; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 355px; padding: 17px; }
  .preview-body { min-height: 283px; padding: 20px 14px; }
  .preview-copy { width: 63%; }
  .preview-copy h3 { font-size: clamp(34px, 10vw, 49px); }
  .preview-photos { right: 0; width: 51%; height: 74%; }
  .visual-stamp { right: 12px; bottom: 12px; width: 61px; height: 61px; font-size: 7px; }
  .project-info { padding: 31px 25px 34px; }
  .project-info h3 { font-size: 31px; }
  .project-bottom { align-items: flex-start; flex-direction: column; }
  .project-url { font-size: 8px; }
  .about-section { min-height: 380px; padding: 72px 4px; }
  .about-content { align-items: flex-start; flex-direction: column; gap: 22px; }
  .about-content h2 { font-size: 46px; }
  .about-content p { max-width: 350px; }
  .about-mark { right: -4px; bottom: -72px; font-size: 250px; }
  .site-footer { min-height: 93px; padding: 19px 20px; flex-wrap: wrap; gap: 13px; }
  .site-footer > span { order: 3; width: 100%; font-size: 8px; }
  .back-top { font-size: 8px; }
}

@media (max-width: 390px) {
  .site-header, .hero, .about-section { width: calc(100% - 32px); }
  .brand-name { font-size: 10px; }
  .main-nav { gap: 13px; font-size: 10px; }
  .portrait-area { min-height: 515px; }
  .portrait-frame { width: min(69vw, 270px); }
  .frame-edge { height: 350px; }
  .portrait-controls { gap: 9px; font-size: 8px; }
  .nudge-button { width: 28px; height: 28px; }
  .preview-copy h3 { font-size: 33px; }
  .preview-copy { width: 66%; }
  .preview-photos { width: 49%; }
  .project-visual { min-height: 330px; }
  .preview-body { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Black-and-white portfolio palette */
body { overflow-x: clip; background: linear-gradient(158deg, #070708 0%, #111112 48%, #080809 100%); color: #f3f3f1; }
.hero { overflow: visible; }
.site-header { border-color: #303032; }
.brand-mark { border-color: #a4a4a2; }
.brand-name small, .eyebrow, .hero-intro, .section-note, .project-info > p, .about-content p { color: #b0b0ae; }
.main-nav a:hover, .text-cta:hover, .project-link:hover, .project-url:hover { color: #fff; }
.main-nav .nav-link { border-color: #434345; }
.nav-link span, .text-cta span, .project-link span, .project-url span { color: #ededeb; }
.eyebrow-dot, .drag-dot { background: #ececea; }
.hero h1 span, .section-heading h2 em, .about-content h2 em { color: #c9c9c6; }
.index-rule { background: #5d5d5e; }
.portrait-orbit { border-color: #2c2c2e; }
.portrait-orbit::before, .portrait-orbit::after { border-color: #222224; }
.portrait-frame { background: #f2f2ef; border-color: #777779; box-shadow: 0 25px 65px #000b, 0 3px 12px #0008; }
.frame-edge { background: #242426; }
.frame-edge img { filter: none; }
.photo-label { color: #fff; }
.portrait-caption { color: #818183; }
.nudge-button { color: #ededeb; background: #18181a; border-color: #4a4a4c; }
.nudge-button:hover { color: #09090a; background: #f2f2ef; }
.work-section { background: linear-gradient(180deg, #101011 0%, #171718 100%); }
.project-card { background: #121213; border-color: #373739; }
.project-visual { color: #f3f3f1; background: #171718; }
.preview-browser-bar { border-color: #ffffff26; }
.preview-house, .preview-building { border-color: #171718; filter: grayscale(1); }
.preview-house { background-image: linear-gradient(0deg, #050505df 0%, transparent 65%), url('Asset/Real%20Estate.jpg'); }
.preview-building { background-image: linear-gradient(0deg, #050505df 0%, transparent 70%), url('Asset/building.jpg'); }
.preview-copy h3 em { color: #c8c8c5; }
.preview-number, .visual-stamp, .site-footer > span span { color: #ededeb; }
.visual-stamp { border-color: #a3a3a1; }
.project-topline { border-color: #363638; color: #99999a; }
.project-type { color: #aaaaa8; }
.status-dot { background: #dededb; }
.project-url { border-color: #4a4a4b; color: #b6b6b4; }
.about-mark { color: #111112; }
.site-footer { color: #bababa; background: #050506; }
.footer-brand { color: #f3f3f1; }
.footer-brand span { color: #a7a7a4; }
.back-top { color: #d6d6d3; }

.portrait-area { min-height: 620px; isolation: isolate; }
.photo-tether { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tether-shadow { fill: none; stroke: #000; stroke-width: 4; stroke-linecap: round; opacity: .7; }
.tether-cord { fill: none; stroke: #bdbdb9; stroke-width: 1.6; stroke-linecap: round; }
.tether-glint { fill: none; stroke: #fff; stroke-width: .55; stroke-linecap: round; opacity: .68; }
.nail-shadow { fill: #000; opacity: .8; }
.nail-head { fill: #bdbdbb; stroke: #f0f0ed; stroke-width: .7; }
.nail-slit { fill: none; stroke: #58585a; stroke-width: 1; stroke-linecap: round; }
.portrait-frame { --drag-x: 0px; --drag-y: 0px; z-index: 2; transform: translate3d(var(--drag-x), var(--drag-y), 0) rotate(var(--frame-tilt, 2.6deg)); transition: box-shadow .25s ease; will-change: transform; }
.portrait-frame.is-dragging { cursor: grabbing; transition: none; }
.portrait-frame.is-returning { transition: none; }
.portrait-frame { cursor: grab; touch-action: none; }
.frame-eye { position: absolute; top: -9px; left: 50%; width: 16px; height: 12px; border: 1px solid #bdbdb9; border-bottom: 0; border-radius: 10px 10px 0 0; transform: translateX(-50%); }
.portrait-caption.caption-bottom { bottom: 18%; left: 5%; }
.portrait-controls { display: flex; align-items: center; justify-content: center; max-width: min(100%, 375px); gap: 10px; }
.direction-pad { display: grid; grid-template-columns: repeat(3, 28px); grid-template-rows: repeat(2, 28px); gap: 4px; }
.direction-pad .nudge-button:nth-child(1) { grid-column: 1; grid-row: 2; }
.direction-pad .nudge-button:nth-child(2) { grid-column: 2; grid-row: 1; }
.direction-pad .nudge-button:nth-child(3) { grid-column: 2; grid-row: 2; }
.direction-pad .nudge-button:nth-child(4) { grid-column: 3; grid-row: 2; }
.portrait-controls > span { white-space: nowrap; font-size: 8px; }
.nudge-button { width: 28px; height: 28px; color: #ededeb; background: #141415; }

.portrait-frame.custom-cursor-active { cursor: none; }
.drag-cursor { position: fixed; top: 0; left: 0; z-index: 100; display: flex; width: 52px; height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #171719; border-radius: 50%; color: #09090a; background: #f1f1ee; box-shadow: 0 5px 18px #0007; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.68); transition: opacity .15s ease, transform .15s ease, color .15s ease, background .15s ease; }
.drag-cursor svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drag-cursor span { font: 6px var(--mono); letter-spacing: .13em; }
.drag-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.drag-cursor.is-grabbing { color: #f1f1ee; background: #111113; border-color: #f1f1ee; transform: translate(-50%, -50%) scale(1.1); }

@media (hover: none), (pointer: coarse) {
  .drag-cursor { display: none; }
}

@media (max-width: 760px) {
  .portrait-area { min-height: 565px; }
  .portrait-controls { gap: 8px; }
  .portrait-controls > span { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-frame { transition: none; }
}
