*{box-sizing:border-box}html{scroll-behavior:smooth}:root{--texture:url("https://raw.githubusercontent.com/abhn/portfolio/master/assets/images/background.png");--blue:#3498db;--ink:#202124;--muted:#646b73;--line:#d9dde2;--soft:#f6f7f8;--green:#22a447}body{margin:0;min-width:320px;color:var(--ink);background:#fff;font-family:"PT Sans","Pretendard",Arial,Helvetica,sans-serif;font-size:16px;line-height:1.72}a{color:inherit}img{display:block;max-width:100%;height:auto}.site-header{position:sticky;top:0;z-index:50;color:#fff;background-image:var(--texture);background-repeat:repeat;border-bottom:1px solid rgba(255,255,255,.14)}.site-header__inner{width:min(1120px,94vw);min-height:66px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.site-name{font-size:1.2rem;font-weight:700;text-decoration:none}.site-nav{display:flex;gap:8px}.site-nav a{padding:7px 12px;border:1px solid rgba(255,255,255,.55);text-decoration:none;font-size:.86rem;font-weight:700;letter-spacing:.04em;transition:.15s ease}.site-nav a:hover{color:#222;background:#fff}.project-hero{padding:68px 20px 50px;background:#fff}.project-hero__inner{width:min(1040px,94vw);margin:0 auto;text-align:center}.eyebrow{margin:0 0 12px;color:#2f7fb1;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.project-hero h1{margin:0;font-size:clamp(2.45rem,5vw,4.2rem);line-height:1.12;letter-spacing:-.035em}.hero-subtitle{margin:12px 0 0;font-size:clamp(1.12rem,2.2vw,1.5rem);font-weight:700;color:#30363d}.hero-summary{max-width:900px;margin:23px auto 0;color:#4f565e;font-size:1.12rem;line-height:1.78}.project-meta{margin:34px auto 0;display:grid;grid-template-columns:1.15fr 1fr 2.2fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.project-meta>div{min-width:0;padding:15px 20px;display:flex;flex-direction:column;gap:3px}.project-meta>div+div{border-left:1px solid var(--line)}.project-meta span{color:#6d747c;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em}.project-meta strong{font-size:.96rem}.status{display:inline-flex;align-items:center;justify-content:center;gap:8px}.status i{width:10px;height:10px;border-radius:50%;background:#22a447}.hero-actions{margin-top:28px;display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.button{min-width:132px;padding:10px 17px;color:#222;background:#fff;border:1px solid #222;text-decoration:none;transition:.15s ease}.button:hover,.button--dark{color:#fff;background:#222}.button--dark:hover{background:#444}.hero-visual{width:min(1200px,94vw);margin:0 auto 64px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.85fr);gap:24px;align-items:stretch;background:#fff}
.hero-visual__image{min-height:360px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);padding:20px;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.055)}
.hero-visual__image img{width:100%;height:auto;max-height:380px;object-fit:contain}
.hero-visual__summary{padding:36px 32px;background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;justify-content:flex-start;box-shadow:0 8px 22px rgba(0,0,0,.055)}
.hero-visual__summary h2{margin:0 0 22px;font-size:2rem;line-height:1.2}
.hero-visual__summary dl{margin:0}
.hero-visual__summary dl>div{padding:20px 0;border-top:1px solid var(--line)}
.hero-visual__summary dt{margin:0 0 9px;color:var(--muted);font-size:.95rem;font-weight:400}
.hero-visual__summary dd{margin:0;font-size:1.02rem;line-height:1.55;font-weight:700}.project-layout{width:min(1200px,94vw);margin:0 auto;display:grid;grid-template-columns:190px minmax(0,900px);gap:54px;justify-content:center}.toc{position:sticky;top:96px;align-self:start;padding:20px 0;border-top:2px solid #222;border-bottom:1px solid var(--line)}.toc p{margin:0 0 11px;font-weight:700}.toc a{display:block;padding:5px 0;color:#646b73;text-decoration:none;font-size:.91rem}.toc a:hover{color:#222}.project-article{min-width:0}.project-article section{padding:0 0 76px;scroll-margin-top:92px}.project-article section+section{padding-top:5px;border-top:1px solid var(--line)}.section-label{margin:0 0 8px;color:#2f7fb1;font-size:.82rem;font-weight:700;letter-spacing:.08em}.project-article h2{margin:0 0 21px;font-size:2rem;line-height:1.3;letter-spacing:-.02em}.project-article h2:not(:first-of-type){margin-top:48px}.project-article h3{margin:34px 0 14px;font-size:1.34rem}.project-article p{margin:0 0 20px;color:#343a40}.project-article blockquote{margin:28px 0;padding:22px 25px;color:#4b535b;background:#f5f6f7;border-left:4px solid #555}.project-article figure{margin:30px 0}.project-article figure img{width:100%;border:1px solid #e0e3e6;background:#f6f6f6}.project-article figcaption{margin-top:9px;color:#6a7178;font-size:.9rem;line-height:1.5}.figure-medium img{max-height:620px;object-fit:contain}.table-wrap{width:100%;overflow-x:auto;margin:24px 0 30px}.project-article table{width:100%;border-collapse:collapse;font-size:.96rem}.project-article th,.project-article td{padding:12px 13px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.project-article th{background:#f7f8f9;font-weight:700}.result-strip{margin:28px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-strip div{padding:16px 14px}.result-strip div+div{border-left:1px solid var(--line)}.result-strip span{display:block;color:#727981;font-size:.82rem}.result-strip strong{display:block;margin-top:3px;font-size:.98rem}.image-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:28px 0}.image-pair figure{margin:0}.image-pair figure img{height:315px;object-fit:contain}.note{padding:20px 22px;background:#f4f7f9;border-left:4px solid var(--blue)}.question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.question-grid div{min-height:104px;padding:18px;border:1px solid var(--line);display:flex;gap:16px;align-items:flex-start}.question-grid strong{color:#2f7fb1;font-size:1.05rem}.question-grid span{line-height:1.5}.workflow{margin:28px 0;display:flex;flex-direction:column;align-items:center;gap:8px}.workflow>div{width:min(590px,100%);padding:17px 20px;border:1px solid var(--line);background:#fff;display:grid;grid-template-columns:38px 1fr;column-gap:12px;align-items:center}.workflow>div span{grid-row:1/3;color:#2f7fb1;font-weight:700;font-size:1.15rem}.workflow>div strong{font-size:1.03rem}.workflow>div small{color:#6c737a}.workflow>i{font-style:normal;color:#8b9298}.result-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:28px 0}.result-summary div{padding:22px;border:1px solid var(--line);background:#fff}.result-summary span,.result-summary strong,.result-summary small{display:block}.result-summary span{color:#6c737a;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}.result-summary strong{margin-top:4px;font-size:1.25rem}.result-summary small{margin-top:4px;color:#6c737a}.conclusion-list{margin:0;padding:0;list-style:none;counter-reset:item}.conclusion-list li{position:relative;padding:15px 0 15px 48px;border-top:1px solid var(--line)}.conclusion-list li:last-child{border-bottom:1px solid var(--line)}.conclusion-list li:before{counter-increment:item;content:counter(item,decimal-leading-zero);position:absolute;left:0;top:14px;color:#2f7fb1;font-weight:700}.resource-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:26px 0}.resource-list a{min-height:104px;padding:20px;text-align:left;color:#222;background:#fff;border:1px solid var(--line);text-decoration:none;transition:.15s ease}.resource-list a:hover{border-color:#222;transform:translateY(-2px)}.resource-list strong,.resource-list span{display:block}.resource-list strong{font-size:1.06rem}.resource-list span{margin-top:5px;color:#6c737a;font-size:.9rem}.references{padding-left:22px}.references li{margin-bottom:12px}.site-footer{min-height:82px;margin-top:20px;padding:20px;display:flex;align-items:center;justify-content:center;gap:28px;color:#fff;background-image:var(--texture);background-repeat:repeat}.site-footer a{text-decoration:none}
/* Geometry-boundary equations and nominal gate segments */
.gate-boundary{margin:25px 0 30px;padding:23px;border:1px solid var(--line);background:#f9fafb}
.gate-boundary__heading{margin-bottom:13px;color:var(--muted);font-weight:700;font-size:.9rem}
.gate-boundary__bar{display:flex;min-height:74px;border:1px solid #c7d5de}
.gate-boundary__segment{display:flex;min-width:0;align-items:center;justify-content:center;flex-direction:column;line-height:1.4;text-align:center}
.gate-boundary__segment strong{font-size:1.12rem}
.gate-boundary__segment small{font-size:.82rem}
.gate-boundary__segment--outer{background:#dcebf4;color:#29465c}
.gate-boundary__segment--center{background:#a8ccdf;color:#213e50;border-left:2px solid #598fb2;border-right:2px solid #598fb2}
.gate-boundary__coordinates{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;margin:11px 0 22px;color:#485f6f;font-size:.81rem}
.gate-boundary__formulas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gate-boundary__formulas div{padding:12px 8px;background:#fff;border:1px solid var(--line)}
.gate-boundary__formulas span,.gate-boundary__formulas strong{display:block;text-align:center}
.gate-boundary__formulas span{color:var(--muted);font-size:.77rem}
.gate-boundary__formulas strong{font-size:.93rem;overflow-wrap:anywhere}
.gate-boundary .gate-boundary__caption{margin:12px 0 0;color:var(--muted);font-size:.82rem;text-align:right}
@media(max-width:720px){.gate-boundary{padding:14px}.gate-boundary__formulas{grid-template-columns:1fr}.gate-boundary__segment strong{font-size:.94rem}.gate-boundary__segment small{font-size:.7rem}.gate-boundary__coordinates{font-size:.68rem}}
@media(max-width:1080px){.hero-visual{width:min(960px,94vw);grid-template-columns:1fr}.hero-visual__image{min-height:320px}.hero-visual__summary{padding:30px 26px}}@media(max-width:1080px){.hero-visual{width:min(920px,94vw);grid-template-columns:minmax(300px,.9fr) minmax(420px,1.1fr)}.hero-visual__image{min-height:470px;padding:20px}.hero-visual__image img{max-height:430px}.hero-visual__summary{padding:38px 30px}.hero-visual__summary h2{font-size:2rem}}@media(max-width:820px){.hero-visual{grid-template-columns:1fr}.hero-visual__image{min-height:420px}.hero-visual__summary{padding:34px 28px}}@media(max-width:980px){.project-meta{grid-template-columns:1fr}.project-meta>div+div{border-left:0;border-top:1px solid var(--line)}.hero-visual{grid-template-columns:1fr}.project-layout{grid-template-columns:1fr}.toc{position:static;display:flex;flex-wrap:wrap;gap:5px 14px;padding:15px 0;margin-bottom:32px}.toc p{width:100%}}@media(max-width:720px){body{font-size:15px}.site-header__inner{align-items:flex-start;flex-direction:column;padding:12px 0;gap:8px}.site-nav{width:100%;flex-wrap:wrap}.site-nav a{flex:1;text-align:center;padding:6px 8px;font-size:.77rem}.project-hero{padding:52px 14px 40px}.hero-summary{font-size:1.02rem}.button{flex:1 1 calc(50% - 10px);min-width:0}.hero-visual{width:100%;border-left:0;border-right:0}.hero-visual__image{min-height:280px}.hero-visual__summary{padding:26px 20px}.project-layout{width:min(94vw,760px)}.project-article h2{font-size:1.7rem}.result-strip{grid-template-columns:repeat(2,1fr)}.result-strip div:nth-child(odd){border-left:0}.result-strip div:nth-child(n+3){border-top:1px solid var(--line)}.image-pair{grid-template-columns:1fr}.image-pair figure img{height:auto}.question-grid,.result-summary,.resource-list{grid-template-columns:1fr}.site-footer{flex-direction:column;gap:6px}}@media(max-width:440px){.result-strip{grid-template-columns:1fr}.result-strip div+div{border-left:0;border-top:1px solid var(--line)}}
/* Full-length final competition poster: preserve original aspect ratio. */
.project-article .poster-figure{width:min(100%,620px);margin:26px auto 38px}
.project-article .poster-figure a{display:block;text-decoration:none}
.project-article .poster-figure img{display:block;width:100%;height:auto;object-fit:contain}
.project-article .poster-figure figcaption{text-align:center}
